Generated via bash utils/inspect.sh
.
forge test --gas-report --no-match-path "test/invariant/**/*"
lib/maxapy/src/MaxApyVault.sol:MaxApyVault contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
2854127 | 14448 | ||||
Function Name | min | avg | median | max | # calls |
balanceOf | 616 | 1383 | 616 | 2616 | 232 |
deposit | 12923 | 72764 | 79995 | 86845 | 164 |
shareValue | 1517 | 6116 | 1517 | 13517 | 227 |
withdraw | 10251 | 26940 | 30182 | 30182 | 92 |
lib/openzeppelin-contracts/contracts/proxy/beacon/BeaconProxy.sol:BeaconProxy contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
184839 | 1932 | ||||
Function Name | min | avg | median | max | # calls |
approveSale | 119602 | 135802 | 119602 | 159922 | 12 |
batchSetToZeroLoanId | 5924 | 7166 | 7166 | 8409 | 4 |
changeOwner | 116357 | 120183 | 120837 | 127090 | 11 |
checkAfterExecution | 1422 | 1422 | 1422 | 1422 | 232 |
checkTransaction | 3256 | 5054 | 3256 | 16256 | 232 |
delegateOneExecution | 22779 | 26529 | 24779 | 38279 | 22 |
execTransaction | 128683 | 131371 | 133163 | 133163 | 10 |
forceEndDelegation | 14714 | 14714 | 14714 | 14714 | 11 |
getLoanId | 1648 | 2381 | 1648 | 12648 | 15 |
guard | 1444 | 3484 | 1444 | 12445 | 480 |
initialize(address,address,address,address) | 114439 | 114439 | 114439 | 114439 | 253 |
initialize(address,address,address,address,address) | 114500 | 245979 | 245979 | 377459 | 506 |
isAssetLocked | 5532 | 21203 | 7532 | 43532 | 227 |
isLocked | 1615 | 6751 | 3615 | 12615 | 227 |
isValidSignature | 2498 | 2509 | 2498 | 2521 | 485 |
lockAsset | 21966 | 22248 | 21966 | 34966 | 195 |
safeSetLoanId | 83359 | 98631 | 83359 | 115898 | 187 |
setDelegationExpiry | 6177 | 6177 | 6177 | 6177 | 11 |
setLoanId | 5210 | 47475 | 60948 | 74948 | 11 |
unlockAsset | 1634 | 1846 | 1634 | 3758 | 20 |
lib/openzeppelin-contracts/contracts/proxy/beacon/UpgradeableBeacon.sol:UpgradeableBeacon contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
213856 | 1246 | ||||
Function Name | min | avg | median | max | # calls |
implementation | 308 | 433 | 308 | 2308 | 4416 |
lib/unlockdv2-wallet/src/DelegationWalletFactory.sol:DelegationWalletFactory contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
941491 | 5419 | ||||
Function Name | min | avg | median | max | # calls |
deployFor | 1489091 | 1491521 | 1489091 | 1494091 | 253 |
lib/unlockdv2-wallet/src/DelegationWalletRegistry.sol:DelegationWalletRegistry contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
507859 | 2544 | ||||
Function Name | min | avg | median | max | # calls |
getOwnerWalletAt | 2245 | 7625 | 2245 | 18245 | 342 |
setFactory | 22715 | 22715 | 22715 | 22715 | 184 |
setWallet | 201266 | 201266 | 201266 | 201266 | 253 |
lib/unlockdv2-wallet/src/libs/allowed/AllowedControllers.sol:AllowedControllers contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
419180 | 2795 | ||||
Function Name | min | avg | median | max | # calls |
setCollectionAllowance | 25412 | 25412 | 25412 | 25412 | 368 |
lib/unlockdv2-wallet/src/libs/guards/TransactionGuard.sol:TransactionGuard contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
975307 | 5132 | ||||
Function Name | min | avg | median | max | # calls |
checkAfterExecution | 323 | 323 | 323 | 323 | 232 |
checkTransaction | 2049 | 3652 | 2049 | 6049 | 232 |
initialize | 91312 | 91312 | 91312 | 91312 | 253 |
isLocked | 516 | 2163 | 2516 | 2516 | 227 |
lockAsset | 20870 | 21034 | 20870 | 24870 | 195 |
setDelegationExpiry | 5075 | 5075 | 5075 | 5075 | 11 |
unlockAsset | 757 | 947 | 757 | 2662 | 20 |
lib/unlockdv2-wallet/src/libs/owners/DelegationOwner.sol:DelegationOwner contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
2333731 | 12214 | ||||
Function Name | min | avg | median | max | # calls |
forceEndDelegation | 13615 | 13615 | 13615 | 13615 | 11 |
guard | 349 | 1133 | 349 | 2349 | 227 |
initialize | 113389 | 113389 | 113389 | 113389 | 253 |
lib/unlockdv2-wallet/src/libs/owners/GuardOwner.sol:GuardOwner contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
992907 | 5323 | ||||
Function Name | min | avg | median | max | # calls |
guard | 348 | 348 | 348 | 348 | 253 |
initialize | 376348 | 376348 | 376348 | 376348 | 253 |
isValidSignature | 1366 | 1366 | 1366 | 1366 | 253 |
lib/unlockdv2-wallet/src/libs/owners/ProtocolOwner.sol:ProtocolOwner contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
1738998 | 9091 | ||||
Function Name | min | avg | median | max | # calls |
approveSale | 118708 | 134908 | 118708 | 159028 | 12 |
batchSetToZeroLoanId | 5042 | 6283 | 6283 | 7525 | 4 |
changeOwner | 115476 | 119302 | 119956 | 126208 | 11 |
delegateOneExecution | 21680 | 23793 | 23680 | 28180 | 22 |
execTransaction | 127748 | 130436 | 132228 | 132228 | 10 |
getLoanId | 549 | 682 | 549 | 2549 | 15 |
initialize | 113334 | 113334 | 113334 | 113334 | 253 |
isAssetLocked | 4433 | 16615 | 6433 | 33433 | 227 |
isValidSignature | 1389 | 1389 | 1389 | 1389 | 232 |
safeSetLoanId | 82477 | 97645 | 82477 | 114796 | 187 |
setLoanId | 4331 | 44325 | 57849 | 64849 | 11 |
src/libraries/base/InterestRate.sol:InterestRate contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
422303 | 1982 | ||||
Function Name | min | avg | median | max | # calls |
calculateInterestRates | 2006 | 4622 | 2006 | 12923 | 395 |
src/libraries/configuration/ACLManager.sol:ACLManager contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
753558 | 4010 | ||||
Function Name | min | avg | median | max | # calls |
addAuctionAdmin | 1409 | 1409 | 1409 | 1409 | 202 |
addEmergencyAdmin | 27627 | 27627 | 27627 | 27627 | 203 |
addGovernanceAdmin | 27647 | 27647 | 27647 | 27647 | 203 |
addPriceUpdater | 25624 | 26670 | 27624 | 27624 | 386 |
addProtocolAdmin | 27581 | 27581 | 27581 | 27581 | 203 |
addUTokenAdmin | 27560 | 27560 | 27560 | 27560 | 202 |
hasRole | 763 | 763 | 763 | 763 | 2 |
isAuctionAdmin | 2767 | 2767 | 2767 | 2767 | 3 |
isEmergencyAdmin | 813 | 854 | 813 | 2813 | 763 |
isGovernanceAdmin | 790 | 800 | 790 | 2790 | 744 |
isPriceUpdater | 768 | 789 | 768 | 2768 | 745 |
isProtocol | 527 | 1086 | 527 | 2527 | 404 |
isProtocolAdmin | 812 | 830 | 812 | 2812 | 2050 |
isUTokenAdmin | 747 | 747 | 747 | 747 | 736 |
setProtocol | 1108 | 19341 | 23008 | 23008 | 221 |
src/libraries/oracles/ReserveOracle.sol:ReserveOracle contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
509871 | 2910 | ||||
Function Name | min | avg | median | max | # calls |
addAggregator | 25234 | 25246 | 25234 | 29734 | 738 |
addAggregators | 6454 | 46656 | 54697 | 54697 | 6 |
getAggregator | 560 | 560 | 560 | 560 | 1 |
getAssetPrice | 2685 | 11294 | 11294 | 19904 | 2 |
getLatestTimestamp | 19505 | 19505 | 19505 | 19505 | 1 |
removeAggregator | 1634 | 1634 | 1634 | 1634 | 1 |
src/libraries/proxy/UnlockdMinimalProxy.sol:UnlockdMinimalProxy contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
56609 | 518 | ||||
Function Name | min | avg | median | max | # calls |
addMarketAdapters | 3431 | 26193 | 26277 | 30677 | 372 |
allowCollectionReserveType | 13232 | 26613 | 26632 | 26632 | 741 |
bid(bytes32,uint128,uint128,((bytes32,uint256,uint256,uint256,uint88,uint256,uint256),bytes32,address,uint256,uint256,uint256,uint256,uint256),(uint8,bytes32,bytes32,uint256)) | 28529 | 101295 | 97260 | 304422 | 44 |
bid(uint128,uint128,((bytes32,uint256,uint256,uint256,uint88,uint256,uint256),bytes32[],uint256,uint256,uint40,uint256,uint256),(uint8,bytes32,bytes32,uint256)) | 45099 | 361912 | 543101 | 567501 | 15 |
borrow | 6014 | 529745 | 631834 | 1423384 | 102 |
buy | 104531 | 253151 | 188734 | 466189 | 3 |
buyNow | 22445 | 175501 | 118616 | 432400 | 8 |
calculateDigest(uint256,((bytes32,address,uint256,uint256,uint256,uint256),uint256,uint256,address,address,bytes,uint256,address,address,uint256,address,uint256,uint256)) | 4778 | 4778 | 4778 | 4778 | 4 |
calculateDigest(uint256,((bytes32,uint256,uint256,uint256,uint88,uint256,uint256),bytes32,address,address,uint256,address,address,address,bytes,uint256,uint256,uint256)) | 4643 | 4643 | 4643 | 4643 | 11 |
calculateDigest(uint256,((bytes32,uint256,uint256,uint256,uint88,uint256,uint256),bytes32,address,uint256,uint256,uint256,uint256,uint256)) | 3224 | 3224 | 3224 | 3224 | 88 |
calculateDigest(uint256,((bytes32,uint256,uint256,uint256,uint88,uint256,uint256),bytes32[],address,uint256,uint256)) | 3578 | 3623 | 3626 | 3821 | 108 |
calculateDigest(uint256,((bytes32,uint256,uint256,uint256,uint88,uint256,uint256),bytes32[],uint256,uint256,uint40,uint256,uint256)) | 3657 | 3678 | 3681 | 3681 | 23 |
cancel | 6286 | 16173 | 16282 | 22043 | 7 |
cancelClaim | 41642 | 41814 | 41814 | 41986 | 2 |
claim | 10601 | 110565 | 109170 | 223403 | 8 |
create | 32693 | 162685 | 166971 | 363908 | 43 |
emergencyActivateLoan | 5229 | 11719 | 13729 | 16201 | 3 |
emergencyBlockLoan | 5272 | 5272 | 5272 | 5272 | 1 |
emergencyFreezeLoan | 5294 | 12932 | 13794 | 16266 | 7 |
emergencyUpdateEndTimeAuction | 12920 | 12920 | 12920 | 12920 | 1 |
finalize | 11787 | 103810 | 87896 | 197723 | 7 |
forceSell | 423709 | 467247 | 453335 | 524697 | 3 |
getAllowedController | 1307 | 7307 | 10307 | 10307 | 3 |
getAmountToReedem | 18913 | 30913 | 30913 | 42913 | 2 |
getCalculations | 2091 | 2091 | 2091 | 2091 | 1 |
getCollectionReserveType | 1617 | 3117 | 1617 | 10617 | 6 |
getLoan | 2439 | 2439 | 2439 | 2439 | 7 |
getMinBidPrice | 11595 | 19827 | 21195 | 21204 | 7 |
getMinBidPriceAuction | 12924 | 30771 | 36342 | 36342 | 11 |
getMsgSender | 1192 | 1192 | 1192 | 1192 | 2 |
getMsgSenderAndProxy | 1224 | 1224 | 1224 | 1224 | 1 |
getNonce | 1436 | 6794 | 6003 | 10503 | 234 |
getNumber | 1311 | 1311 | 1311 | 1311 | 2 |
getOnlyAdmin | 2483 | 2491 | 2491 | 2500 | 2 |
getOnlyByRole | 2462 | 2473 | 2473 | 2484 | 2 |
getOnlyEmergency | 2507 | 2515 | 2515 | 2524 | 2 |
getOnlyGovernance | 2505 | 2513 | 2513 | 2522 | 2 |
getOrder | 4876 | 5352 | 4876 | 14876 | 21 |
getReserveOracle | 1262 | 7262 | 10262 | 10262 | 3 |
getSigner | 1274 | 7274 | 10274 | 10274 | 3 |
getUTokenVault | 1263 | 1263 | 1263 | 1263 | 1 |
getWalletRegistry | 1329 | 7329 | 10329 | 10329 | 3 |
incr | 1373 | 1373 | 1373 | 1373 | 1 |
installModules | 14072 | 804123 | 828945 | 828945 | 191 |
internalCall | 24892 | 24892 | 24892 | 24892 | 1 |
isMarketAdapterActive | 1496 | 5996 | 5996 | 10496 | 6 |
redeem | 52534 | 95504 | 95504 | 138474 | 2 |
repay | 34508 | 59624 | 50709 | 112933 | 9 |
sell | 31355 | 268246 | 382532 | 440388 | 8 |
setAllowedControllers | 9300 | 25907 | 26065 | 26065 | 186 |
setReserveOracle | 9343 | 25950 | 26108 | 26108 | 186 |
setSafeERC721 | 26085 | 26085 | 26085 | 26085 | 184 |
setSigner | 9255 | 25862 | 26020 | 26020 | 186 |
setUTokenVault | 16256 | 25949 | 26021 | 26021 | 186 |
setWalletRegistry | 9342 | 25949 | 26107 | 26107 | 186 |
src/libraries/proxy/UnlockdUpgradeableProxy.sol:UnlockdUpgradeableProxy contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
177444 | 1682 | ||||
Function Name | min | avg | median | max | # calls |
approve | 24816 | 24816 | 24816 | 24816 | 2 |
balanceOf | 965 | 965 | 965 | 965 | 3 |
borrow | 4001 | 154102 | 180964 | 205960 | 112 |
burn | 3020 | 3020 | 3020 | 3020 | 2 |
createMarket | 352243 | 352243 | 352243 | 352243 | 736 |
deposit | 42938 | 185684 | 229092 | 302067 | 255 |
disableStrategy | 30624 | 30624 | 30624 | 30624 | 2 |
getDebtFromLoanId | 1109 | 1109 | 1109 | 1109 | 7 |
getReserveData | 2915 | 7305 | 2915 | 14915 | 261 |
getScaledDebtFromLoanId | 1687 | 1823 | 1687 | 3687 | 198 |
getScaledToken | 1033 | 3199 | 1033 | 7533 | 6 |
getScaledTotalDebtFromUser | 1729 | 1729 | 1729 | 1729 | 2 |
mint | 37089 | 47717 | 47689 | 54189 | 254 |
repay | 19319 | 44838 | 61948 | 62681 | 29 |
setActive | 4162 | 4176 | 4162 | 15162 | 737 |
setCaps | 7681 | 7681 | 7681 | 7681 | 1 |
setFrozen | 4170 | 4170 | 4170 | 4170 | 1 |
totalAvailableSupply | 5893 | 23645 | 29393 | 29393 | 109 |
totalSupplyNotInvested | 1552 | 3302 | 1552 | 12052 | 6 |
transfer | 20094 | 20094 | 20094 | 20094 | 2 |
transferFrom | 20468 | 20468 | 20468 | 20468 | 1 |
updateReserveStrategy | 4243 | 5549 | 5549 | 6855 | 2 |
updateState | 1153 | 4640 | 1153 | 36013 | 235 |
validateReserveType | 1230 | 1230 | 1230 | 1230 | 190 |
withdraw | 26704 | 41698 | 41698 | 56693 | 2 |
src/libraries/tokens/SafeERC721.sol:SafeERC721 contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
102996 | 681 | ||||
Function Name | min | avg | median | max | # calls |
ownerOf | 1531 | 5186 | 3531 | 8031 | 200 |
src/libraries/tokens/ScaledToken.sol:ScaledToken contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
1337276 | 6755 | ||||
Function Name | min | avg | median | max | # calls |
approve | 24415 | 24415 | 24415 | 24415 | 2 |
balanceOf | 567 | 567 | 567 | 567 | 3 |
burn | 2695 | 2695 | 2695 | 2695 | 2 |
initialize | 115502 | 115502 | 115502 | 115502 | 736 |
mint | 32182 | 47150 | 47282 | 49282 | 254 |
transfer | 19773 | 19773 | 19773 | 19773 | 2 |
transferFrom | 20143 | 20143 | 20143 | 20143 | 1 |
src/protocol/UTokenVault.sol:UTokenVault contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
4712520 | 24000 | ||||
Function Name | min | avg | median | max | # calls |
borrow | 3581 | 153204 | 180548 | 201044 | 112 |
createMarket | 351779 | 351779 | 351779 | 351779 | 736 |
deposit | 38021 | 185239 | 228769 | 297163 | 255 |
disableStrategy | 30308 | 30308 | 30308 | 30308 | 2 |
getDebtFromLoanId | 708 | 708 | 708 | 708 | 7 |
getReserveData | 2469 | 6859 | 2469 | 14469 | 261 |
getScaledDebtFromLoanId | 1286 | 1422 | 1286 | 3286 | 198 |
getScaledToken | 635 | 1301 | 635 | 2635 | 6 |
getScaledTotalDebtFromUser | 1328 | 1328 | 1328 | 1328 | 2 |
initialize | 24604 | 24604 | 24604 | 24604 | 184 |
repay | 18986 | 44505 | 61615 | 62348 | 29 |
setActive | 3764 | 3772 | 3764 | 10264 | 737 |
setCaps | 7271 | 7271 | 7271 | 7271 | 1 |
setFrozen | 3772 | 3772 | 3772 | 3772 | 1 |
totalAvailableSupply | 5495 | 23247 | 28995 | 28995 | 109 |
totalSupplyNotInvested | 1154 | 2154 | 1154 | 7154 | 6 |
updateReserveStrategy | 3845 | 5149 | 5149 | 6453 | 2 |
updateState | 758 | 2503 | 758 | 35618 | 235 |
validateReserveType | 829 | 829 | 829 | 829 | 190 |
withdraw | 26381 | 41375 | 41375 | 56370 | 2 |
src/protocol/Unlockd.sol:Unlockd contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
272322 | 1596 | ||||
Function Name | min | avg | median | max | # calls |
dispatch | 925 | 90313 | 25841 | 1422818 | 3248 |
moduleIdToImplementation | 491 | 491 | 491 | 491 | 2 |
moduleIdToProxy | 444 | 464 | 444 | 2444 | 688 |
src/protocol/adapters/ReservoirAdapter.sol:ReservoirAdapter contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
882368 | 4798 | ||||
Function Name | min | avg | median | max | # calls |
buy | 82037 | 87657 | 86357 | 95877 | 4 |
emergencyWithdraw | 38001 | 38001 | 38001 | 38001 | 2 |
emergencyWithdrawERC20 | 21747 | 21747 | 21747 | 21747 | 2 |
preBuy | 6247 | 6247 | 6247 | 6247 | 2 |
preSell | 121516 | 137716 | 121516 | 161836 | 12 |
receive | 55 | 55 | 55 | 55 | 2 |
sell | 133254 | 151614 | 153708 | 158188 | 10 |
src/protocol/gateway/WETHGateway.sol:WETHGateway contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
938437 | 5190 | ||||
Function Name | min | avg | median | max | # calls |
authorizeProtocol | 29860 | 29860 | 29860 | 29860 | 3 |
depositETH | 79663 | 150726 | 172014 | 179214 | 4 |
emergencyTokenTransfer | 20910 | 20910 | 20910 | 20910 | 1 |
receive | 95 | 95 | 95 | 95 | 1 |
withdrawETH | 139679 | 139679 | 139679 | 139679 | 1 |
src/protocol/modules/Action.sol:Action contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
1980862 | 10315 | ||||
Function Name | min | avg | median | max | # calls |
borrow | 4499 | 528006 | 630623 | 1421877 | 102 |
calculateDigest | 2507 | 2529 | 2531 | 2628 | 108 |
getLoan | 1488 | 1488 | 1488 | 1488 | 7 |
getNonce | 521 | 2187 | 2521 | 2521 | 108 |
moduleId | 184 | 184 | 184 | 184 | 184 |
moduleVersion | 206 | 206 | 206 | 206 | 184 |
repay | 30275 | 53991 | 47564 | 89431 | 9 |
src/protocol/modules/Auction.sol:Auction contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
3787851 | 19345 | ||||
Function Name | min | avg | median | max | # calls |
bid | 43916 | 360750 | 541926 | 566326 | 15 |
calculateDigest | 2550 | 2560 | 2562 | 2562 | 23 |
finalize | 10580 | 100236 | 69352 | 196764 | 7 |
getAmountToReedem | 17938 | 29938 | 29938 | 41938 | 2 |
getMinBidPriceAuction | 11952 | 28990 | 35379 | 35379 | 11 |
getNonce | 521 | 1738 | 2521 | 2521 | 23 |
moduleId | 206 | 206 | 206 | 206 | 184 |
moduleVersion | 250 | 250 | 250 | 250 | 184 |
redeem | 51315 | 94410 | 94410 | 137505 | 2 |
src/protocol/modules/BuyNow.sol:BuyNow contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
1239652 | 6610 | ||||
Function Name | min | avg | median | max | # calls |
buy | 103250 | 251960 | 187716 | 464916 | 3 |
calculateDigest | 3549 | 3549 | 3549 | 3549 | 4 |
getCalculations | 868 | 868 | 868 | 868 | 1 |
getNonce | 2543 | 2543 | 2543 | 2543 | 4 |
moduleId | 206 | 206 | 206 | 206 | 184 |
moduleVersion | 250 | 250 | 250 | 250 | 184 |
src/protocol/modules/Installer.sol:Installer contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
344165 | 1870 | ||||
Function Name | min | avg | median | max | # calls |
installModules | 8631 | 802967 | 827952 | 827952 | 191 |
src/protocol/modules/Manager.sol:Manager contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
981644 | 5100 | ||||
Function Name | min | avg | median | max | # calls |
addMarketAdapters | 2694 | 25273 | 25356 | 29756 | 372 |
allowCollectionReserveType | 12311 | 25692 | 25711 | 25711 | 741 |
emergencyActivateLoan | 4320 | 6974 | 8284 | 8320 | 3 |
emergencyBlockLoan | 4363 | 4363 | 4363 | 4363 | 1 |
emergencyFreezeLoan | 4385 | 7808 | 8385 | 8385 | 7 |
emergencyUpdateEndTimeAuction | 7499 | 7499 | 7499 | 7499 | 1 |
getAllowedController | 398 | 1731 | 2398 | 2398 | 3 |
getCollectionReserveType | 702 | 1035 | 702 | 2702 | 6 |
getReserveOracle | 353 | 1686 | 2353 | 2353 | 3 |
getSigner | 365 | 1698 | 2365 | 2365 | 3 |
getUTokenVault | 354 | 354 | 354 | 354 | 1 |
getWalletRegistry | 420 | 1753 | 2420 | 2420 | 3 |
isMarketAdapterActive | 581 | 1581 | 1581 | 2581 | 6 |
moduleId | 306 | 306 | 306 | 306 | 184 |
moduleVersion | 240 | 240 | 240 | 240 | 184 |
setAllowedControllers | 8383 | 24998 | 25156 | 25156 | 186 |
setReserveOracle | 8426 | 25041 | 25199 | 25199 | 186 |
setSafeERC721 | 25176 | 25176 | 25176 | 25176 | 184 |
setSigner | 8338 | 24953 | 25111 | 25111 | 186 |
setUTokenVault | 8339 | 24964 | 25112 | 25112 | 186 |
setWalletRegistry | 8425 | 25040 | 25198 | 25198 | 186 |
src/protocol/modules/Market.sol:Market contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
4454137 | 22671 | ||||
Function Name | min | avg | median | max | # calls |
bid | 27370 | 100151 | 96109 | 303271 | 44 |
buyNow | 21274 | 174450 | 117566 | 431470 | 8 |
calculateDigest | 2141 | 2141 | 2141 | 2141 | 88 |
cancel | 5369 | 15391 | 15555 | 21126 | 7 |
cancelClaim | 40742 | 40797 | 40797 | 40853 | 2 |
claim | 9456 | 108357 | 105641 | 222493 | 8 |
create | 31486 | 160957 | 165772 | 340001 | 43 |
getMinBidPrice | 10644 | 18876 | 20244 | 20253 | 7 |
getNonce | 588 | 1474 | 588 | 2588 | 88 |
getOrder | 3781 | 4257 | 3781 | 13781 | 21 |
moduleId | 229 | 229 | 229 | 229 | 184 |
moduleVersion | 228 | 228 | 228 | 228 | 184 |
src/protocol/modules/SellNow.sol:SellNow contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
2189895 | 11364 | ||||
Function Name | min | avg | median | max | # calls |
calculateDigest | 3426 | 3426 | 3426 | 3426 | 11 |
forceSell | 418733 | 431246 | 422691 | 452316 | 3 |
getNonce | 520 | 1247 | 520 | 2520 | 11 |
moduleId | 183 | 183 | 183 | 183 | 184 |
moduleVersion | 205 | 205 | 205 | 205 | 184 |
sell | 30074 | 247952 | 345481 | 439369 | 8 |
src/protocol/strategies/MaxApy.sol:MaxApyStrategy contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
583394 | 2917 | ||||
Function Name | min | avg | median | max | # calls |
balanceOf | 1386 | 9451 | 3266 | 19766 | 232 |
calculateAmountToSupply | 636 | 1601 | 1143 | 7143 | 181 |
calculateAmountToWithdraw | 4413 | 7455 | 8534 | 9035 | 111 |
getConfig | 796 | 1381 | 796 | 2796 | 256 |
supply | 33587 | 98050 | 105825 | 114166 | 164 |
withdraw | 11028 | 27906 | 31154 | 31154 | 92 |
test/AuctionTest.t.sol:AuctionTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
51655511 | 256940 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910794 | 50910794 | 50910794 | 50910794 | 14 |
test/BorrowTest.t.sol:BorrowTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
49875384 | 248090 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910822 | 50910822 | 50910822 | 50910822 | 14 |
test/BuyNowTest.t.sol:BuyNowTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48884063 | 243161 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910872 | 50910872 | 50910872 | 50910872 | 4 |
test/ManagerTest.t.sol:ManagerTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
49949782 | 248460 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910872 | 50910872 | 50910872 | 50910872 | 19 |
test/MarketTest.t.sol:MarketTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
52356593 | 260425 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910973 | 50910973 | 50910973 | 50910973 | 41 |
test/RepayTest.t.sol:RepayTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
49730354 | 247369 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910884 | 50910884 | 50910884 | 50910884 | 9 |
test/SellNowTest.t.sol:SellNowTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
50665661 | 252019 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910859 | 50910859 | 50910859 | 50910859 | 11 |
test/adapters/ReservoirAdapter.t.sol:ReservoidAdapterTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48105590 | 239290 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910862 | 50910862 | 50910862 | 50910862 | 5 |
test/base/BaseCoreModuleTest.t.sol:TestBaseModuleCore contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
363228 | 2005 | ||||
Function Name | min | avg | median | max | # calls |
getMsgSender | 283 | 283 | 283 | 283 | 2 |
getMsgSenderAndProxy | 309 | 309 | 309 | 309 | 1 |
getNumber | 402 | 402 | 402 | 402 | 2 |
getOnlyAdmin | 1572 | 1581 | 1581 | 1591 | 2 |
getOnlyByRole | 1551 | 1563 | 1563 | 1575 | 2 |
getOnlyEmergency | 1596 | 1605 | 1605 | 1615 | 2 |
getOnlyGovernance | 1594 | 1603 | 1603 | 1613 | 2 |
incr | 470 | 11420 | 11420 | 22370 | 2 |
internalCall | 23935 | 23935 | 23935 | 23935 | 1 |
moduleId | 217 | 217 | 217 | 217 | 7 |
moduleVersion | 283 | 283 | 283 | 283 | 7 |
test/base/BaseCoreTest.t.sol:TestBaseCore contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
268506 | 1373 | ||||
Function Name | min | avg | median | max | # calls |
createProxy | 2540 | 85584 | 134305 | 134305 | 5 |
internalCall | 5995 | 5995 | 5995 | 5995 | 1 |
test/gateway/WETHGateway.t.sol:WETHGatewayTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48107990 | 239302 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910884 | 50910884 | 50910884 | 50910884 | 4 |
test/libraries/logic/AssetLogic.t.sol:TestLib contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
78129 | 422 | ||||
Function Name | min | avg | median | max | # calls |
getHash | 789 | 789 | 789 | 789 | 1 |
test/libraries/logic/BuyNowLogic.t.sol:TestLib contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
86735 | 465 | ||||
Function Name | min | avg | median | max | # calls |
calculations | 779 | 785 | 789 | 789 | 3 |
test/libraries/logic/LoanLogic.t.sol:TestLib contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
82129 | 442 | ||||
Function Name | min | avg | median | max | # calls |
getHash | 795 | 795 | 795 | 795 | 1 |
test/libraries/logic/OrderLogic.t.sol:OrderLogicTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
49603070 | 246736 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910750 | 50910750 | 50910750 | 50910750 | 16 |
test/libraries/logic/SellNowLogic.t.sol:SellNowLogicTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
47932445 | 238429 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910884 | 50910884 | 50910884 | 50910884 | 1 |
test/signatures/ActionSignTest.t.sol:ActionSignSeam contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
455358 | 2561 | ||||
Function Name | min | avg | median | max | # calls |
calculateDigest | 490 | 2065 | 2291 | 2291 | 8 |
getNonce | 503 | 2253 | 2503 | 2503 | 8 |
removeSigner | 4148 | 4148 | 4148 | 4148 | 1 |
validate | 638 | 18480 | 26191 | 28976 | 8 |
test/signatures/ActionSignTest.t.sol:ActionSignTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48338256 | 240342 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910646 | 50910646 | 50910646 | 50910646 | 7 |
test/signatures/AuctionSignTest.t.sol:AuctionSignTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48360362 | 240452 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910646 | 50910646 | 50910646 | 50910646 | 7 |
test/signatures/AuctionSignTest.t.sol:SignSeam contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
468170 | 2626 | ||||
Function Name | min | avg | median | max | # calls |
calculateDigest | 468 | 2057 | 2285 | 2285 | 8 |
getNonce | 503 | 2253 | 2503 | 2503 | 8 |
removeSigner | 4148 | 4148 | 4148 | 4148 | 1 |
validate | 660 | 18514 | 26229 | 29014 | 8 |
test/signatures/BuyNowSignTest.t.sol:BuyNowSignTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48902734 | 243149 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910646 | 50910646 | 50910646 | 50910646 | 7 |
test/signatures/BuyNowSignTest.t.sol:SignSeam contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
486589 | 2717 | ||||
Function Name | min | avg | median | max | # calls |
calculateDigest | 490 | 3873 | 4357 | 4357 | 8 |
getNonce | 503 | 2253 | 2503 | 2503 | 8 |
removeSigner | 4165 | 4165 | 4165 | 4165 | 1 |
validate | 616 | 20008 | 28237 | 31021 | 8 |
test/signatures/MarketSignTest.t.sol:MarketSignTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48269069 | 239998 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910646 | 50910646 | 50910646 | 50910646 | 7 |
test/signatures/MarketSignTest.t.sol:SignSeam contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
418720 | 2378 | ||||
Function Name | min | avg | median | max | # calls |
calculateDigest | 362 | 1660 | 1846 | 1846 | 8 |
getNonce | 525 | 2275 | 2525 | 2525 | 8 |
removeSigner | 4165 | 4165 | 4165 | 4165 | 1 |
validate | 620 | 18224 | 25856 | 28641 | 8 |
test/signatures/SellNowSignTest.t.sol:SellNowSignTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48356926 | 240435 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910646 | 50910646 | 50910646 | 50910646 | 7 |
test/signatures/SellNowSignTest.t.sol:SignSeam contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
478983 | 2680 | ||||
Function Name | min | avg | median | max | # calls |
calculateDigest | 490 | 2808 | 3140 | 3140 | 8 |
getNonce | 525 | 2275 | 2525 | 2525 | 8 |
removeSigner | 4165 | 4165 | 4165 | 4165 | 1 |
validate | 572 | 19051 | 26975 | 29760 | 8 |
test/signatures/TypeHashCheckTest.t.sol:ActionSignMock contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
276053 | 1630 | ||||
Function Name | min | avg | median | max | # calls |
getTypeHash | 202 | 202 | 202 | 202 | 1 |
test/signatures/TypeHashCheckTest.t.sol:AuctionSignMock contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
288865 | 1695 | ||||
Function Name | min | avg | median | max | # calls |
getTypeHash | 202 | 202 | 202 | 202 | 1 |
test/signatures/TypeHashCheckTest.t.sol:BuyNowSignMock contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
307284 | 1786 | ||||
Function Name | min | avg | median | max | # calls |
getTypeHash | 202 | 202 | 202 | 202 | 1 |
test/signatures/TypeHashCheckTest.t.sol:MarketSignMock contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
244828 | 1474 | ||||
Function Name | min | avg | median | max | # calls |
getTypeHash | 224 | 224 | 224 | 224 | 1 |
test/signatures/TypeHashCheckTest.t.sol:SellNowSignMock contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
299678 | 1749 | ||||
Function Name | min | avg | median | max | # calls |
getTypeHash | 202 | 202 | 202 | 202 | 1 |
test/strategies/MaxApy.t.sol:MaxApyTest contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
48098721 | 239151 | ||||
Function Name | min | avg | median | max | # calls |
setUpByChain | 50910862 | 50910862 | 50910862 | 50910862 | 5 |
test/test-utils/helpers/HelperConvert.sol:HelperConvert contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
203873 | 1076 | ||||
Function Name | min | avg | median | max | # calls |
strToUint | 1695 | 9607 | 8025 | 20685 | 28 |
test/test-utils/mock/asset/MintableERC721.sol:MintableERC721 contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
1428422 | 7719 | ||||
Function Name | min | avg | median | max | # calls |
approve | 5314 | 6443 | 5314 | 25214 | 199 |
mintToAddress | 77082 | 112973 | 114882 | 121682 | 3456 |
ownerOf | 558 | 1420 | 558 | 2558 | 457 |
totalSupply | 393 | 1785 | 2393 | 2393 | 257 |
transferFrom | 41996 | 62877 | 64689 | 70489 | 25 |
test/test-utils/mock/market/NFTMarket.sol:NFTMarket contract | |||||
---|---|---|---|---|---|
Deployment Cost | Deployment Size | ||||
395830 | 2009 | ||||
Function Name | min | avg | median | max | # calls |
buy | 52169 | 58689 | 58289 | 66009 | 4 |
sell | 86019 | 88707 | 90499 | 90499 | 10 |
Ran 28 test suites: 234 tests passed, 0 failed, 0 skipped (234 total tests)