Skip to content

Instantly share code, notes, and snippets.

@dapp-whisperer
Created January 18, 2024 15:24
Show Gist options
  • Save dapp-whisperer/3f237aef0ddb8e0b9c2ac5978a5ae9a0 to your computer and use it in GitHub Desktop.
Save dapp-whisperer/3f237aef0ddb8e0b9c2ac5978a5ae9a0 to your computer and use it in GitHub Desktop.
Gas Report: ArrayIndex + CdpIds Removed
contracts/ActivePool.sol:ActivePool contract
Deployment Cost Deployment Size
2343272 12500
Function Name min avg median max # calls
MAX_BPS 349 349 349 349 1
MAX_FEE_BPS 240 240 240 240 1
PERIOD 329 329 329 329 19
allocateSystemCollSharesToFeeRecipient 3329 11080 3329 28029 225
claimFeeRecipientCollShares 13241 33232 29123 57333 3
decreaseSystemDebt 4568 6408 5709 28437 1067
fallback 45 45 45 45 1
feeBps 426 426 426 426 1
feeRecipientAddress 414 556 414 2414 546
flashFee 575 1865 1940 2940 8
flashLoan 843 108902 51386 439063 14
getFeeRecipientClaimableCollShares 336 588 336 2336 507
getSystemCollShares 425 461 425 2425 11705
getSystemDebt 424 458 424 2424 10662
increaseSystemCollShares 1804 3075 1804 23704 2478
increaseSystemDebt 5708 8671 5708 56413 2509
maxFlashLoan 539 4101 1510 12845 4
observe 671 2886 671 22819 21
setFeeBps 66635 66635 66635 66635 1
setFeeRecipientAddress 13294 35809 34287 61369 4
setFlashLoansPaused 16469 18469 18469 20469 2
sweepToken 18299 61156 71492 93679 6
transferSystemCollShares 9192 11197 9192 54207 1028
transferSystemCollSharesAndLiquidatorReward 9561 24652 29489 54411 118
update 2579 22610 22479 25279 19
contracts/BorrowerOperations.sol:BorrowerOperations contract
Deployment Cost Deployment Size
4261756 22964
Function Name min avg median max # calls
DOMAIN_SEPARATOR 403 403 403 403 7
LIQUIDATOR_REWARD 329 329 329 329 183
MAX_BPS 305 305 305 305 1
MAX_FEE_BPS 306 306 306 306 3
MCR 263 263 263 263 1
MIN_CHANGE 263 263 263 263 411
MIN_NET_STETH_BALANCE 264 264 264 264 96
addColl 16092 506192 396709 1824996 316
adjustCdp 93689 97548 97548 101408 2
adjustCdpWithColl 92608 110965 115292 116671 5
claimSurplusCollShares 24856 24856 24856 24856 1
closeCdp 31333 52898 46681 67375 22
feeBps 426 1426 1426 2426 6
feeRecipientAddress 459 1382 459 2459 13
flashFee 576 1335 945 2945 19
flashLoan 825 163428 148499 416190 25
getPositionManagerApproval 910 1310 910 2910 25
getSystemCollShares 1117 1117 1117 1117 1
increasePermitNonce 675 675 675 675 1
locked 384 384 384 384 186
maxFlashLoan 539 1994 2677 2677 9
nonces 2643 2643 2643 2643 7
openCdp 8428 607975 462950 1982739 2162
openCdpFor 221848 230594 230594 239341 2
permitPositionManagerApproval 866 31555 36345 49452 8
permitTypeHash 295 295 295 295 7
repayDebt 15893 510615 404440 1837691 310
setFeeBps 22030 27397 29186 29186 4
setFeeRecipientAddress 8832 18407 13306 28368 5
setFlashLoansPaused 6664 13712 10664 23808 3
setPositionManagerApproval 2344 19193 24830 24830 16
withdrawColl 16093 1384430 1502260 1896271 309
withdrawDebt 15910 1243824 1452881 1895730 349
contracts/CRLens.sol:CRLens contract
Deployment Cost Deployment Size
674683 3700
Function Name min avg median max # calls
getCheckRecoveryMode 17213 31415 19586 123926 139
getRealICR 10556 21609 22467 131643 11398
getRealNICR 9054 19969 20965 123771 5736
getRealTCR 17149 22854 21934 122662 437
quoteCheckRecoveryMode 17927 32169 20300 124640 139
quoteRealICR 11467 22521 23378 132554 11398
quoteRealNICR 9888 20804 21799 124605 5736
quoteRealTCR 17962 23680 22747 123475 437
contracts/CollSurplusPool.sol:CollSurplusPool contract
Deployment Cost Deployment Size
883010 5223
Function Name min avg median max # calls
claimSurplusCollShares 24357 24357 24357 24357 1
getSurplusCollShares 559 1059 559 2559 8
getTotalSurplusCollShares 349 552 349 2349 609
increaseSurplusCollShares 3417 24980 25317 25317 65
increaseTotalSurplusCollShares 661 19159 22561 22561 65
contracts/Dependencies/TellorCaller.sol:TellorCaller contract
Deployment Cost Deployment Size
267806 1196
Function Name min avg median max # calls
fallbackTimeout 336 1336 1336 2336 4
getFallbackResponse 2965 7054 2974 17474 6
setFallbackTimeout 1862 1862 1862 1862 5
contracts/Dependencies/TimelockControllerEnumerable.sol:TimelockControllerEnumerable contract
Deployment Cost Deployment Size
2611561 10477
Function Name min avg median max # calls
CANCELLER_ROLE 284 284 284 284 12
EXECUTOR_ROLE 286 286 286 286 6
PROPOSER_ROLE 263 263 263 263 6
TIMELOCK_ADMIN_ROLE 241 241 241 241 8
execute 19926 80653 99145 104397 4
getRoleMemberCount 2604 2604 2604 2604 8
hasRole 2696 2696 2696 2696 16
revokeRole 3924 4239 4239 4554 8
schedule 32413 32558 32593 32687 5
contracts/EBTCDeployer.sol:EBTCDeployer contract
Deployment Cost Deployment Size
937489 4690
Function Name min avg median max # calls
ACTIVE_POOL 611 611 611 611 254
AUTHORITY 568 568 568 568 254
BORROWER_OPERATIONS 650 650 650 650 254
CDP_MANAGER 568 568 568 568 254
COLL_SURPLUS_POOL 612 612 612 612 254
EBTC_TOKEN 678 678 678 678 254
FEE_RECIPIENT 633 633 633 633 254
HINT_HELPERS 567 567 567 567 254
LIQUIDATION_LIBRARY 671 671 671 671 254
MULTI_CDP_GETTER 613 613 613 613 223
PRICE_FEED 635 635 635 635 254
SORTED_CDPS 656 656 656 656 254
addressOf 1503 1503 1503 1503 2
deploy 623697 2072327 1555781 4840943 3019
getFutureEbtcAddresses 12648 12648 12648 12648 254
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 19377 24666 24666 42
balanceOf 648 782 648 2648 1443
burn(address,uint256) 2527 3159 3158 8908 1023
burn(uint256) 7401 7401 7401 7401 1
decreaseAllowance 2874 2874 2874 2874 1
domainSeparator 343 343 343 343 6
increaseAllowance 2962 2962 2962 2962 1
mint 3127 12998 3127 59669 2461
permit 26948 39008 39008 51068 4
totalSupply 404 424 404 2404 490
transfer 2809 21207 20329 25411 32
transferFrom 1255 11521 8813 25892 30
contracts/EbtcFeed.sol:EbtcFeed contract
Deployment Cost Deployment Size
605048 3694
Function Name min avg median max # calls
fetchPrice 2319 9498 4881 4002088 21232
primaryOracle 359 359 359 359 1
secondaryOracle 382 382 382 382 2
setPrimaryOracle 13246 15525 15969 17362 3
setSecondaryOracle 13191 28385 25759 48834 4
tinfoilCall 1601 434453 3883 2001308 14
contracts/Governor.sol:Governor contract
Deployment Cost Deployment Size
1508896 7590
Function Name min avg median max # calls
authority 426 426 426 426 1
burnCapability 3342 28332 36031 37031 8
canCall 948 1897 1459 7459 9544
capabilityFlag 832 1332 832 2832 4
doesRoleHaveCapability 3001 3001 3001 3001 3
doesUserHaveRole 785 1070 785 2785 7
getByteMapFromRoles 88217 88217 88217 88217 1
getEnabledFunctionsInTarget 3944 4290 4464 4464 3
getRoleName 1448 1448 1448 1448 2
getRolesForUser 311077 311077 311077 311077 1
getRolesFromByteMap 203970 203970 203970 203970 1
getUsersByRole 108864 108864 108864 108864 1
isPublicCapability 849 849 849 849 4
owner 404 404 404 404 1
setPublicCapability 4404 16598 7490 37558 7
setRoleCapability 5873 94431 72836 165520 5024
setRoleName 5495 39054 27533 94260 2263
setUserRole 5194 19345 5452 96136 2159
transferOwnership 5309 6077 5309 9149 5
contracts/HintHelpers.sol:HintHelpers contract
Deployment Cost Deployment Size
1056191 5875
Function Name min avg median max # calls
computeCR 659 659 659 659 1
getRedemptionHints 12866 22545 23528 32964 19
sortedCdpsToArray 1290 39438 20607 351370 693
contracts/LeverageMacroDelegateTarget.sol:LeverageMacroDelegateTarget contract
Deployment Cost Deployment Size
2168467 11560
Function Name min avg median max # calls
doOperation 31348 240794 240794 450240 2
onFlashLoan 369095 369095 369095 369095 1
contracts/LeverageMacroFactory.sol:LeverageMacroFactory contract
Deployment Cost Deployment Size
2667908 13870
Function Name min avg median max # calls
deployNewMacro 2387719 2387719 2387719 2387719 1
contracts/LeverageMacroReference.sol:LeverageMacroReference contract
Deployment Cost Deployment Size
2345930 12606
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 185860 325968 283474 478819 12
ebtcToken 206 206 206 206 2
onFlashLoan 119478 252507 226217 375411 12
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
4290682 22147
Function Name min avg median max # calls
batchLiquidateCdps 4584 96013 68202 273182 73
liquidate 19947 87087 26615 189797 52
liquidationLibrary 339 339 339 339 1
partiallyLiquidate 19984 89572 106584 195413 39
contracts/LiquidationSequencer.sol:LiquidationSequencer contract
Deployment Cost Deployment Size
575141 3378
Function Name min avg median max # calls
sequenceLiqToBatchLiqWithPrice 33168 46763 37601 148401 41
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 149042 21893 557641 7
onFlashLoan 350584 350584 350584 350584 1
owner 182 182 182 182 3
setAllowAnyCall 335 14430 20478 22478 3
setFallbackHandler 474 11665 11673 22823 6
contracts/SortedCdps.sol:SortedCdps contract
Deployment Cost Deployment Size
1461826 7738
Function Name min avg median max # calls
batchRemove 5374 5424 5449 5449 3
cdpCountOf 645 8966 2070 40225 521
cdpOfOwnerByIdx 824 828 824 914 21
cdpOfOwnerByIndex 866 27678 22694 109697 1752
contains 591 910 1109 1129 32
dummyId 262 262 262 262 172
getAllCdpsOf 1938 3222 3126 4732 21
getCdpCountOf 1577 1647 1577 2236 21
getCdpsOf 2453 3197 2873 4591 4
getFirst 338 340 338 2338 2437
getLast 338 578 338 2338 158
getNext 528 528 528 2528 72466
getOwnerAddress 332 332 332 332 17794
getPrev 556 556 556 556 151
getSize 358 386 358 2358 2408
insert 54433 405486 257371 1777160 2160
nextCdpNonce 341 2055 2341 2341 7
nonExistId 259 259 259 259 37
reInsert 39820 847479 760551 1835149 1304
remove 2396 2606 2580 3148 95
toCdpId 524 524 524 524 7
contracts/SyncedLiquidationSequencer.sol:SyncedLiquidationSequencer contract
Deployment Cost Deployment Size
718542 4122
Function Name min avg median max # calls
sequenceLiqToBatchLiqWithPrice 52510 52510 52510 52510 1
contracts/TestContracts/AccruableCdpManager.sol:AccruableCdpManager contract
Deployment Cost Deployment Size
4699180 24372
Function Name min avg median max # calls
CCR 307 307 307 307 95
Cdps 1173 1173 1173 1173 16
DECIMAL_PRECISION 285 285 285 285 302
LICR 306 306 306 306 8
LIQUIDATOR_REWARD 328 328 328 328 48
MAX_MINUTE_DECAY_FACTOR 264 264 264 264 2
MAX_REWARD_SPLIT 284 284 284 284 5
MCR 262 262 262 262 219
MINIMUM_GRACE_PERIOD 350 350 350 350 6
MIN_MINUTE_DECAY_FACTOR 353 353 353 353 2
MIN_NET_STETH_BALANCE 329 329 329 329 112
MIN_REDEMPTION_FEE_FLOOR 449 449 449 449 3
UNSET_TIMESTAMP 385 385 385 385 558
authority 476 476 476 476 765
baseRate 452 452 452 452 4
batchLiquidateCdps 7955 98721 70949 276119 73
beta 363 363 363 363 1
calcFeeUponStakingReward 3912 5101 3912 7912 37
cdpDebtRedistributionIndex 507 507 507 507 9
cdpStEthFeePerUnitIndex 593 593 593 593 5563
checkRecoveryMode 3428 3712 3751 3751 277
closeCdp 5398 9552 9976 10543 22
getAccumulatedFeeSplitApplied 1499 1499 1499 1499 46
getActiveCdpsCount 1030 1042 1030 5530 1048
getCachedICR 3003 3702 3699 11014 14261
getCachedNominalICR 1771 2331 2294 16294 615748
getCachedTCR 3428 3839 3751 7428 1124
getCdpCollShares 534 534 534 534 2588
getCdpDebt 526 526 526 526 1810
getCdpLiquidatorRewardShares 578 579 578 2578 5766
getCdpStake 600 600 600 2600 11176
getCdpStatus 593 972 593 2593 11377
getPendingRedistributedDebt 1095 1139 1095 1364 6
getSyncedCdpCollShares 3690 4727 4837 10386 5637
getSyncedCdpDebt 1343 1343 1343 1692 11172
getSyncedDebtAndCollShares 1702 3085 3211 11702 16952
getSyncedICR 6409 7424 7556 15105 5709
getSyncedNominalICR 3992 5016 5139 8688 5581
getSyncedSystemCollShares 2983 3020 2983 4983 162
getSyncedTCR 5176 5493 5499 5499 324
getSystemCollShares 1073 1073 1073 1073 237
getSystemDebt 1172 1172 1172 1172 338
hasPendingRedistributedDebt 1021 1021 1021 1021 6
initializeCdp 140962 142939 140962 168862 2160
lastEBTCDebtErrorRedistribution 472 862 472 2472 174
lastGracePeriodStartTimestamp 516 585 516 2516 863
liquidate 20903 89509 29632 192191 52
locked 450 531 450 2450 3455
minuteDecayFactor 407 407 407 407 3
notifyEndGracePeriod 1696 1757 1696 3696 3460
notifyStartGracePeriod 1631 3541 3541 5451 2
partiallyLiquidate 591 89864 68479 198579 40
recoveryModeGracePeriodDuration 533 563 533 2533 66
redeemCollateral 4681 197991 203403 335776 22
redemptionFeeFloor 406 2224 2406 2406 11
redemptionsPaused 378 378 378 378 2
setBeta 13285 55511 55511 97738 2
setGracePeriod 13311 19963 13352 29902 5
setMinuteDecayFactor 8768 40786 22060 95603 5
setRedemptionFeeFloor 8932 22966 11111 60713 4
setRedemptionsPaused 14069 63407 88077 88077 3
setStakingRewardSplit 8808 28548 28380 60557 8
sortedCdps 272 272 272 272 62
stEthIndex 428 656 428 2428 298
stakingRewardSplit 450 1450 1450 2450 2
syncAccounting 3680 11053 12330 125463 18474
syncGlobalAccounting 1946 3161 1946 110016 2170
syncGlobalAccountingAndGracePeriod 10628 18562 11829 154396 668
systemDebtRedistributionIndex 451 671 451 2451 281
systemStEthFeePerUnitIndex 362 385 362 2362 259
systemStEthFeePerUnitIndexError 428 428 428 428 16
totalCollateralSnapshot 363 363 363 363 2
totalStakes 473 473 473 473 192
totalStakesSnapshot 472 472 472 472 2
updateCdp 6870 6887 6870 7336 1279
contracts/TestContracts/ActivePoolTester.sol:ActivePoolTester contract
Deployment Cost Deployment Size
2459642 13095
Function Name min avg median max # calls
PERIOD 351 351 351 351 43
getData 1112 1159 1112 5112 85
getLatestAccumulator 1166 1166 1166 1166 84
observe 671 1789 1789 2908 2
unprotectedSetTwapTrackVal 3244 9360 4055 29955 57
update 25301 25301 25301 25301 1
valueToTrack 425 425 425 425 139
contracts/TestContracts/CollateralTokenTester.sol:CollateralTokenTester contract
Deployment Cost Deployment Size
1337640 6126
Function Name min avg median max # calls
approve 2569 22909 24569 24569 1267
balanceOf 1145 1777 1310 7310 1543
deposit 3493 25304 25393 34993 1188
getEthPerShare 856 974 856 4856 370
getPooledEthByShares 792 957 957 4957 76092
getSharesByPooledEth 816 962 981 981 5997
setEthPerShare 732 1501 914 5014 253
sharesOf 669 777 669 2669 661
totalSupply 372 372 372 372 2
transfer 4760 14152 10750 30650 25
transferFrom 1456 7439 6302 31002 2497
transferShares 4496 7755 5455 36320 1160
contracts/TestContracts/EBTCTokenTester.sol:EBTCTokenTester contract
Deployment Cost Deployment Size
1257156 7123
Function Name min avg median max # calls
approve 7611 24529 24711 24711 94
balanceOf 605 812 605 2605 309
burn 2527 3157 3158 3186 46
mint 3149 19069 3149 42949 75
totalSupply 360 584 360 2360 276
transferFrom 21272 21272 21272 21272 1
contracts/TestContracts/Mock1Inch.sol:Mock1Inch contract
Deployment Cost Deployment Size
447430 2065
Function Name min avg median max # calls
setPrice(uint256) 379 904 379 2479 8
setPrice(uint256)(bool) 379 1954 2479 2479 4
slippage 285 285 285 285 5
swap 11695 21300 22575 26192 13
contracts/TestContracts/MockAggregator.sol:MockAggregator contract
Deployment Cost Deployment Size
319661 1531
Function Name min avg median max # calls
decimals 530 954 530 4530 66
getRoundData 1150 1525 1150 3150 32
latestRoundData 1010 1833 1010 5010 34
setDecimals 533 1066 533 5333 18
setLatestRoundId 22479 22479 22479 22479 16
setPrevPrice 336 20047 22336 22336 18
setPrevRoundId 558 558 558 558 16
setPrice 400 19331 22400 22400 19
setUpdateTime 378 19309 22378 22378 19
contracts/TestContracts/MockTellor.sol:MockTellor contract
Deployment Cost Deployment Size
192138 894
Function Name min avg median max # calls
getDataBefore 1203 3536 1203 9203 6
setPrice(uint256) 22379 22379 22379 22379 1
setPrice(uint256)(bool) 3179 18539 22379 22379 5
setUpdateTime 285 15059 22356 22356 8
contracts/TestContracts/Pretty.sol:Pretty contract
Deployment Cost Deployment Size
588647 2998
Function Name min avg median max # calls
pretty(bool)(string) 615 621 621 628 4
pretty(uint256)(string) 612 100906 89108 338921 96
pretty(uint256,uint8)(string) 1704 2178 2213 2259 14
contracts/TestContracts/PriceFeedOracleTester.sol:PriceFeedOracleTester contract
Deployment Cost Deployment Size
270236 1417
Function Name min avg median max # calls
fetchPrice 493 4083 2498 1999998 20964
setErrorState 620 700 620 3420 70
contracts/TestContracts/PriceFeedTester.sol:PriceFeedTester contract
Deployment Cost Deployment Size
1699766 11582
Function Name min avg median max # calls
TIMEOUT_STETH_ETH_FEED 229 229 229 229 1
bothOraclesAliveAndUnbrokenAndSimilarPrice 2015 2573 2573 3131 2
bothOraclesSimilarPrice 1879 1879 1879 1879 2
chainlinkIsBroken 1874 1874 1874 1874 2
chainlinkIsFrozen 1193 1193 1193 1193 2
chainlinkPriceChangeAboveMax 1894 1894 1894 1894 2
fallbackCaller 383 383 383 383 3
fallbackIsBroken 736 783 783 831 2
fallbackIsFrozen 704 2175 2175 3646 2
fetchPrice 17851 46163 43562 88383 7
getCurrentChainlinkResponse 7903 7903 7903 7903 2
getCurrentFallbackResponse 4361 4365 4365 4370 2
getPrevChainlinkResponse 8854 8854 8854 8854 2
lastGoodPrice 331 1331 1331 2331 2
setFallbackCaller 15865 15865 15865 15865 1
status 419 704 419 2419 7
contracts/TestContracts/WethMock.sol:WethMock contract
Deployment Cost Deployment Size
438640 2343
Function Name min avg median max # calls
balanceOf 541 674 541 2541 15
deposit 24031 24031 24031 24031 4
transfer 25338 25338 25338 25338 3
contracts/TestContracts/invariants/Actor.sol:Actor contract
Deployment Cost Deployment Size
632338 3392
Function Name min avg median max # calls
onFlashLoan 83364 83364 83364 83364 1
proxy(address,bytes)(bool,bytes) 2751 152685 110748 434559 204
proxy(address,bytes,uint256)(bool,bytes) 33705 33705 33705 33705 93
receive 55 55 55 55 93
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 1658 1620 5620 25892
getPrice 348 432 348 2348 1374
setFallbackCaller 13185 21752 21752 30320 2
setPrice(uint256) 470 1636 470 3270 24
setPrice(uint256)(bool) 470 3103 3270 5370 59
foundry_test/EbtcFeedUnit.t.sol:MockCLCaller contract
Deployment Cost Deployment Size
38287 222
Function Name min avg median max # calls
fetchPrice 247 247 247 247 9
getLatestPrice 283 283 283 283 1
setPrice 5234 20434 22334 22334 9
foundry_test/EbtcFeedUnit.t.sol:ScamBurnAllGas contract
Deployment Cost Deployment Size
76211 314
Function Name min avg median max # calls
getLatestPrice 2404 1001202 1001202 2000000 2
toggleAttack 20293 20293 20293 20293 1
foundry_test/EbtcFeedUnit.t.sol:ScamReturnBomb contract
Deployment Cost Deployment Size
77811 322
Function Name min avg median max # calls
getLatestPrice 276 1351 1351 2426 2
toggleAttack 20315 20315 20315 20315 1
foundry_test/EbtcFeedUnit.t.sol:ScamReturnBytes contract
Deployment Cost Deployment Size
118853 527
Function Name min avg median max # calls
getLatestPrice 2731 23647 23647 44564 2
toggleAttack 20293 20293 20293 20293 1
foundry_test/EbtcFeedUnit.t.sol:ScamRevertBomb contract
Deployment Cost Deployment Size
67805 271
Function Name min avg median max # calls
getLatestPrice 254 1329 1329 2404 2
toggleAttack 20293 20293 20293 20293 1
foundry_test/EbtcFeedUnit.t.sol:ScamRevertWithCustomError contract
Deployment Cost Deployment Size
70005 282
Function Name min avg median max # calls
getLatestPrice 293 1348 1348 2404 2
toggleAttack 20293 20293 20293 20293 1
foundry_test/EbtcFeedUnit.t.sol:ScamRevertWithCustomErrorAndParam contract
Deployment Cost Deployment Size
71605 290
Function Name min avg median max # calls
getLatestPrice 311 1357 1357 2404 2
toggleAttack 20293 20293 20293 20293 1
foundry_test/EbtcFeedUnit.t.sol:ScamSelfDestruct contract
Deployment Cost Deployment Size
57193 218
Function Name min avg median max # calls
getLatestPrice 247 247 247 247 1
toggleAttack 5147 5147 5147 5147 1
foundry_test/FlashLoanAttack.t.sol:FlashAttack contract
Deployment Cost Deployment Size
237976 1475
Function Name min avg median max # calls
onFlashLoan 906 33178 26974 76660 7
foundry_test/FlashLoanWETHInteractions.sol:FlashWithDeposit contract
Deployment Cost Deployment Size
299430 1689
Function Name min avg median max # calls
onFlashLoan 273820 273820 273820 273820 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
135231 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 185186 185186 185186 185186 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 162980 162980 163263 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 6063 14764 14764 23466 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/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 516 517 213
calculateBorrowAmount 521 521 521 521 799
calculateCollAmount 757 757 757 757 84
createUsers 1702 5402 3818 65173 87
generateRandomNumber 947 947 947 947 1909
getNextSpecialAddress 617 637 617 5417 236
getNextUserAddress 629 1079 629 5429 1023
mineBlocks 774 774 774 774 1600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment