Closed GalloDaSballo closed 1 year ago
Test result: ok. 7 passed; 0 failed; 0 skipped; finished in 107.69s
| contracts/ActivePool.sol:ActivePool contract | | | | | |
|----------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1914830 | 10070 | | | | |
| Function Name | min | avg | median | max | # calls |
| MAX_BPS | 327 | 327 | 327 | 327 | 1 |
| MAX_FEE_BPS | 306 | 306 | 306 | 306 | 1 |
| allocateSystemCollSharesToFeeRecipient | 3329 | 8664 | 3329 | 28029 | 174 |
| claimFeeRecipientCollShares | 13219 | 30332 | 30332 | 47445 | 2 |
| decreaseSystemDebt | 1369 | 1721 | 1711 | 1739 | 1501 |
| fallback | 45 | 45 | 45 | 45 | 1 |
| feeBps | 404 | 404 | 404 | 404 | 1 |
| feeRecipientAddress | 414 | 586 | 414 | 2414 | 267 |
| flashFee | 647 | 2437 | 1012 | 5012 | 8 |
| flashLoan | 809 | 82543 | 47946 | 328210 | 13 |
| getFeeRecipientClaimableCollShares | 336 | 688 | 336 | 2336 | 102 |
| getSystemCollShares | 403 | 435 | 403 | 2403 | 10274 |
| getSystemDebt | 402 | 438 | 402 | 2402 | 9267 |
| increaseSystemCollShares | 1760 | 2763 | 1760 | 23660 | 2940 |
| increaseSystemDebt | 1777 | 2754 | 1777 | 21677 | 2972 |
| maxFlashLoan | 611 | 6263 | 4319 | 12819 | 5 |
| setFeeBps | 50100 | 50100 | 50100 | 50100 | 1 |
| setFeeRecipientAddress | 13294 | 27624 | 26102 | 44999 | 4 |
| setFlashLoansPaused | 13123 | 15123 | 15123 | 17123 | 2 |
| sweepToken | 18321 | 38278 | 29939 | 74914 | 4 |
| transferSystemCollShares | 9463 | 11600 | 9463 | 56248 | 1025 |
| transferSystemCollSharesAndLiquidatorReward | 9557 | 13486 | 10542 | 56342 | 558 |
| contracts/BorrowerOperations.sol:BorrowerOperations contract | | | | | |
|--------------------------------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 4229113 | 22801 | | | | |
| Function Name | min | avg | median | max | # calls |
| DOMAIN_SEPARATOR | 403 | 403 | 403 | 403 | 6 |
| LIQUIDATOR_REWARD | 307 | 307 | 307 | 307 | 169 |
| MAX_BPS | 305 | 305 | 305 | 305 | 1 |
| MAX_FEE_BPS | 328 | 328 | 328 | 328 | 3 |
| MCR | 308 | 308 | 308 | 308 | 1 |
| MIN_NET_COLL | 307 | 307 | 307 | 307 | 61 |
| addColl | 15956 | 509347 | 397476 | 1834573 | 311 |
| adjustCdp | 88980 | 88980 | 88980 | 88980 | 1 |
| adjustCdpWithColl | 85567 | 104718 | 108436 | 111444 | 5 |
| closeCdp | 26755 | 49058 | 44533 | 63662 | 21 |
| feeBps | 426 | 1426 | 1426 | 2426 | 6 |
| feeRecipientAddress | 459 | 1368 | 459 | 2459 | 11 |
| flashFee | 576 | 1357 | 945 | 2945 | 18 |
| flashLoan | 825 | 165731 | 144891 | 420420 | 24 |
| getPositionManagerApproval | 910 | 1310 | 910 | 2910 | 25 |
| getSystemCollShares | 1095 | 1095 | 1095 | 1095 | 1 |
| increasePermitNonce | 675 | 675 | 675 | 675 | 1 |
| locked | 406 | 406 | 406 | 406 | 186 |
| maxFlashLoan | 539 | 1909 | 2677 | 2677 | 8 |
| nonces | 2621 | 2621 | 2621 | 2621 | 6 |
| openCdp | 11354 | 562385 | 427290 | 2018505 | 2625 |
| openCdpFor | 239566 | 248312 | 248312 | 257059 | 2 |
| permitPositionManagerApproval | 821 | 26110 | 25193 | 49407 | 7 |
| permitTypeHash | 295 | 295 | 295 | 295 | 6 |
| repayDebt | 15934 | 506408 | 399834 | 1848131 | 311 |
| setFeeBps | 26930 | 27040 | 27077 | 27077 | 4 |
| setFeeRecipientAddress | 8854 | 18987 | 13328 | 33290 | 5 |
| setFlashLoansPaused | 6555 | 15272 | 10555 | 28708 | 3 |
| setPositionManagerApproval | 2344 | 19193 | 24830 | 24830 | 16 |
| withdrawColl | 15935 | 1406931 | 1514829 | 1908799 | 305 |
| withdrawDebt | 15843 | 1261442 | 1471757 | 1908909 | 345 |
| contracts/CRLens.sol:CRLens contract | | | | | |
|--------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 628639 | 3470 | | | | |
| Function Name | min | avg | median | max | # calls |
| getCheckRecoveryMode | 15182 | 28720 | 16111 | 117616 | 16 |
| getRealICR | 10444 | 13518 | 14118 | 110541 | 6098 |
| getRealNICR | 9029 | 29131 | 22998 | 125626 | 30 |
| getRealTCR | 15170 | 21772 | 15171 | 111594 | 33 |
| quoteCheckRecoveryMode | 15896 | 29609 | 16825 | 121130 | 16 |
| quoteRealICR | 11355 | 14430 | 15029 | 114252 | 6098 |
| quoteRealNICR | 9863 | 30058 | 23832 | 126460 | 30 |
| quoteRealTCR | 15983 | 22670 | 15984 | 115207 | 33 |
| contracts/CdpManager.sol:CdpManager contract | | | | | |
|----------------------------------------------|-----------------|---------|--------|----------|---------|
| Deployment Cost | Deployment Size | | | | |
| 4811273 | 24795 | | | | |
| Function Name | min | avg | median | max | # calls |
| CCR | 329 | 329 | 329 | 329 | 23 |
| CdpIds | 663 | 663 | 663 | 2663 | 24481 |
| Cdps | 1227 | 1227 | 1227 | 1227 | 456 |
| DECIMAL_PRECISION | 263 | 263 | 263 | 263 | 47 |
| LICR | 284 | 284 | 284 | 284 | 7 |
| LIQUIDATOR_REWARD | 284 | 284 | 284 | 284 | 486 |
| MAX_MINUTE_DECAY_FACTOR | 264 | 264 | 264 | 264 | 2 |
| MAX_REWARD_SPLIT | 373 | 373 | 373 | 373 | 4 |
| MCR | 285 | 285 | 285 | 285 | 20 |
| MINIMUM_GRACE_PERIOD | 394 | 394 | 394 | 394 | 5 |
| MIN_MINUTE_DECAY_FACTOR | 353 | 353 | 353 | 353 | 2 |
| MIN_NET_COLL | 285 | 285 | 285 | 285 | 40 |
| MIN_REDEMPTION_FEE_FLOOR | 471 | 471 | 471 | 471 | 3 |
| UNSET_TIMESTAMP | 363 | 363 | 363 | 363 | 68 |
| authority | 476 | 476 | 476 | 476 | 666 |
| baseRate | 452 | 452 | 452 | 452 | 4 |
| batchLiquidateCdps | 7911 | 90222 | 24575 | 257492 | 71 |
| beta | 473 | 473 | 473 | 473 | 1 |
| calcFeeUponStakingReward | 3759 | 4616 | 3759 | 7759 | 28 |
| cdpDebtRedistributionIndex | 529 | 529 | 529 | 529 | 444 |
| cdpStEthFeePerUnitIndex | 571 | 571 | 571 | 571 | 6507 |
| checkRecoveryMode | 3642 | 3642 | 3642 | 3642 | 32 |
| closeCdp | 4361 | 11122 | 11847 | 12409 | 21 |
| getAccumulatedFeeSplitApplied | 1477 | 1477 | 1477 | 1477 | 46 |
| getActiveCdpsCount | 405 | 410 | 405 | 2405 | 1043 |
| getCdpCollShares | 534 | 534 | 534 | 534 | 2273 |
| getCdpDebt | 571 | 571 | 571 | 571 | 2087 |
| getCdpLiquidatorRewardShares | 622 | 622 | 622 | 622 | 60 |
| getCdpStake | 513 | 513 | 513 | 2513 | 12130 |
| getCdpStatus | 593 | 981 | 593 | 2593 | 13528 |
| getDebtAndCollShares | 1981 | 2888 | 3128 | 9617 | 18802 |
| getICR | 3111 | 3658 | 3644 | 11122 | 9749 |
| getNominalICR | 1801 | 2363 | 2326 | 16326 | 611139 |
| getPendingRedistributedDebt | 1076 | 1076 | 1076 | 1353 | 452 |
| getSyncedCdpCollShares | 8207 | 8207 | 8207 | 8207 | 8 |
| getSyncedICR | 6197 | 6720 | 6197 | 8197 | 83 |
| getSystemCollShares | 1139 | 1139 | 1139 | 1139 | 238 |
| getSystemDebt | 1150 | 1150 | 1150 | 1150 | 340 |
| getTCR | 3526 | 3682 | 3684 | 3684 | 481 |
| initializeCdp | 164364 | 169240 | 166464 | 216264 | 2625 |
| lastEBTCDebtErrorRedistribution | 450 | 450 | 450 | 450 | 2 |
| lastGracePeriodStartTimestamp | 516 | 516 | 516 | 516 | 114 |
| liquidate | 17414 | 87717 | 81253 | 181536 | 55 |
| locked | 450 | 516 | 450 | 2450 | 3905 |
| minuteDecayFactor | 407 | 407 | 407 | 407 | 3 |
| notifyEndGracePeriod | 1674 | 1738 | 1674 | 3674 | 3912 |
| notifyStartGracePeriod | 1631 | 2722 | 1631 | 5451 | 7 |
| partiallyLiquidate | 17577 | 83236 | 64159 | 187699 | 40 |
| recoveryModeGracePeriodDuration | 533 | 570 | 533 | 2533 | 53 |
| redeemCollateral | 4729 | 1274332 | 195539 | 22190090 | 20 |
| redemptionFeeFloor | 429 | 2229 | 2429 | 2429 | 10 |
| redemptionsPaused | 378 | 378 | 378 | 378 | 2 |
| setBeta | 13197 | 47238 | 47238 | 81280 | 2 |
| setGracePeriod | 13355 | 18633 | 13396 | 26511 | 5 |
| setMinuteDecayFactor | 8768 | 36138 | 18625 | 79233 | 5 |
| setRedemptionFeeFloor | 8866 | 18808 | 11045 | 44277 | 4 |
| setRedemptionsPaused | 11339 | 60222 | 84664 | 84664 | 3 |
| setStakingRewardSplit | 8786 | 22186 | 22523 | 44165 | 7 |
| stEthIndex | 406 | 531 | 406 | 2406 | 48 |
| stakingRewardSplit | 406 | 1406 | 1406 | 2406 | 2 |
| syncAccounting | 3623 | 6397 | 7297 | 120220 | 7437 |
| syncGlobalAccounting | 1837 | 2914 | 1837 | 114763 | 2635 |
| syncGlobalAccountingAndGracePeriod | 7528 | 19425 | 8394 | 144717 | 140 |
| systemDebtRedistributionIndex | 451 | 451 | 451 | 451 | 34 |
| systemStEthFeePerUnitIndex | 451 | 475 | 451 | 2451 | 243 |
| totalCollateralSnapshot | 474 | 474 | 474 | 474 | 2 |
| totalStakes | 473 | 473 | 473 | 473 | 159 |
| updateCdp | 6365 | 6382 | 6365 | 6831 | 1273 |
| contracts/CollSurplusPool.sol:CollSurplusPool contract | | | | | |
|--------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 876804 | 5192 | | | | |
| Function Name | min | avg | median | max | # calls |
| getSurplusCollShares | 559 | 572 | 559 | 2559 | 448 |
| getTotalSurplusCollShares | 371 | 800 | 371 | 2371 | 205 |
| increaseSurplusCollShares | 2367 | 24179 | 24267 | 24267 | 503 |
| increaseTotalSurplusCollShares | 594 | 2909 | 594 | 22494 | 503 |
| contracts/Dependencies/TellorCaller.sol:TellorCaller contract | | | | | |
|---------------------------------------------------------------|-----------------|------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 267806 | 1196 | | | | |
| Function Name | min | avg | median | max | # calls |
| fallbackTimeout | 336 | 1336 | 1336 | 2336 | 2 |
| getFallbackResponse | 2974 | 7974 | 7974 | 12974 | 2 |
| setFallbackTimeout | 1862 | 1862 | 1862 | 1862 | 3 |
| contracts/EBTCDeployer.sol:EBTCDeployer contract | | | | | |
|--------------------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 906857 | 4537 | | | | |
| Function Name | min | avg | median | max | # calls |
| ACTIVE_POOL | 611 | 611 | 611 | 611 | 222 |
| AUTHORITY | 678 | 678 | 678 | 678 | 222 |
| BORROWER_OPERATIONS | 628 | 628 | 628 | 628 | 222 |
| CDP_MANAGER | 568 | 568 | 568 | 568 | 222 |
| COLL_SURPLUS_POOL | 590 | 590 | 590 | 590 | 222 |
| EBTC_TOKEN | 656 | 656 | 656 | 656 | 222 |
| FEE_RECIPIENT | 633 | 633 | 633 | 633 | 222 |
| HINT_HELPERS | 567 | 567 | 567 | 567 | 222 |
| LIQUIDATION_LIBRARY | 671 | 671 | 671 | 671 | 222 |
| MULTI_CDP_GETTER | 613 | 613 | 613 | 613 | 222 |
| PRICE_FEED | 635 | 635 | 635 | 635 | 222 |
| SORTED_CDPS | 634 | 634 | 634 | 634 | 222 |
| addressOf | 1503 | 1503 | 1503 | 1503 | 2 |
| deploy | 623675 | 2031693 | 1556559 | 4954276 | 2666 |
| getFutureEbtcAddresses | 11697 | 11697 | 11697 | 11697 | 222 |
| contracts/EBTCToken.sol:EBTCToken contract | | | | | |
|--------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1111960 | 6344 | | | | |
| Function Name | min | avg | median | max | # calls |
| allowance | 792 | 792 | 792 | 792 | 1 |
| approve | 2666 | 21331 | 24666 | 24666 | 60 |
| balanceOf | 648 | 763 | 648 | 2648 | 1943 |
| burn(address,uint256) | 2527 | 3159 | 3158 | 8930 | 1065 |
| burn(uint256) | 7419 | 7419 | 7419 | 7419 | 1 |
| decreaseAllowance | 2874 | 2874 | 2874 | 2874 | 1 |
| domainSeparator | 343 | 343 | 343 | 343 | 6 |
| increaseAllowance | 2962 | 2962 | 2962 | 2962 | 1 |
| mint | 3127 | 14983 | 3127 | 59691 | 2998 |
| permit | 26948 | 39008 | 39008 | 51068 | 4 |
| totalSupply | 404 | 423 | 404 | 2404 | 520 |
| transfer | 2809 | 3989 | 2809 | 25411 | 469 |
| transferFrom | 1255 | 11615 | 8813 | 25892 | 29 |
| contracts/Governor.sol:Governor contract | | | | | |
|------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1607607 | 8083 | | | | |
| Function Name | min | avg | median | max | # calls |
| authority | 448 | 448 | 448 | 448 | 1 |
| burnCapability | 3364 | 28354 | 36053 | 37053 | 8 |
| canCall | 970 | 1976 | 1481 | 7481 | 7297 |
| capabilityFlag | 854 | 1354 | 854 | 2854 | 4 |
| doesRoleHaveCapability | 2891 | 2891 | 2891 | 2891 | 1 |
| doesUserHaveRole | 741 | 741 | 741 | 741 | 3 |
| getRoleName | 1516 | 1516 | 1516 | 1516 | 2 |
| getUsersByRole | 116516 | 116516 | 116516 | 116516 | 1 |
| isPublicCapability | 871 | 871 | 871 | 871 | 4 |
| owner | 426 | 426 | 426 | 426 | 1 |
| setPublicCapability | 4439 | 16639 | 7534 | 37602 | 7 |
| setRoleCapability | 6269 | 92828 | 72880 | 165564 | 4016 |
| setRoleName | 5539 | 44251 | 27577 | 94304 | 1558 |
| setUserRole | 5496 | 21480 | 5496 | 96180 | 1641 |
| transferOwnership | 9132 | 9132 | 9132 | 9132 | 1 |
| contracts/LeverageMacroDelegateTarget.sol:LeverageMacroDelegateTarget contract | | | | | |
|--------------------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2115748 | 11269 | | | | |
| Function Name | min | avg | median | max | # calls |
| doOperation | 450129 | 450129 | 450129 | 450129 | 1 |
| onFlashLoan | 373423 | 373423 | 373423 | 373423 | 1 |
| contracts/LeverageMacroFactory.sol:LeverageMacroFactory contract | | | | | |
|------------------------------------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2602832 | 13545 | | | | |
| Function Name | min | avg | median | max | # calls |
| deployNewMacro | 2328110 | 2328110 | 2328110 | 2328110 | 1 |
| contracts/LeverageMacroReference.sol:LeverageMacroReference contract | | | | | |
|----------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2286396 | 12281 | | | | |
| Function Name | min | avg | median | max | # calls |
| activePool | 250 | 250 | 250 | 250 | 2 |
| borrowerOperations | 316 | 316 | 316 | 316 | 2 |
| cdpManager | 227 | 227 | 227 | 227 | 2 |
| doOperation | 178299 | 308702 | 228334 | 451188 | 11 |
| ebtcToken | 206 | 206 | 206 | 206 | 2 |
| onFlashLoan | 115070 | 241478 | 168628 | 373325 | 11 |
| owner | 269 | 269 | 269 | 269 | 2 |
| sortedCdps | 271 | 271 | 271 | 271 | 2 |
| stETH | 249 | 249 | 249 | 249 | 2 |
| contracts/LiquidationLibrary.sol:LiquidationLibrary contract | | | | | |
|--------------------------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 4269218 | 22026 | | | | |
| Function Name | min | avg | median | max | # calls |
| batchLiquidateCdps | 4562 | 87534 | 21147 | 254573 | 71 |
| liquidate | 16458 | 85320 | 80860 | 179143 | 55 |
| liquidationLibrary | 274 | 274 | 274 | 274 | 1 |
| partiallyLiquidate | 16530 | 80754 | 62371 | 184610 | 40 |
| contracts/LiquidationSequencer.sol:LiquidationSequencer contract | | | | | |
|------------------------------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 571135 | 3358 | | | | |
| Function Name | min | avg | median | max | # calls |
| sequenceLiqToBatchLiqWithPrice | 27503 | 38459 | 33587 | 146819 | 38 |
| contracts/SimplifiedDiamondLike.sol:SimplifiedDiamondLike contract | | | | | |
|--------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 397297 | 2174 | | | | |
| Function Name | min | avg | median | max | # calls |
| enableCallbackForCall | 22390 | 22390 | 22390 | 22390 | 1 |
| execute | 556 | 168133 | 15295 | 557530 | 6 |
| onFlashLoan | 354912 | 354912 | 354912 | 354912 | 1 |
| owner | 182 | 182 | 182 | 182 | 2 |
| setAllowAnyCall | 335 | 14430 | 20478 | 22478 | 3 |
| setFallbackHandler | 474 | 11665 | 11673 | 22823 | 6 |
| contracts/SortedCdps.sol:SortedCdps contract | | | | | |
|----------------------------------------------|-----------------|--------|--------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1462626 | 7742 | | | | |
| Function Name | min | avg | median | max | # calls |
| batchRemove | 5374 | 310616 | 5856 | 920618 | 3 |
| cdpCountOf | 1040 | 15598 | 13365 | 40225 | 273 |
| cdpOfOwnerByIdx | 846 | 850 | 846 | 936 | 20 |
| cdpOfOwnerByIndex | 800 | 27651 | 22628 | 109631 | 1752 |
| contains | 524 | 1027 | 1042 | 1042 | 471 |
| dummyId | 284 | 284 | 284 | 284 | 172 |
| getAllCdpsOf | 3126 | 3494 | 3126 | 7275 | 20 |
| getCdpCountOf | 1577 | 1970 | 1577 | 8124 | 20 |
| getCdpsOf | 2873 | 4713 | 4591 | 6798 | 4 |
| getFirst | 360 | 366 | 360 | 2360 | 879 |
| getLast | 360 | 427 | 360 | 2360 | 565 |
| getNext | 528 | 528 | 528 | 2528 | 24718 |
| getOwnerAddress | 332 | 332 | 332 | 332 | 4974 |
| getPrev | 489 | 489 | 489 | 489 | 17746 |
| getSize | 358 | 366 | 358 | 2358 | 736 |
| insert | 54462 | 345730 | 148533 | 1795237 | 2625 |
| nonExistId | 259 | 259 | 259 | 259 | 17227 |
| reInsert | 39788 | 859797 | 777609 | 1854220 | 1298 |
| remove | 2393 | 2612 | 2588 | 3150 | 95 |
| contracts/TestContracts/CollateralTokenTester.sol:CollateralTokenTester contract | | | | | |
|----------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1296311 | 6025 | | | | |
| Function Name | min | avg | median | max | # calls |
| approve | 2569 | 23354 | 24569 | 24569 | 1642 |
| balanceOf | 1106 | 1915 | 1106 | 5106 | 1966 |
| deposit | 3102 | 26031 | 25002 | 48902 | 1579 |
| getEthPerShare | 359 | 508 | 359 | 2359 | 107 |
| getPooledEthByShares | 892 | 893 | 892 | 2892 | 38890 |
| getSharesByPooledEth | 894 | 894 | 894 | 894 | 7263 |
| setEthPerShare | 339 | 1090 | 423 | 3223 | 236 |
| sharesOf | 669 | 813 | 669 | 2669 | 500 |
| totalSupply | 2893 | 2893 | 2893 | 2893 | 2 |
| transfer | 4708 | 14000 | 10685 | 30585 | 22 |
| transferFrom | 1369 | 6920 | 6215 | 30915 | 2957 |
| transferShares | 4444 | 7134 | 5555 | 27455 | 1593 |
| contracts/TestContracts/Mock1Inch.sol:Mock1Inch contract | | | | | |
|----------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 332118 | 1489 | | | | |
| Function Name | min | avg | median | max | # calls |
| setPrice(uint256) | 2457 | 2457 | 2457 | 2457 | 1 |
| setPrice(uint256)(bool) | 357 | 1120 | 357 | 2457 | 11 |
| slippage | 285 | 285 | 285 | 285 | 5 |
| swap | 11578 | 20935 | 22458 | 26049 | 12 |
| contracts/TestContracts/MockAggregator.sol:MockAggregator contract | | | | | |
|--------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 319661 | 1531 | | | | |
| Function Name | min | avg | median | max | # calls |
| decimals | 530 | 991 | 530 | 4530 | 26 |
| getRoundData | 1150 | 1483 | 1150 | 3150 | 12 |
| latestRoundData | 1010 | 2152 | 1010 | 5010 | 14 |
| setDecimals | 533 | 1493 | 533 | 5333 | 10 |
| setLatestRoundId | 22479 | 22479 | 22479 | 22479 | 8 |
| setPrevPrice | 22336 | 22336 | 22336 | 22336 | 8 |
| setPrevRoundId | 558 | 558 | 558 | 558 | 8 |
| setPrice | 22400 | 22400 | 22400 | 22400 | 8 |
| setUpdateTime | 22378 | 22378 | 22378 | 22378 | 8 |
| contracts/TestContracts/MockTellor.sol:MockTellor contract | | | | | |
|------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 192138 | 894 | | | | |
| Function Name | min | avg | median | max | # calls |
| getDataBefore | 1203 | 4203 | 4203 | 7203 | 2 |
| setPrice(uint256) | 22379 | 22379 | 22379 | 22379 | 1 |
| setPrice(uint256)(bool) | 22379 | 22379 | 22379 | 22379 | 2 |
| setUpdateTime | 5256 | 18081 | 22356 | 22356 | 4 |
| contracts/TestContracts/Pretty.sol:Pretty contract | | | | | |
|----------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 514574 | 2628 | | | | |
| Function Name | min | avg | median | max | # calls |
| pretty(bool)(string) | 660 | 666 | 666 | 673 | 4 |
| pretty(uint256)(string) | 590 | 105259 | 88832 | 383458 | 60 |
| pretty(uint256,uint8)(string) | 2146 | 2171 | 2169 | 2215 | 10 |
| contracts/TestContracts/PriceFeedTester.sol:PriceFeedTester contract | | | | | |
|----------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1674338 | 11455 | | | | |
| Function Name | min | avg | median | max | # calls |
| bothOraclesAliveAndUnbrokenAndSimilarPrice | 2980 | 2980 | 2980 | 2980 | 1 |
| bothOraclesSimilarPrice | 1741 | 1741 | 1741 | 1741 | 1 |
| chainlinkIsBroken | 1874 | 1874 | 1874 | 1874 | 1 |
| chainlinkIsFrozen | 1193 | 1193 | 1193 | 1193 | 1 |
| chainlinkPriceChangeAboveMax | 1894 | 1894 | 1894 | 1894 | 1 |
| fallbackCaller | 383 | 383 | 383 | 383 | 1 |
| fallbackIsBroken | 831 | 831 | 831 | 831 | 1 |
| fallbackIsFrozen | 3646 | 3646 | 3646 | 3646 | 1 |
| fetchPrice | 19355 | 41657 | 41657 | 63959 | 2 |
| getCurrentChainlinkResponse | 7903 | 7903 | 7903 | 7903 | 1 |
| getCurrentFallbackResponse | 4370 | 4370 | 4370 | 4370 | 1 |
| getPrevChainlinkResponse | 8854 | 8854 | 8854 | 8854 | 1 |
| status | 419 | 1419 | 1419 | 2419 | 2 |
| contracts/TestContracts/WethMock.sol:WethMock contract | | | | | |
|--------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 438640 | 2343 | | | | |
| Function Name | min | avg | median | max | # calls |
| balanceOf | 541 | 826 | 541 | 2541 | 7 |
| deposit | 24031 | 24031 | 24031 | 24031 | 2 |
| transfer | 25338 | 25338 | 25338 | 25338 | 1 |
| contracts/TestContracts/testnet/PriceFeedTestnet.sol:PriceFeedTestnet contract | | | | | |
|--------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 551543 | 2941 | | | | |
| Function Name | min | avg | median | max | # calls |
| fallbackCaller | 371 | 371 | 371 | 371 | 1 |
| fetchPrice | 1620 | 1654 | 1620 | 5620 | 13766 |
| getPrice | 348 | 445 | 348 | 2348 | 1001 |
| setFallbackCaller | 13207 | 21774 | 21774 | 30342 | 2 |
| setPrice | 470 | 2724 | 3270 | 5370 | 77 |
| foundry_test/EchidnaToFoundry.t.sol:EToFoundry contract | | | | | |
|---------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 45275932 | 225325 | | | | |
| Function Name | min | avg | median | max | # calls |
| simulate | 16594 | 16594 | 16594 | 16594 | 1 |
| foundry_test/FlashLoanAttack.t.sol:FlashAttack contract | | | | | |
|---------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 237976 | 1475 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 906 | 33203 | 27030 | 76777 | 7 |
| foundry_test/FlashLoanWETHInteractions.sol:FlashWithDeposit contract | | | | | |
|----------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 299430 | 1689 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 291147 | 291147 | 291147 | 291147 | 1 |
| foundry_test/SimplifiedDiamondLikeBasic.t.sol:FakeERC20 contract | | | | | |
|------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 101947 | 541 | | | | |
| Function Name | min | avg | median | max | # calls |
| balanceOf | 510 | 510 | 510 | 510 | 1 |
| mint | 22598 | 22598 | 22598 | 22598 | 3 |
| transfer | 18413 | 23114 | 23114 | 27816 | 2 |
| foundry_test/SimplifiedDiamondLikeLeverage.t.sol:LeverageMacroOwnerCheck contract | | | | | |
|-----------------------------------------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 71123 | 387 | | | | |
| Function Name | min | avg | median | max | # calls |
| getOwner | 1853 | 1853 | 1853 | 1853 | 1 |
| foundry_test/utils/BalanceSnapshot.sol:BalanceSnapshot contract | | | | | |
|-----------------------------------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost | Deployment Size | | | | |
| 134988 | 1283 | | | | |
| Function Name | min | avg | median | max | # calls |
| get | 711 | 711 | 711 | 711 | 8 |
| foundry_test/utils/Flashloans.sol:FeeSplitClaimFlashReceiver contract | | | | | |
|-----------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 162932 | 881 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 175507 | 175507 | 175507 | 175507 | 1 |
| foundry_test/utils/Flashloans.sol:FlashLoanSpecReceiver contract | | | | | |
|------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 365605 | 1858 | | | | |
| Function Name | min | avg | median | max | # calls |
| balanceReceived | 351 | 351 | 351 | 351 | 2 |
| called | 355 | 355 | 355 | 355 | 2 |
| caller | 425 | 425 | 425 | 425 | 2 |
| onFlashLoan | 162698 | 162878 | 162878 | 163059 | 2 |
| receivedAmount | 306 | 306 | 306 | 306 | 2 |
| receivedData | 1231 | 1231 | 1231 | 1231 | 2 |
| receivedFee | 285 | 285 | 285 | 285 | 2 |
| receivedToken | 403 | 403 | 403 | 403 | 2 |
| setBalanceAlready | 23466 | 23695 | 23695 | 23924 | 2 |
| foundry_test/utils/Flashloans.sol:FlashLoanWrongReturn contract | | | | | |
|-----------------------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 107153 | 567 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 5783 | 5831 | 5831 | 5880 | 2 |
| foundry_test/utils/Flashloans.sol:STETHFlashReceiver contract | | | | | |
|---------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 119565 | 629 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 25791 | 25791 | 25791 | 25791 | 1 |
| foundry_test/utils/Flashloans.sol:UselessFlashReceiver contract | | | | | |
|-----------------------------------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost | Deployment Size | | | | |
| 74323 | 403 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 673 | 673 | 673 | 673 | 2 |
| foundry_test/utils/Flashloans.sol:eBTCFlashReceiver contract | | | | | |
|--------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 119565 | 629 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 25888 | 25888 | 25888 | 25888 | 1 |
| foundry_test/utils/SigUtils.sol:SigUtils contract | | | | | |
|---------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 132196 | 676 | | | | |
| Function Name | min | avg | median | max | # calls |
| getTypedDataHash | 3307 | 3307 | 3307 | 3307 | 4 |
| foundry_test/utils/Strings.sol:Strings contract | | | | | |
|-------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 145215 | 783 | | | | |
| Function Name | min | avg | median | max | # calls |
| bytes32ToString | 25809 | 25809 | 25809 | 25809 | 17 |
| foundry_test/utils/Utilities.sol:Utilities contract | | | | | |
|-----------------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 918187 | 4328 | | | | |
| Function Name | min | avg | median | max | # calls |
| LIQUIDATOR_REWARD | 262 | 262 | 262 | 262 | 1 |
| assertApproximateEq | 516 | 516 | 517 | 517 | 212 |
| calculateBorrowAmount | 521 | 521 | 521 | 521 | 1268 |
| calculateCollAmount | 757 | 757 | 757 | 757 | 83 |
| createUsers | 1702 | 11536 | 4877 | 521948 | 85 |
| generateRandomNumber | 947 | 947 | 947 | 947 | 1908 |
| getNextSpecialAddress | 617 | 617 | 617 | 617 | 222 |
| getNextUserAddress | 629 | 1059 | 629 | 5429 | 1014 |
| mineBlocks | 774 | 774 | 774 | 774 | 1600 |
Test result: ok. 7 passed; 0 failed; 0 skipped; finished in 89.00s
| contracts/ActivePool.sol:ActivePool contract | | | | | |
|----------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1981189 | 10610 | | | | |
| Function Name | min | avg | median | max | # calls |
| MAX_BPS | 327 | 327 | 327 | 327 | 1 |
| MAX_FEE_BPS | 306 | 306 | 306 | 306 | 1 |
| allocateSystemCollSharesToFeeRecipient | 3329 | 8664 | 3329 | 28029 | 174 |
| claimFeeRecipientCollShares | 13219 | 29493 | 29493 | 45768 | 2 |
| decreaseSystemDebt | 1369 | 1714 | 1711 | 1739 | 1078 |
| fallback | 45 | 45 | 45 | 45 | 1 |
| feeBps | 404 | 404 | 404 | 404 | 1 |
| feeRecipientAddress | 414 | 586 | 414 | 2414 | 267 |
| flashFee | 553 | 1593 | 918 | 2918 | 8 |
| flashLoan | 809 | 81880 | 47343 | 327178 | 13 |
| getFeeRecipientClaimableCollShares | 336 | 688 | 336 | 2336 | 102 |
| getSystemCollShares | 403 | 437 | 403 | 2403 | 9650 |
| getSystemDebt | 402 | 440 | 402 | 2402 | 8647 |
| increaseSystemCollShares | 1760 | 2883 | 1760 | 23660 | 2625 |
| increaseSystemDebt | 1777 | 2871 | 1777 | 21677 | 2655 |
| maxFlashLoan | 517 | 4905 | 2119 | 10619 | 5 |
| setFeeBps | 50100 | 50100 | 50100 | 50100 | 1 |
| setFeeRecipientAddress | 13294 | 27624 | 26102 | 44999 | 4 |
| setFlashLoansPaused | 13123 | 15123 | 15123 | 17123 | 2 |
| sweepToken | 18321 | 37228 | 28889 | 72814 | 4 |
| transferSystemCollShares | 9357 | 11333 | 9357 | 54142 | 1023 |
| transferSystemCollSharesAndLiquidatorReward | 9451 | 22323 | 29351 | 54236 | 134 |
| contracts/BorrowerOperations.sol:BorrowerOperations contract | | | | | |
|--------------------------------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 4233078 | 22821 | | | | |
| Function Name | min | avg | median | max | # calls |
| DOMAIN_SEPARATOR | 337 | 337 | 337 | 337 | 6 |
| LIQUIDATOR_REWARD | 329 | 329 | 329 | 329 | 169 |
| MAX_BPS | 305 | 305 | 305 | 305 | 1 |
| MAX_FEE_BPS | 328 | 328 | 328 | 328 | 3 |
| MCR | 263 | 263 | 263 | 263 | 1 |
| MIN_NET_COLL | 307 | 307 | 307 | 307 | 61 |
| addColl | 15956 | 504878 | 392061 | 1821967 | 312 |
| adjustCdp | 87295 | 87295 | 87295 | 87295 | 1 |
| adjustCdpWithColl | 85584 | 104037 | 108401 | 109760 | 5 |
| closeCdp | 26690 | 48090 | 42796 | 63525 | 21 |
| feeBps | 448 | 1448 | 1448 | 2448 | 6 |
| feeRecipientAddress | 459 | 1368 | 459 | 2459 | 11 |
| flashFee | 576 | 1357 | 945 | 2945 | 18 |
| flashLoan | 847 | 165548 | 143972 | 420509 | 24 |
| getPositionManagerApproval | 910 | 1310 | 910 | 2910 | 25 |
| getSystemCollShares | 1095 | 1095 | 1095 | 1095 | 1 |
| increasePermitNonce | 675 | 675 | 675 | 675 | 1 |
| locked | 406 | 406 | 406 | 406 | 188 |
| maxFlashLoan | 561 | 1931 | 2699 | 2699 | 8 |
| nonces | 2643 | 2643 | 2643 | 2643 | 6 |
| openCdp | 11354 | 601858 | 459517 | 2006186 | 2309 |
| openCdpFor | 239633 | 248379 | 248379 | 257126 | 2 |
| permitPositionManagerApproval | 821 | 28953 | 25193 | 49407 | 7 |
| permitTypeHash | 295 | 295 | 295 | 295 | 6 |
| repayDebt | 15934 | 503194 | 397374 | 1835331 | 311 |
| setFeeBps | 26997 | 27107 | 27144 | 27144 | 4 |
| setFeeRecipientAddress | 8854 | 19005 | 13328 | 33335 | 5 |
| setFlashLoansPaused | 6622 | 15339 | 10622 | 28775 | 3 |
| setPositionManagerApproval | 2344 | 19193 | 24830 | 24830 | 16 |
| withdrawColl | 15957 | 1397279 | 1504427 | 1893603 | 305 |
| withdrawDebt | 15778 | 1252748 | 1461576 | 1893626 | 345 |
| contracts/CRLens.sol:CRLens contract | | | | | |
|--------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 628639 | 3470 | | | | |
| Function Name | min | avg | median | max | # calls |
| getCheckRecoveryMode | 15226 | 28766 | 16155 | 117672 | 16 |
| getRealICR | 10510 | 13832 | 14184 | 110619 | 5667 |
| getRealNICR | 9029 | 29133 | 23004 | 125638 | 30 |
| getRealTCR | 15126 | 21729 | 15127 | 111562 | 33 |
| quoteCheckRecoveryMode | 15940 | 29655 | 16869 | 121186 | 16 |
| quoteRealICR | 11421 | 14744 | 15095 | 114330 | 5667 |
| quoteRealNICR | 9863 | 30060 | 23838 | 126472 | 30 |
| quoteRealTCR | 15939 | 22627 | 15940 | 115175 | 33 |
| contracts/CdpManager.sol:CdpManager contract | | | | | |
|----------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 4889822 | 25515 | | | | |
| Function Name | min | avg | median | max | # calls |
| CCR | 373 | 373 | 373 | 373 | 22 |
| CdpIds | 708 | 708 | 708 | 2708 | 22762 |
| Cdps | 1249 | 1249 | 1249 | 1249 | 31 |
| DECIMAL_PRECISION | 285 | 285 | 285 | 285 | 49 |
| LICR | 372 | 372 | 372 | 372 | 8 |
| LIQUIDATOR_REWARD | 306 | 306 | 306 | 306 | 60 |
| MAX_MINUTE_DECAY_FACTOR | 273 | 273 | 273 | 273 | 2 |
| MAX_REWARD_SPLIT | 294 | 294 | 294 | 294 | 4 |
| MCR | 307 | 307 | 307 | 307 | 19 |
| MINIMUM_GRACE_PERIOD | 306 | 306 | 306 | 306 | 5 |
| MIN_MINUTE_DECAY_FACTOR | 362 | 362 | 362 | 362 | 2 |
| MIN_NET_COLL | 350 | 350 | 350 | 350 | 40 |
| MIN_REDEMPTION_FEE_FLOOR | 565 | 565 | 565 | 565 | 3 |
| UNSET_TIMESTAMP | 385 | 385 | 385 | 385 | 68 |
| authority | 432 | 432 | 432 | 432 | 666 |
| baseRate | 474 | 474 | 474 | 474 | 4 |
| batchLiquidateCdps | 7955 | 90829 | 43859 | 255758 | 72 |
| beta | 398 | 398 | 398 | 398 | 1 |
| calcFeeUponStakingReward | 3793 | 4650 | 3793 | 7793 | 28 |
| cdpDebtRedistributionIndex | 529 | 529 | 529 | 529 | 18 |
| cdpStEthFeePerUnitIndex | 549 | 549 | 549 | 549 | 5650 |
| checkRecoveryMode | 3686 | 3686 | 3686 | 3686 | 32 |
| closeCdp | 4317 | 11086 | 11812 | 12374 | 21 |
| getAccumulatedFeeSplitApplied | 1499 | 1499 | 1499 | 1499 | 46 |
| getActiveCdpsCount | 405 | 410 | 405 | 2405 | 1050 |
| getCdpCollShares | 578 | 578 | 578 | 578 | 2274 |
| getCdpDebt | 549 | 549 | 549 | 549 | 1661 |
| getCdpLiquidatorRewardShares | 535 | 535 | 535 | 535 | 60 |
| getCdpStake | 557 | 557 | 557 | 2557 | 11268 |
| getCdpStatus | 593 | 990 | 593 | 2593 | 11618 |
| getDebtAndCollShares | 2025 | 3023 | 3172 | 9661 | 17089 |
| getICR | 3155 | 3704 | 3688 | 11166 | 8467 |
| getNominalICR | 1779 | 2342 | 2304 | 16304 | 609979 |
| getPendingRedistributedDebt | 1076 | 1086 | 1076 | 1353 | 26 |
| getSyncedCdpCollShares | 8241 | 8241 | 8241 | 8241 | 8 |
| getSyncedICR | 6197 | 6719 | 6197 | 8197 | 87 |
| getSystemCollShares | 1117 | 1117 | 1117 | 1117 | 236 |
| getSystemDebt | 1150 | 1150 | 1150 | 1150 | 344 |
| getTCR | 3482 | 3638 | 3640 | 3640 | 480 |
| initializeCdp | 164408 | 169665 | 166508 | 216308 | 2309 |
| lastEBTCDebtErrorRedistribution | 428 | 428 | 428 | 428 | 2 |
| lastGracePeriodStartTimestamp | 405 | 405 | 405 | 405 | 114 |
| liquidate | 17414 | 88430 | 87420 | 179767 | 57 |
| locked | 428 | 499 | 428 | 2428 | 3590 |
| minuteDecayFactor | 398 | 398 | 398 | 398 | 3 |
| notifyEndGracePeriod | 1696 | 1766 | 1696 | 3696 | 3596 |
| notifyStartGracePeriod | 1631 | 2722 | 1631 | 5451 | 7 |
| partiallyLiquidate | 17621 | 80724 | 29364 | 185376 | 39 |
| recoveryModeGracePeriodDuration | 444 | 481 | 444 | 2444 | 54 |
| redeemCollateral | 4768 | 204860 | 189093 | 899772 | 20 |
| redemptionFeeFloor | 426 | 2226 | 2426 | 2426 | 10 |
| redemptionsPaused | 439 | 439 | 439 | 439 | 2 |
| setBeta | 13252 | 46340 | 46340 | 79429 | 2 |
| setGracePeriod | 13355 | 18633 | 13396 | 26511 | 5 |
| setMinuteDecayFactor | 8813 | 36295 | 18861 | 79469 | 5 |
| setRedemptionFeeFloor | 9087 | 18988 | 11176 | 44514 | 4 |
| setRedemptionsPaused | 11445 | 47572 | 65636 | 65636 | 3 |
| setStakingRewardSplit | 8782 | 22217 | 22549 | 44191 | 7 |
| stEthIndex | 384 | 509 | 384 | 2384 | 48 |
| stakingRewardSplit | 402 | 1402 | 1402 | 2402 | 2 |
| syncAccounting | 3645 | 6600 | 7319 | 120254 | 7007 |
| syncGlobalAccounting | 1882 | 3106 | 1882 | 114820 | 2319 |
| syncGlobalAccountingAndGracePeriod | 7528 | 19231 | 8394 | 144729 | 142 |
| systemDebtRedistributionIndex | 473 | 473 | 473 | 473 | 34 |
| systemStEthFeePerUnitIndex | 473 | 497 | 473 | 2473 | 243 |
| totalCollateralSnapshot | 363 | 363 | 363 | 363 | 6 |
| totalStakes | 429 | 429 | 429 | 429 | 159 |
| updateCdp | 6365 | 6382 | 6365 | 6831 | 1273 |
| contracts/CollSurplusPool.sol:CollSurplusPool contract | | | | | |
|--------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 876760 | 5192 | | | | |
| Function Name | min | avg | median | max | # calls |
| getSurplusCollShares | 559 | 831 | 559 | 2559 | 22 |
| getTotalSurplusCollShares | 371 | 800 | 371 | 2371 | 205 |
| increaseSurplusCollShares | 2367 | 23690 | 24267 | 24267 | 76 |
| increaseTotalSurplusCollShares | 594 | 15629 | 22494 | 22494 | 76 |
| contracts/Dependencies/TellorCaller.sol:TellorCaller contract | | | | | |
|---------------------------------------------------------------|-----------------|------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 267806 | 1196 | | | | |
| Function Name | min | avg | median | max | # calls |
| fallbackTimeout | 336 | 1336 | 1336 | 2336 | 2 |
| getFallbackResponse | 2974 | 6974 | 6974 | 10974 | 2 |
| setFallbackTimeout | 1862 | 1862 | 1862 | 1862 | 3 |
| contracts/EBTCDeployer.sol:EBTCDeployer contract | | | | | |
|--------------------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 906857 | 4537 | | | | |
| Function Name | min | avg | median | max | # calls |
| ACTIVE_POOL | 611 | 611 | 611 | 611 | 222 |
| AUTHORITY | 678 | 678 | 678 | 678 | 222 |
| BORROWER_OPERATIONS | 628 | 628 | 628 | 628 | 222 |
| CDP_MANAGER | 568 | 568 | 568 | 568 | 222 |
| COLL_SURPLUS_POOL | 590 | 590 | 590 | 590 | 222 |
| EBTC_TOKEN | 656 | 656 | 656 | 656 | 222 |
| FEE_RECIPIENT | 633 | 633 | 633 | 633 | 222 |
| HINT_HELPERS | 567 | 567 | 567 | 567 | 222 |
| LIQUIDATION_LIBRARY | 671 | 671 | 671 | 671 | 222 |
| MULTI_CDP_GETTER | 613 | 613 | 613 | 613 | 222 |
| PRICE_FEED | 635 | 635 | 635 | 635 | 222 |
| SORTED_CDPS | 634 | 634 | 634 | 634 | 222 |
| addressOf | 1503 | 1503 | 1503 | 1503 | 2 |
| deploy | 623675 | 2045197 | 1556559 | 5035067 | 2666 |
| getFutureEbtcAddresses | 11697 | 11697 | 11697 | 11697 | 222 |
| contracts/EBTCToken.sol:EBTCToken contract | | | | | |
|--------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1111960 | 6344 | | | | |
| Function Name | min | avg | median | max | # calls |
| allowance | 792 | 792 | 792 | 792 | 1 |
| approve | 2666 | 21331 | 24666 | 24666 | 60 |
| balanceOf | 648 | 794 | 648 | 2648 | 1526 |
| burn(address,uint256) | 2527 | 3160 | 3158 | 8930 | 1068 |
| burn(uint256) | 7419 | 7419 | 7419 | 7419 | 1 |
| decreaseAllowance | 2874 | 2874 | 2874 | 2874 | 1 |
| domainSeparator | 343 | 343 | 343 | 343 | 6 |
| increaseAllowance | 2962 | 2962 | 2962 | 2962 | 1 |
| mint | 3127 | 12905 | 3127 | 59691 | 2681 |
| permit | 26948 | 39008 | 39008 | 51068 | 4 |
| totalSupply | 404 | 423 | 404 | 2404 | 520 |
| transfer | 2809 | 15685 | 20329 | 25411 | 43 |
| transferFrom | 1255 | 11615 | 8813 | 25892 | 29 |
| contracts/Governor.sol:Governor contract | | | | | |
|------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1607607 | 8083 | | | | |
| Function Name | min | avg | median | max | # calls |
| authority | 448 | 448 | 448 | 448 | 1 |
| burnCapability | 3364 | 28354 | 36053 | 37053 | 8 |
| canCall | 970 | 1980 | 1481 | 7481 | 7240 |
| capabilityFlag | 854 | 1354 | 854 | 2854 | 4 |
| doesRoleHaveCapability | 2891 | 2891 | 2891 | 2891 | 1 |
| doesUserHaveRole | 741 | 741 | 741 | 741 | 3 |
| getRoleName | 1516 | 1516 | 1516 | 1516 | 2 |
| getUsersByRole | 6897 | 6897 | 6897 | 6897 | 1 |
| isPublicCapability | 871 | 871 | 871 | 871 | 4 |
| owner | 426 | 426 | 426 | 426 | 1 |
| setPublicCapability | 4439 | 16639 | 7534 | 37602 | 7 |
| setRoleCapability | 6269 | 92828 | 72880 | 165564 | 4016 |
| setRoleName | 5539 | 44240 | 27577 | 94304 | 1558 |
| setUserRole | 5496 | 19652 | 5496 | 96180 | 1584 |
| transferOwnership | 9132 | 9132 | 9132 | 9132 | 1 |
| contracts/LeverageMacroDelegateTarget.sol:LeverageMacroDelegateTarget contract | | | | | |
|--------------------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2115748 | 11269 | | | | |
| Function Name | min | avg | median | max | # calls |
| doOperation | 450240 | 450240 | 450240 | 450240 | 1 |
| onFlashLoan | 373490 | 373490 | 373490 | 373490 | 1 |
| contracts/LeverageMacroFactory.sol:LeverageMacroFactory contract | | | | | |
|------------------------------------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2602832 | 13545 | | | | |
| Function Name | min | avg | median | max | # calls |
| deployNewMacro | 2328110 | 2328110 | 2328110 | 2328110 | 1 |
| contracts/LeverageMacroReference.sol:LeverageMacroReference contract | | | | | |
|----------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2286396 | 12281 | | | | |
| Function Name | min | avg | median | max | # calls |
| activePool | 250 | 250 | 250 | 250 | 2 |
| borrowerOperations | 316 | 316 | 316 | 316 | 2 |
| cdpManager | 227 | 227 | 227 | 227 | 2 |
| doOperation | 178197 | 308288 | 226684 | 451299 | 11 |
| ebtcToken | 206 | 206 | 206 | 206 | 2 |
| onFlashLoan | 114933 | 241025 | 166944 | 373392 | 11 |
| owner | 269 | 269 | 269 | 269 | 2 |
| sortedCdps | 271 | 271 | 271 | 271 | 2 |
| stETH | 249 | 249 | 249 | 249 | 2 |
| contracts/LiquidationLibrary.sol:LiquidationLibrary contract | | | | | |
|--------------------------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 4271646 | 22356 | | | | |
| Function Name | min | avg | median | max | # calls |
| batchLiquidateCdps | 4584 | 88120 | 40760 | 252821 | 72 |
| liquidate | 16458 | 86033 | 87026 | 177373 | 57 |
| liquidationLibrary | 296 | 296 | 296 | 296 | 1 |
| partiallyLiquidate | 16552 | 78252 | 26237 | 182265 | 39 |
| contracts/LiquidationSequencer.sol:LiquidationSequencer contract | | | | | |
|------------------------------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 576341 | 3384 | | | | |
| Function Name | min | avg | median | max | # calls |
| sequenceLiqToBatchLiqWithPrice | 27525 | 38515 | 33609 | 146853 | 39 |
| contracts/SimplifiedDiamondLike.sol:SimplifiedDiamondLike contract | | | | | |
|--------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 397297 | 2174 | | | | |
| Function Name | min | avg | median | max | # calls |
| enableCallbackForCall | 22390 | 22390 | 22390 | 22390 | 1 |
| execute | 556 | 168166 | 15295 | 557641 | 6 |
| onFlashLoan | 354979 | 354979 | 354979 | 354979 | 1 |
| owner | 182 | 182 | 182 | 182 | 2 |
| setAllowAnyCall | 335 | 14430 | 20478 | 22478 | 3 |
| setFallbackHandler | 474 | 11665 | 11673 | 22823 | 6 |
| contracts/SortedCdps.sol:SortedCdps contract | | | | | |
|----------------------------------------------|-----------------|--------|--------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1462626 | 7742 | | | | |
| Function Name | min | avg | median | max | # calls |
| batchRemove | 5374 | 14567 | 5856 | 32472 | 3 |
| cdpCountOf | 1040 | 15598 | 13365 | 40225 | 273 |
| cdpOfOwnerByIdx | 846 | 850 | 846 | 936 | 21 |
| cdpOfOwnerByIndex | 800 | 27821 | 23126 | 109631 | 1866 |
| contains | 524 | 912 | 1042 | 1042 | 49 |
| dummyId | 284 | 284 | 284 | 284 | 172 |
| getAllCdpsOf | 3126 | 3379 | 3126 | 5230 | 21 |
| getCdpCountOf | 1577 | 1835 | 1577 | 5679 | 21 |
| getCdpsOf | 2873 | 35426 | 4707 | 129420 | 4 |
| getFirst | 360 | 366 | 360 | 2360 | 881 |
| getLast | 360 | 629 | 360 | 2360 | 141 |
| getNext | 528 | 528 | 528 | 2528 | 22568 |
| getOwnerAddress | 332 | 332 | 332 | 332 | 2854 |
| getPrev | 489 | 489 | 489 | 489 | 710 |
| getSize | 358 | 377 | 358 | 2358 | 315 |
| insert | 54440 | 383358 | 221309 | 1782807 | 2309 |
| nonExistId | 259 | 259 | 259 | 259 | 613 |
| reInsert | 39771 | 854443 | 772131 | 1841064 | 1297 |
| remove | 2393 | 2622 | 2588 | 3150 | 100 |
| contracts/TestContracts/CollateralTokenTester.sol:CollateralTokenTester contract | | | | | |
|----------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1296311 | 6025 | | | | |
| Function Name | min | avg | median | max | # calls |
| approve | 2569 | 22929 | 24569 | 24569 | 1216 |
| balanceOf | 1106 | 1770 | 1106 | 5106 | 1114 |
| deposit | 3102 | 27151 | 25002 | 48902 | 1153 |
| getEthPerShare | 359 | 508 | 359 | 2359 | 107 |
| getPooledEthByShares | 892 | 893 | 892 | 2892 | 35534 |
| getSharesByPooledEth | 894 | 894 | 894 | 894 | 6203 |
| setEthPerShare | 339 | 1080 | 423 | 3223 | 235 |
| sharesOf | 669 | 813 | 669 | 2669 | 500 |
| totalSupply | 2893 | 2893 | 2893 | 2893 | 2 |
| transfer | 4708 | 13947 | 10685 | 30585 | 22 |
| transferFrom | 1369 | 7206 | 6215 | 30915 | 2642 |
| transferShares | 4444 | 7726 | 5555 | 27455 | 1167 |
| contracts/TestContracts/Mock1Inch.sol:Mock1Inch contract | | | | | |
|----------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 332118 | 1489 | | | | |
| Function Name | min | avg | median | max | # calls |
| setPrice(uint256) | 2457 | 2457 | 2457 | 2457 | 2 |
| setPrice(uint256)(bool) | 357 | 987 | 357 | 2457 | 10 |
| slippage | 285 | 285 | 285 | 285 | 5 |
| swap | 11578 | 20935 | 22458 | 26049 | 12 |
| contracts/TestContracts/MockAggregator.sol:MockAggregator contract | | | | | |
|--------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 319661 | 1531 | | | | |
| Function Name | min | avg | median | max | # calls |
| decimals | 530 | 991 | 530 | 4530 | 26 |
| getRoundData | 1150 | 1483 | 1150 | 3150 | 12 |
| latestRoundData | 1010 | 2152 | 1010 | 5010 | 14 |
| setDecimals | 533 | 1493 | 533 | 5333 | 10 |
| setLatestRoundId | 22479 | 22479 | 22479 | 22479 | 8 |
| setPrevPrice | 22336 | 22336 | 22336 | 22336 | 8 |
| setPrevRoundId | 558 | 558 | 558 | 558 | 8 |
| setPrice | 22400 | 22400 | 22400 | 22400 | 8 |
| setUpdateTime | 22378 | 22378 | 22378 | 22378 | 8 |
| contracts/TestContracts/MockTellor.sol:MockTellor contract | | | | | |
|------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 192138 | 894 | | | | |
| Function Name | min | avg | median | max | # calls |
| getDataBefore | 1203 | 3203 | 3203 | 5203 | 2 |
| setPrice(uint256) | 22379 | 22379 | 22379 | 22379 | 1 |
| setPrice(uint256)(bool) | 2479 | 15745 | 22379 | 22379 | 3 |
| setUpdateTime | 2456 | 17381 | 22356 | 22356 | 4 |
| contracts/TestContracts/Pretty.sol:Pretty contract | | | | | |
|----------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 514574 | 2628 | | | | |
| Function Name | min | avg | median | max | # calls |
| pretty(bool)(string) | 660 | 666 | 666 | 673 | 4 |
| pretty(uint256)(string) | 590 | 105259 | 88832 | 383458 | 60 |
| pretty(uint256,uint8)(string) | 2146 | 2171 | 2169 | 2215 | 10 |
| contracts/TestContracts/PriceFeedTester.sol:PriceFeedTester contract | | | | | |
|----------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1674338 | 11455 | | | | |
| Function Name | min | avg | median | max | # calls |
| bothOraclesAliveAndUnbrokenAndSimilarPrice | 4307 | 4307 | 4307 | 4307 | 1 |
| bothOraclesSimilarPrice | 1741 | 1741 | 1741 | 1741 | 1 |
| chainlinkIsBroken | 1874 | 1874 | 1874 | 1874 | 1 |
| chainlinkIsFrozen | 1193 | 1193 | 1193 | 1193 | 1 |
| chainlinkPriceChangeAboveMax | 1894 | 1894 | 1894 | 1894 | 1 |
| fallbackCaller | 383 | 383 | 383 | 383 | 1 |
| fallbackIsBroken | 831 | 831 | 831 | 831 | 1 |
| fallbackIsFrozen | 3646 | 3646 | 3646 | 3646 | 1 |
| fetchPrice | 19355 | 40657 | 40657 | 61959 | 2 |
| getCurrentChainlinkResponse | 7903 | 7903 | 7903 | 7903 | 1 |
| getCurrentFallbackResponse | 4370 | 4370 | 4370 | 4370 | 1 |
| getPrevChainlinkResponse | 8854 | 8854 | 8854 | 8854 | 1 |
| status | 419 | 1419 | 1419 | 2419 | 2 |
| contracts/TestContracts/WethMock.sol:WethMock contract | | | | | |
|--------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 438640 | 2343 | | | | |
| Function Name | min | avg | median | max | # calls |
| balanceOf | 541 | 826 | 541 | 2541 | 7 |
| deposit | 24031 | 24031 | 24031 | 24031 | 2 |
| transfer | 25338 | 25338 | 25338 | 25338 | 1 |
| contracts/TestContracts/testnet/PriceFeedTestnet.sol:PriceFeedTestnet contract | | | | | |
|--------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 551543 | 2941 | | | | |
| Function Name | min | avg | median | max | # calls |
| fallbackCaller | 371 | 371 | 371 | 371 | 1 |
| fetchPrice | 1620 | 1656 | 1620 | 5620 | 13027 |
| getPrice | 348 | 445 | 348 | 2348 | 1002 |
| setFallbackCaller | 13207 | 21774 | 21774 | 30342 | 2 |
| setPrice | 470 | 2695 | 3270 | 5370 | 78 |
| foundry_test/EchidnaToFoundry.t.sol:EToFoundry contract | | | | | |
|---------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 45473772 | 226309 | | | | |
| Function Name | min | avg | median | max | # calls |
| simulate | 16550 | 16550 | 16550 | 16550 | 1 |
| foundry_test/FlashLoanAttack.t.sol:FlashAttack contract | | | | | |
|---------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 237976 | 1475 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 906 | 33037 | 26736 | 75865 | 7 |
| foundry_test/FlashLoanWETHInteractions.sol:FlashWithDeposit contract | | | | | |
|----------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 299430 | 1689 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 291236 | 291236 | 291236 | 291236 | 1 |
| foundry_test/SimplifiedDiamondLikeBasic.t.sol:FakeERC20 contract | | | | | |
|------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 101947 | 541 | | | | |
| Function Name | min | avg | median | max | # calls |
| balanceOf | 510 | 510 | 510 | 510 | 1 |
| mint | 22598 | 22598 | 22598 | 22598 | 3 |
| transfer | 18413 | 23114 | 23114 | 27816 | 2 |
| foundry_test/SimplifiedDiamondLikeLeverage.t.sol:LeverageMacroOwnerCheck contract | | | | | |
|-----------------------------------------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 71123 | 387 | | | | |
| Function Name | min | avg | median | max | # calls |
| getOwner | 1853 | 1853 | 1853 | 1853 | 1 |
| foundry_test/utils/BalanceSnapshot.sol:BalanceSnapshot contract | | | | | |
|-----------------------------------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost | Deployment Size | | | | |
| 134988 | 1283 | | | | |
| Function Name | min | avg | median | max | # calls |
| get | 711 | 711 | 711 | 711 | 8 |
| foundry_test/utils/Flashloans.sol:FeeSplitClaimFlashReceiver contract | | | | | |
|-----------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 162932 | 881 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 175519 | 175519 | 175519 | 175519 | 1 |
| foundry_test/utils/Flashloans.sol:FlashLoanSpecReceiver contract | | | | | |
|------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 365605 | 1858 | | | | |
| Function Name | min | avg | median | max | # calls |
| balanceReceived | 351 | 351 | 351 | 351 | 2 |
| called | 355 | 355 | 355 | 355 | 2 |
| caller | 425 | 425 | 425 | 425 | 2 |
| onFlashLoan | 162698 | 162878 | 162878 | 163059 | 2 |
| receivedAmount | 306 | 306 | 306 | 306 | 2 |
| receivedData | 1231 | 1231 | 1231 | 1231 | 2 |
| receivedFee | 285 | 285 | 285 | 285 | 2 |
| receivedToken | 403 | 403 | 403 | 403 | 2 |
| setBalanceAlready | 23466 | 23695 | 23695 | 23924 | 2 |
| foundry_test/utils/Flashloans.sol:FlashLoanWrongReturn contract | | | | | |
|-----------------------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 107153 | 567 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 5783 | 5831 | 5831 | 5880 | 2 |
| foundry_test/utils/Flashloans.sol:STETHFlashReceiver contract | | | | | |
|---------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 119565 | 629 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 25791 | 25791 | 25791 | 25791 | 1 |
| foundry_test/utils/Flashloans.sol:UselessFlashReceiver contract | | | | | |
|-----------------------------------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost | Deployment Size | | | | |
| 74323 | 403 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 673 | 673 | 673 | 673 | 2 |
| foundry_test/utils/Flashloans.sol:eBTCFlashReceiver contract | | | | | |
|--------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 119565 | 629 | | | | |
| Function Name | min | avg | median | max | # calls |
| onFlashLoan | 25888 | 25888 | 25888 | 25888 | 1 |
| foundry_test/utils/SigUtils.sol:SigUtils contract | | | | | |
|---------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 132196 | 676 | | | | |
| Function Name | min | avg | median | max | # calls |
| getTypedDataHash | 3307 | 3307 | 3307 | 3307 | 4 |
| foundry_test/utils/Strings.sol:Strings contract | | | | | |
|-------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 145215 | 783 | | | | |
| Function Name | min | avg | median | max | # calls |
| bytes32ToString | 25809 | 25809 | 25809 | 25809 | 21 |
| foundry_test/utils/Utilities.sol:Utilities contract | | | | | |
|-----------------------------------------------------|-----------------|------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 918187 | 4328 | | | | |
| Function Name | min | avg | median | max | # calls |
| LIQUIDATOR_REWARD | 262 | 262 | 262 | 262 | 1 |
| assertApproximateEq | 516 | 516 | 517 | 517 | 215 |
| calculateBorrowAmount | 521 | 521 | 521 | 521 | 844 |
| calculateCollAmount | 757 | 757 | 757 | 757 | 83 |
| createUsers | 1702 | 5439 | 4877 | 64111 | 85 |
| generateRandomNumber | 947 | 947 | 947 | 947 | 1908 |
| getNextSpecialAddress | 617 | 617 | 617 | 617 | 222 |
| getNextUserAddress | 629 | 1059 | 629 | 5429 | 1014 |
| mineBlocks | 774 | 774 | 774 | 774 | 1600 |
Redemptions become a bit cheaper, but liquidations raise by 1k
I expected more tbh
ActivePool stuff goes down by 2k since we're using immutable
DO NOT MERGE!!
Changes to variable size to have more packing