Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use token for all actions #74

Merged
merged 1 commit into from
Nov 14, 2024
Merged

fix: use token for all actions #74

merged 1 commit into from
Nov 14, 2024

Conversation

sakulstra
Copy link
Contributor

No description provided.

@sakulstra sakulstra merged commit 076108f into aave-dao:main Nov 14, 2024
3 of 26 checks passed
@sakulstra sakulstra deleted the fix/ci branch November 14, 2024 17:26
@sakulstra
Copy link
Contributor Author

forge 0.0.2 (48c6b1a 2024-11-14T00:25:11.631288377Z)
🔧 Build logs
Compiling 399 files with Solc 0.8.20
Solc 0.8.20 finished in 104.54s
Compiler run successful with warnings:
Warning (9302): Return value of low-level calls not used.
  --> src/contracts/treasury/RevenueSplitter.sol:68:5:
   |
68 |     RECIPIENT_A.call{value: amount_A}('');
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (9302): Return value of low-level calls not used.
  --> src/contracts/treasury/RevenueSplitter.sol:69:5:
   |
69 |     RECIPIENT_B.call{value: amount_B}('');
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (5740): Unreachable code.
  --> src/contracts/dependencies/openzeppelin/ReentrancyGuard.sol:61:5:
   |
61 |     _status = _NOT_ENTERED;
   |     ^^^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> tests/extensions/static-a-token/StataTokenV2Rescuable.sol:47:5:
   |
47 |     address treasury = IAToken(aToken).RESERVE_TREASURY_ADDRESS();
   |     ^^^^^^^^^^^^^^^^

| Contract                                       | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
|------------------------------------------------|------------------|-------------------|--------------------|---------------------|
| ACLManager                                     |            3,493 |             4,107 |             21,083 |              45,045 |
| ATokenInstance                                 |           10,163 |            11,058 |             14,413 |              38,094 |
| ATokenMock                                     |              803 |               967 |             23,773 |              48,185 |
| AaveOracle                                     |            2,662 |             3,867 |             21,914 |              45,285 |
| AaveParaSwapFeeClaimer                         |            1,572 |             1,959 |             23,004 |              47,193 |
| AaveProtocolDataProvider                       |            9,465 |             9,739 |             15,111 |              39,413 |
| AaveV3BatchOrchestration                       |               44 |                94 |             24,532 |              49,058 |
| AaveV3ConfigEngine                             |            7,573 |             9,165 |             17,003 |              39,987 |
| AaveV3DefaultRateStrategyProcedure             |               21 |                47 |             24,555 |              49,105 |
| AaveV3GettersBatchOne                          |              229 |            32,561 |             24,347 |              16,591 |
| AaveV3GettersBatchTwo                          |              137 |            11,156 |             24,439 |              37,996 |
| AaveV3GettersProcedureOne                      |               21 |                47 |             24,555 |              49,105 |
| AaveV3GettersProcedureTwo                      |               21 |                47 |             24,555 |              49,105 |
| AaveV3HelpersBatchOne                          |              353 |            34,075 |             24,223 |              15,077 |
| AaveV3HelpersBatchTwo                          |              229 |            32,983 |             24,347 |              16,169 |
| AaveV3HelpersProcedureOne                      |               21 |                47 |             24,555 |              49,105 |
| AaveV3HelpersProcedureTwo                      |               21 |                47 |             24,555 |              49,105 |
| AaveV3IncentiveProcedure                       |               21 |                47 |             24,555 |              49,105 |
| AaveV3L2PoolBatch                              |              137 |            43,953 |             24,439 |               5,199 |
| AaveV3L2PoolProcedure                          |               21 |                47 |             24,555 |              49,105 |
| AaveV3LibrariesBatch1                          |              353 |            31,273 |             24,223 |              17,879 |
| AaveV3LibrariesBatch2                          |              353 |            41,668 |             24,223 |               7,484 |
| AaveV3MiscBatch                                |              137 |             6,830 |             24,439 |              42,322 |
| AaveV3MiscProcedure                            |               21 |                47 |             24,555 |              49,105 |
| AaveV3MockAssetEModeUpdate                     |            3,420 |             3,649 |             21,156 |              45,503 |
| AaveV3MockBorrowUpdate                         |            3,300 |             3,491 |             21,276 |              45,661 |
| AaveV3MockBorrowUpdateNoChange                 |            3,330 |             3,521 |             21,246 |              45,631 |
| AaveV3MockCapUpdate                            |            3,244 |             3,435 |             21,332 |              45,717 |
| AaveV3MockCollateralUpdate                     |            3,304 |             3,495 |             21,272 |              45,657 |
| AaveV3MockCollateralUpdateCorrectBonus         |            3,304 |             3,495 |             21,272 |              45,657 |
| AaveV3MockCollateralUpdateNoChange             |            3,331 |             3,522 |             21,245 |              45,630 |
| AaveV3MockCollateralUpdateWrongBonus           |            3,308 |             3,499 |             21,268 |              45,653 |
| AaveV3MockEModeCategoryUpdate                  |            3,159 |             3,297 |             21,417 |              45,855 |
| AaveV3MockEModeCategoryUpdateEdgeBonus         |            3,162 |             3,300 |             21,414 |              45,852 |
| AaveV3MockEModeCategoryUpdateNoChange          |            3,221 |             3,359 |             21,355 |              45,793 |
| AaveV3MockListing                              |            3,598 |             3,827 |             20,978 |              45,325 |
| AaveV3MockListingCustom                        |            3,891 |             4,203 |             20,685 |              44,949 |
| AaveV3MockPriceFeedUpdate                      |            3,269 |             3,498 |             21,307 |              45,654 |
| AaveV3MockRatesUpdate                          |            3,262 |             3,453 |             21,314 |              45,699 |
| AaveV3OracleProcedure                          |               21 |                47 |             24,555 |              49,105 |
| AaveV3ParaswapBatch                            |              229 |            32,635 |             24,347 |              16,517 |
| AaveV3ParaswapProcedure                        |               21 |                47 |             24,555 |              49,105 |
| AaveV3PeripheryBatch                           |              321 |            40,126 |             24,255 |               9,026 |
| AaveV3PoolBatch                                |              137 |            42,706 |             24,439 |               6,446 |
| AaveV3PoolConfigProcedure                      |               21 |                47 |             24,555 |              49,105 |
| AaveV3PoolProcedure                            |               21 |                47 |             24,555 |              49,105 |
| AaveV3SetupBatch                               |           13,116 |            26,484 |             11,460 |              22,668 |
| AaveV3SetupProcedure                           |               21 |                47 |             24,555 |              49,105 |
| AaveV3TestListing                              |            4,977 |            12,432 |             19,599 |              36,720 |
| AaveV3TokensBatch                              |              137 |            20,321 |             24,439 |              28,831 |
| AaveV3TokensProcedure                          |               21 |                47 |             24,555 |              49,105 |
| AaveV3TreasuryProcedure                        |               21 |                47 |             24,555 |              49,105 |
| Address                                        |               44 |                94 |             24,532 |              49,058 |
| AdminUpgradeabilityProxy                       |            1,544 |             2,502 |             23,032 |              46,650 |
| AugustusRegistryMock                           |              162 |               190 |             24,414 |              48,962 |
| BaseAdminUpgradeabilityProxy                   |            1,536 |             1,565 |             23,040 |              47,587 |
| BaseImmutableAdminUpgradeabilityProxy          |            1,302 |             1,469 |             23,274 |              47,683 |
| BaseUpgradeabilityProxy                        |              108 |               135 |             24,468 |              49,017 |
| BorrowEngine                                   |            2,526 |             2,579 |             22,050 |              46,573 |
| BorrowLogic                                    |           12,405 |            12,458 |             12,171 |              36,694 |
| BridgeLogic                                    |            6,711 |             6,764 |             17,865 |              42,388 |
| CalldataLogic                                  |               44 |                94 |             24,532 |              49,058 |
| CapsEngine                                     |            1,179 |             1,232 |             23,397 |              47,920 |
| CollateralEngine                               |            2,723 |             2,776 |             21,853 |              46,376 |
| Collector                                      |            6,815 |             6,852 |             17,761 |              42,300 |
| ConfiguratorInputTypes                         |               44 |                94 |             24,532 |              49,058 |
| ConfiguratorLogic                              |            6,539 |             6,592 |             18,037 |              42,560 |
| Create2Utils                                   |              121 |               172 |             24,455 |              48,980 |
| DataTypes                                      |               44 |                94 |             24,532 |              49,058 |
| DefaultMarketInput                             |               21 |                47 |             24,555 |              49,105 |
| DefaultReserveInterestRateStrategyV2           |            3,997 |             4,291 |             20,579 |              44,861 |
| DeployUtils                                    |              913 |               942 |             23,663 |              48,210 |
| ECDSA                                          |               44 |                94 |             24,532 |              49,058 |
| EIP712SigUtils                                 |            1,563 |             1,616 |             23,013 |              47,536 |
| EModeConfiguration                             |               44 |                94 |             24,532 |              49,058 |
| EModeEngine                                    |            4,485 |             4,538 |             20,091 |              44,614 |
| EModeLogic                                     |            3,756 |             3,809 |             20,820 |              45,343 |
| ERC1967Proxy                                   |              129 |             1,179 |             24,447 |              47,973 |
| ERC20                                          |            2,085 |             2,833 |             22,491 |              46,319 |
| EmissionManager                                |            3,455 |             3,916 |             21,121 |              45,236 |
| EngineFlags                                    |               44 |                94 |             24,532 |              49,058 |
| Errors                                         |            4,464 |             4,517 |             20,112 |              44,635 |
| Faucet                                         |            2,064 |             2,596 |             22,512 |              46,556 |
| FlashLoanLogic                                 |            9,520 |             9,573 |             15,056 |              39,579 |
| FlashloanAttacker                              |            2,123 |             2,547 |             22,453 |              46,605 |
| GPv2SafeERC20                                  |               44 |                94 |             24,532 |              49,058 |
| GenericLogic                                   |               44 |                94 |             24,532 |              49,058 |
| Initializable                                  |               21 |                47 |             24,555 |              49,105 |
| InitializableAdminUpgradeabilityProxy          |            2,388 |             2,417 |             22,188 |              46,735 |
| InitializableImmutableAdminUpgradeabilityProxy |            1,853 |             2,020 |             22,723 |              47,132 |
| InitializableUpgradeabilityProxy               |              871 |               900 |             23,705 |              48,252 |
| IsolationModeLogic                             |               44 |                94 |             24,532 |              49,058 |
| L2Encoder                                      |            3,731 |             3,926 |             20,845 |              45,226 |
| L2PoolInstance                                 |           23,266 |            23,515 |              1,310 |              25,637 |
| LiquidationLogic                               |           11,787 |            11,840 |             12,789 |              37,312 |
| ListingEngine                                  |            7,156 |             7,209 |             17,420 |              41,943 |
| MarketReportUtils                              |               44 |                94 |             24,532 |              49,058 |
| Math                                           |               44 |                94 |             24,532 |              49,058 |
| MathUtils                                      |               44 |                94 |             24,532 |              49,058 |
| MathUtilsWrapper                               |              917 |               946 |             23,659 |              48,206 |
| MessageHashUtils                               |               44 |                94 |             24,532 |              49,058 |
| MetadataReporter                               |           12,514 |            12,543 |             12,062 |              36,609 |
| MintableDelegationERC20                        |            2,533 |             3,313 |             22,043 |              45,839 |
| MintableERC20                                  |            3,351 |             4,295 |             21,225 |              44,857 |
| Mock                                           |              182 |               210 |             24,394 |              48,942 |
| MockAToken                                     |           10,165 |            11,062 |             14,411 |              38,090 |
| MockATokenRepayment                            |           10,246 |            11,143 |             14,330 |              38,009 |
| MockAggregator                                 |              134 |               278 |             24,442 |              48,874 |
| MockBadTransferStrategy                        |              998 |             1,187 |             23,578 |              47,965 |
| MockERC20AaveLMUpgradeable                     |            8,401 |             8,626 |             16,175 |              40,526 |
| MockERC4626StataTokenUpgradeable               |            9,890 |            10,246 |             14,686 |              38,906 |
| MockFlashLoanATokenReceiver                    |            2,438 |             2,816 |             22,138 |              46,336 |
| MockFlashLoanReceiver                          |            2,253 |             2,538 |             22,323 |              46,614 |
| MockFlashLoanSimpleReceiver                    |            1,476 |             1,761 |             23,100 |              47,391 |
| MockIncentivesController                       |              132 |               159 |             24,444 |              48,993 |
| MockInitializableFromConstructorImple          |              349 |               639 |             24,227 |              48,513 |
| MockInitializableImple                         |            1,544 |             1,576 |             23,032 |              47,576 |
| MockInitializableImpleV2                       |            1,546 |             1,578 |             23,030 |              47,574 |
| MockInitializableV1                            |              307 |               339 |             24,269 |              48,813 |
| MockInitializableV2                            |              309 |               341 |             24,267 |              48,811 |
| MockL2Pool                                     |           23,293 |            23,542 |              1,283 |              25,610 |
| MockParaSwapAugustus                           |            2,133 |             3,253 |             22,443 |              45,899 |
| MockParaSwapAugustusRegistry                   |              179 |               308 |             24,397 |              48,844 |
| MockParaSwapFeeClaimer                         |            1,814 |             2,917 |             22,762 |              46,235 |
| MockParaSwapTokenTransferProxy                 |              905 |               998 |             23,671 |              48,154 |
| MockPeripheryContractV1                        |              309 |               338 |             24,267 |              48,814 |
| MockPeripheryContractV2                        |              290 |               319 |             24,286 |              48,833 |
| MockPoolInherited                              |           22,208 |            22,484 |              2,368 |              26,668 |
| MockReentrantInitializableImple                |              413 |               445 |             24,163 |              48,707 |
| MockReserveConfiguration                       |            2,651 |             2,680 |             21,925 |              46,472 |
| MockReserveInterestRateStrategy                |            3,314 |             3,612 |             21,262 |              45,540 |
| MockScaledTestnetERC20                         |            4,101 |             5,524 |             20,475 |              43,628 |
| MockScaledToken                                |            3,998 |             4,758 |             20,578 |              44,394 |
| MockVariableDebtToken                          |            7,281 |             8,162 |             17,295 |              40,990 |
| Ownable                                        |              629 |               722 |             23,947 |              48,430 |
| ParaSwapLiquiditySwapAdapter                   |            8,733 |             9,850 |             15,843 |              39,302 |
| ParaSwapRepayAdapter                           |            9,320 |            10,527 |             15,256 |              38,625 |
| ParaSwapWithdrawSwapAdapter                    |            7,397 |             8,451 |             17,179 |              40,701 |
| PercentageMath                                 |               44 |                94 |             24,532 |              49,058 |
| PercentageMathWrapper                          |              297 |               326 |             24,279 |              48,826 |
| PoolAddressesProvider                          |            6,697 |             8,049 |             17,879 |              41,103 |
| PoolAddressesProviderRegistry                  |            2,148 |             2,609 |             22,428 |              46,543 |
| PoolConfiguratorInstance                       |           19,780 |            19,812 |              4,796 |              29,340 |
| PoolInstance                                   |           22,019 |            22,268 |              2,557 |              26,884 |
| PoolLogic                                      |            6,823 |             6,876 |             17,753 |              42,276 |
| PoolStorage                                    |               21 |                47 |             24,555 |              49,105 |
| PriceFeedEngine                                |            1,577 |             1,630 |             22,999 |              47,522 |
| PriceOracle                                    |              469 |               498 |             24,107 |              48,654 |
| PriceOracleSentinel                            |            1,668 |             1,884 |             22,908 |              47,268 |
| ProxyAdmin                                     |            1,592 |             1,714 |             22,984 |              47,438 |
| ProxyHelpers                                   |               44 |                94 |             24,532 |              49,058 |
| PullRewardsTransferStrategy                    |            1,255 |             1,481 |             23,321 |              47,671 |
| RateEngine                                     |            2,348 |             2,401 |             22,228 |              46,751 |
| ReserveConfiguration                           |              128 |               179 |             24,448 |              48,973 |
| ReserveLogic                                   |               44 |                94 |             24,532 |              49,058 |
| RevenueSplitter                                |            1,942 |             2,259 |             22,634 |              46,893 |
| RewardsController                              |           14,226 |            14,420 |             10,350 |              34,732 |
| RewardsDataTypes                               |               44 |                94 |             24,532 |              49,058 |
| SafeCast                                       |               44 |                94 |             24,532 |              49,058 |
| SafeERC20                                      |               44 |                94 |             24,532 |              49,058 |
| SafeMath                                       |               44 |                94 |             24,532 |              49,058 |
| SequencerOracle                                |              865 |             1,326 |             23,711 |              47,826 |
| SigUtils                                       |              492 |               545 |             24,084 |              48,607 |
| SignedMath                                     |               44 |                94 |             24,532 |              49,058 |
| SlotParser                                     |              330 |               383 |             24,246 |              48,769 |
| StakeMock                                      |              355 |               384 |             24,221 |              48,768 |
| StakedTokenTransferStrategy                    |            2,060 |             2,770 |             22,516 |              46,382 |
| StataTokenFactory                              |            3,562 |             4,053 |             21,014 |              45,099 |
| StataTokenV2                                   |           19,991 |            20,693 |              4,585 |              28,459 |
| StorageSlot                                    |               44 |                94 |             24,532 |              49,058 |
| Strings                                        |               44 |                94 |             24,532 |              49,058 |
| SupplyLogic                                    |           11,679 |            11,732 |             12,897 |              37,420 |
| TestnetERC20                                   |            3,981 |             5,396 |             20,595 |              43,756 |
| TransparentProxyFactory                        |            7,074 |             7,103 |             17,502 |              42,049 |
| TransparentUpgradeableProxy                    |            2,000 |             3,429 |             22,576 |              45,723 |
| UiIncentiveDataProviderV3                      |            9,125 |             9,154 |             15,451 |              39,998 |
| UiPoolDataProviderV3                           |            9,917 |            10,128 |             14,659 |              39,024 |
| UpgradeabilityProxy                            |              108 |               855 |             24,468 |              48,297 |
| UserConfiguration                              |               44 |                94 |             24,532 |              49,058 |
| ValidationLogic                                |              189 |               241 |             24,387 |              48,911 |
| VariableDebtTokenHarness                       |            7,297 |             8,178 |             17,279 |              40,974 |
| VariableDebtTokenInstance                      |            7,279 |             8,158 |             17,297 |              40,994 |
| WETH9                                          |            1,885 |             2,354 |             22,691 |              46,798 |
| WETH9Mock                                      |            2,640 |             3,869 |             21,936 |              45,283 |
| WETH9Mocked                                    |            2,191 |             2,660 |             22,385 |              46,492 |
| WadRayMath                                     |               44 |                94 |             24,532 |              49,058 |
| WadRayMathWrapper                              |              816 |               845 |             23,760 |              48,307 |
| WalletBalanceProvider                          |            2,619 |             2,648 |             21,957 |              46,504 |
| WalletMock                                     |               21 |                47 |             24,555 |              49,105 |
| WrappedTokenGatewayV3                          |            5,722 |             6,600 |             18,854 |              42,552 |
Gas report

TransparentUpgradeableProxy

  • gas: 0
  • size: 0
Method min mean median max calls
depositATokens(uint256,address) ↓-0.013%180705 ↓-0.0023%214146 222507 222507 5
emergencyTokenTransfer(address,address,uint256) 35308 ↓-0.0083%109049 ↓-0.016%113234 174420 4

WETH9

  • gas: 535043
  • size: 2354
Method min mean median max calls
approve(address,uint256) ↓-0.12%28992 46440 46464 46464 1609

AaveProtocolDataProvider

  • gas: 0
  • size: 0
Method min mean median max calls
getIsVirtualAccActive(address) 3245 ↑0.092%3266 3267 3267 ↑380%87
getPaused(address) 3333 ↓-6.3%3455 3355 5355 ↑230%99
getReserveConfigurationData(address) 3659 ↓-7%4052 3681 17181 ↑82%153
getReserveTokensAddresses(address) 9510 ↑2.9%13144 9554 43054 ↑15%522
getUserReserveData(address,address) 19863 ↑0.26%29659 27941 46863 26

ATokenInstance

  • gas: 2316688
  • size: 11090
Method min mean median max calls
RESERVE_TREASURY_ADDRESS() 419 ↓-47%796 ↓-83%419 2419 ↑190%106
UNDERLYING_ASSET_ADDRESS() 441 ↓-30%1523 2441 2441 ↑62%181
decimals() 356 ↓-51%759 ↓-85%356 2356 ↑200%104
getIncentivesController() 474 ↓-25%519 474 2474 ↑380%87
initialize(address,address,address,address,uint8,string,string,bytes) ↓-11%166674 ↑3.7%194196 187036 ↑8.2%299168 ↑3.3%2162
name() ↓-20%1004 ↓-12%2320 3259 3259 ↑38%253
symbol() ↓-19%1069 ↓-13%2324 ↓-51%1619 3324 ↑42%235
transfer(address,uint256) 576 ↓-1.3%98075 ↓-0.27%110564 140167 22
transferFrom(address,address,uint256) 2998 ↓-0.11%105515 111787 142842 40

L2PoolInstance

  • gas: 0
  • size: 0
Method min mean median max calls
borrow(address,uint256,uint256,uint16,address) ↑1.4%203159 ↑0.11%224510 222214 238218 11
repayWithPermit(bytes32,bytes32,bytes32) ↑12%207116 ↑12%207116 ↑12%207116 ↑12%207116 1

PoolConfiguratorInstance

  • gas: 4332868
  • size: 19812
Method min mean median max calls
initReserves((address,address,bool,address,address,address,address,string,string,string,string,bytes,bytes)[]) 17401 ↑3.5%4818202 4382378 ↓-0.0097%196928251 660
setPoolPause(bool,uint40) 17314 ↓-23%48234 ↓-23%48234 ↓-27%79155 2

PoolInstance

  • gas: 4814942
  • size: 22300
Method min mean median max calls
borrow(address,uint256,uint256,uint16,address) 46604 ↓-0.012%196183 222258 261378 110
finalizeTransfer(address,address,address,uint256,uint256,uint256) 20725 ↓-1.2%46722 48063 87949 59
flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16) 31365 ↑1.5%132317 93606 322330 12
getConfiguration(address) 745 767 745 2745 ↑1.1%18705
getLiquidationGracePeriod(address) 2656 2656 2656 2656 ↓-30%7
getReserveData(address) 5248 ↑0.66%7776 5248 29748 ↑1.5%4751
getReservesList() 3170 ↑8.1%8214 11170 ↑380%68968 89
getUserConfiguration(address) 703 ↑6.4%925 703 2703 36
initReserve(address,address,address,address) 6564 ↑0.3%165313 161757 207007 ↑3.5%2020
repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32) 149611 ↓-4.7%163040 154052 ↓-12%185458 3
setConfiguration(address,(uint256)) 2170 ↑1.5%4464 2170 24325 ↑0.34%20207
setLiquidationGracePeriod(address,uint40) 6386 ↑5.7%13270 ↑7.4%14534 17034 ↓-19%13
setUserEMode(uint8) 14165 ↑0.7%42842 41117 94723 26

VariableDebtTokenInstance

  • gas: 1695548
  • size: 8190
Method min mean median max calls
UNDERLYING_ASSET_ADDRESS() 397 397 397 397 ↑490%83
decimals() 334 334 334 334 ↑490%83
getIncentivesController() 430 430 430 430 ↑490%83
initialize(address,address,address,uint8,string,string,bytes) ↓-12%143853 ↓-2.3%166101 164290 ↑0.058%276648 ↑3.3%2162
name() ↓-20%1004 ↓-14%1884 1554 3259 ↑66%173
symbol() ↓-20%1025 ↓-14%1847 1280 3280 ↑71%166

DefaultReserveInterestRateStrategyV2

  • gas: 920973
  • size: 4323
Method min mean median max calls
setInterestRateParams(address,(uint16,uint32,uint32,uint32)) ↓-0.042%28317 ↓-0.054%29710 ↓-0.014%29064 ↓-0.098%36758 11
setInterestRateParams(address,bytes) ↓-0.084%28638 ↓-0.0089%33742 ↓-0.032%37109 37133 30

InitializableImmutableAdminUpgradeabilityProxy

  • gas: 454308
  • size: 2052
Method min mean median max calls
RESERVE_TREASURY_ADDRESS() 1025 ↓-34%1440 ↓-66%1025 7525 ↑180%107
UNDERLYING_ASSET_ADDRESS() 1003 ↓-32%1775 ↓-66%1047 3047 ↑110%264
approve(address,uint256) 51270 ↑0.0039%51348 51330 51642 33
borrow(address,uint256,uint256,uint16,address) 73940 ↑0.00089%224908 249573 288773 120
decimals() 940 ↓-37%1200 962 7462 ↑280%187
deposit(address,uint256,address,uint16) ↓-0.014%173106 ↑0.0049%224234 ↑0.016%226082 235646 27
flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16) 60279 ↑2.8%158580 ↑16%142026 351243 12
getAssetIndex(address,address) 3099 ↓-3.6%9320 9589 16507 ↑11%49
getConfiguration(address) 1332 1407 1354 7854 ↑1%20167
getIncentivesController() 1036 ↓-21%1134 1080 7580 ↑410%172
getLiquidationGracePeriod(address) 29175 ↓-0.0034%29194 29197 29197 ↓-27%8
getReserveData(address) 5891 ↑0.54%8624 5935 34935 ↑1.4%5094
getReservesList() 3794 ↑6.7%9526 11794 ↑330%70105 92
getUserConfiguration(address) 1312 ↑3.8%1534 1312 3312 36
getUserRewards(address[],address,address) 7423 ↓-0.38%8633 7423 17498 12
initReserves((address,address,bool,address,address,address,address,string,string,string,string,bytes,bytes)[]) 45683 ↑46%36931607 ↓-5.7%1495521 ↓-0.45%199037537 9
liquidationCall(address,address,address,uint256,bool) 80670 ↑0.00038%265129 350729 410462 31
name() ↓-14%1613 ↓-12%2878 ↓-44%2172 8371 ↑48%428
repayWithATokens(address,uint256,uint256) ↓-0.013%182098 ↓-0.0021%187315 187416 193095 6
repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32) 173367 ↓-4.2%183363 ↓-0.0066%182609 ↓-11%194114 3
repayWithPermit(bytes32,bytes32,bytes32) ↑11%214670 ↑11%214670 ↑11%214670 ↑11%214670 1
rescueTokens(address,address,uint256) 39090 ↓-0.012%58087 69188 ↓-0.034%70457 5
setLiquidationGracePeriod(address,uint40) 32833 ↓-0.021%37969 ↓-0.048%37342 ↓-0.027%43739 6
setPoolPause(bool) ↓-0.028%43516 ↓-0.0023%87079 116095 116161 5
setPoolPause(bool,uint40) ↓-0.027%43795 ↓-16%74689 ↓-16%74689 ↓-21%105584 2
setReserveInterestRateData(address,bytes) ↓-0.46%44328 ↓-0.11%89135 ↓-0.11%89135 133943 2
setReserveInterestRateStrategyAddress(address,address) 32829 ↑0.074%36578 35331 42713 8
setReservePause(address,bool) ↑0.027%44044 ↑0.0065%61263 69873 69873 3
setReservePause(address,bool,uint40) ↑0.087%41300 66571 67659 76187 24
setUserEMode(uint8) ↑0.03%40475 ↑0.13%68819 67427 121033 33
supplyWithPermit(address,uint256,address,uint16,uint256,uint8,bytes32,bytes32) ↑0.0084%142282 ↑0.022%216840 ↑0.005%241875 ↑0.045%266365 3
supplyWithPermit(bytes32,bytes32,bytes32) ↑0.064%262646 ↑0.064%262646 ↑0.064%262646 ↑0.064%262646 1
symbol() ↓-14%1634 ↓-17%3394 ↓-44%2193 8436 ↑52%403
transfer(address,uint256) 27651 ↓-1.2%123414 ↓-2.4%137272 166887 18

TestnetERC20

  • gas: 1032173
  • size: 5652
Method min mean median max calls
decimals() 311 ↓-9.3%2020 2311 2311 ↑17%1880
permit(address,address,uint256,uint256,uint8,bytes32,bytes32) 76481 ↑0.0078%76487 ↑0.0078%76487 ↑0.016%76493 2

PercentageMathWrapper

  • gas: 117447
  • size: 326
Method min mean median max calls
HALF_PERCENTAGE_FACTOR() 146 146 146 146 ↓-33%2
PERCENTAGE_FACTOR() 223 223 223 223 ↓-25%3
percentMul(uint256,uint256) ↓-23%333 ↓-5.8%406 431 431 4

PoolAddressesProvider

  • gas: 1571699
  • size: 8177
Method min mean median max calls
getAddress(bytes32) 543 ↓-0.34%868 543 2543 ↑1.2%5784
getPool() 466 ↓-3.1%1083 466 2466 ↑5.5%5285
getPoolConfigurator() 509 570 509 2509 ↑0.6%34447

EmissionManager

  • gas: 833790
  • size: 3948
Method min mean median max calls
configureAssets((uint88,uint256,uint32,address,address,address,address)[]) 284134 ↓-0.0007%287765 289908 289908 32

RewardsController

  • gas: 3131951
  • size: 14452
Method min mean median max calls
claimRewards(address[],uint256,address,address) 952 ↓-0.78%50877 55816 86197 8
getAssetIndex(address,address) 2484 ↓-3.8%7235 8974 11392 ↑11%49
getUserRewards(address[],address,address) 6793 ↓-0.43%7628 6793 12368 12

AaveV3GettersBatchOne

  • gas: ↓-0.00024%5027098
  • size: 32657

AaveV3HelpersBatchOne

  • gas: ↓-0.00017%7236222
  • size: 34331

AaveV3MiscBatch

  • gas: ↓-0.0011%1046333
  • size: 6958

AaveV3PeripheryBatch

  • gas: ↓-5.9%7501711
  • size: 40894

AaveV3PoolBatch

  • gas: ↓-0.00013%9328324
  • size: 42738

AaveV3SetupBatch

  • gas: ↓-0.016%5190443
  • size: 28372

MockERC20AaveLMUpgradeable

  • gas: 1871094
  • size: 8658
Method min mean median max calls
claimRewards(address,address[]) ↓-66%58636 ↓-66%58636 ↓-66%58636 ↓-66%58636 1
claimRewardsOnBehalf(address,address,address[]) 34383 ↑43%128642 ↑180%173902 ↑2.2%177643 3
collectAndUpdateRewards(address) 48341 ↓-3%51223 ↓-3%51223 ↓-5.6%54105 2
getClaimableRewards(address,address) 6195 ↓-3.2%7712 6580 26280 ↑25%20
getTotalClaimableRewards(address) ↓-3.5%10968 ↓-1.1%17811 ↓-1.1%17811 24654 2
getUnclaimedRewards(address,address) 818 818 818 818 ↑200%6
mint(address,uint256) 53655 ↓-0.95%90311 97646 97646 ↑9.1%12
transfer(address,uint256) ↑20%72854 ↓-6.3%76678 ↓-6.3%76678 ↓-22%80503 2

MockScaledTestnetERC20

  • gas: 1058431
  • size: 5780
Method min mean median max calls
mint(address,uint256) ↓-0.23%51356 ↓-1.9%65749 68648 68648 ↑9.1%12
scaledTotalSupply() 394 ↓-4.8%1760 2394 2394 ↑9.1%60
transfer(address,uint256) 29803 ↓-2.8%44110 46975 46975 ↑9.1%12

MockERC4626StataTokenUpgradeable

  • gas: 2201754
  • size: 10278
Method min mean median max calls
approve(address,uint256) 46375 ↓-0.078%46399 ↓-0.078%46399 ↓-0.15%46423 2
depositATokens(uint256,address) 59736 ↓-0.0045%198153 ↑0.0076%210734 210818 12
depositWithPermit(uint256,address,uint256,(uint8,bytes32,bytes32),bool) ↑0.16%76019 ↓-0.4%243450 ↓-7.5%247315 ↑4.4%353520 5
mint(uint256,address) ↑0.45%74703 ↑0.17%193710 ↑0.17%193710 ↑0.1%312717 2
redeem(uint256,address,address) ↓-0.19%174643 ↓-0.19%174643 ↓-0.19%174643 ↓-0.19%174643 1
redeemATokens(uint256,address,address) 40863 ↑0.099%121359 ↑0.19%161215 ↑0.03%162001 3
withdraw(uint256,address,address) ↑0.66%51491 ↑0.15%114439 ↑0.15%114439 177387 2

VariableDebtTokenHarness

  • gas: 1699482
  • size: 8210
Method min mean median max calls
approveDelegation(address,uint256) ↓-0.025%48605 ↓-0.025%48605 ↓-0.025%48605 ↓-0.025%48605 1
burn(address,uint256,uint256) ↑0.023%52015 ↑0.023%52021 ↑0.023%52021 ↑0.023%52027 2
initialize(address,address,address,uint8,string,string,bytes) ↑0.94%30813 ↓-9.5%155774 ↓-11%179572 ↓-9.4%224600 8
mint(address,address,uint256,uint256) ↑0.028%86755 ↓-0.0034%87995 ↓-0.014%86755 ↓-0.013%91718 4
name() ↑25%1259 ↓-2.8%1318 1259 ↓-13%1554 15
symbol() 1280 ↓-0.29%1374 1280 ↑15%1810 15
🔮 Coverage report
File Line Coverage Function Coverage Branch Coverage
src/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol ${\color{red}63.64\%}$
$21 / 33$
23, 24, 78, 79, 80, 81, 82, 92, 93, 96, 110, 111
${\color{green}100\%}$
$4 / 4$
${\color{red}42.86\%}$
$3 / 7$
src/contracts/dependencies/openzeppelin/ReentrancyGuard.sol ${\color{red}80\%}$
$4 / 5$
68
${\color{red}66.67\%}$
$2 / 3$
ReentrancyGuard._initGuard
${\color{red}50\%}$
$1 / 2$
src/contracts/dependencies/openzeppelin/contracts/AccessControl.sol ${\color{orange}95\%}$
$19 / 20$
77
${\color{orange}83.33\%}$
$10 / 12$
AccessControl.supportsInterface
AccessControl.getRoleAdmin
${\color{red}80\%}$
$4 / 5$
src/contracts/dependencies/openzeppelin/contracts/ERC165.sol ${\color{red}0\%}$
$0 / 1$
26
${\color{red}0\%}$
$0 / 1$
ERC165.supportsInterface
${\color{green}100\%}$
$0 / 0$
src/contracts/dependencies/openzeppelin/contracts/ERC20.sol ${\color{red}78.05\%}$
$32 / 41$
183, 184, 205, 213, 272, 274, 276, 277, 278
${\color{orange}83.33\%}$
$15 / 18$
ERC20.increaseAllowance
ERC20.decreaseAllowance
ERC20._burn
${\color{red}41.67\%}$
$5 / 12$
src/contracts/dependencies/openzeppelin/contracts/Ownable.sol ${\color{red}80\%}$
$8 / 10$
56, 57
${\color{red}80\%}$
$4 / 5$
Ownable.renounceOwnership
${\color{red}75\%}$
$3 / 4$
src/contracts/dependencies/openzeppelin/contracts/SafeERC20.sol ${\color{red}46.15\%}$
$6 / 13$
26, 51, 52, 60, 61, 62, 63
${\color{red}50\%}$
$3 / 6$
SafeERC20.safeTransferFrom
SafeERC20.safeIncreaseAllowance
SafeERC20.safeDecreaseAllowance
${\color{red}42.86\%}$
$3 / 7$
src/contracts/dependencies/openzeppelin/contracts/SafeMath.sol ${\color{green}100\%}$
$5 / 5$
${\color{green}100\%}$
$5 / 5$
${\color{red}62.5\%}$
$5 / 8$
src/contracts/dependencies/openzeppelin/upgradeability/AdminUpgradeabilityProxy.sol ${\color{red}0\%}$
$0 / 3$
26, 27, 34
${\color{red}0\%}$
$0 / 2$
AdminUpgradeabilityProxy.
AdminUpgradeabilityProxy._willFallback
${\color{red}0\%}$
$0 / 2$
src/contracts/dependencies/openzeppelin/upgradeability/BaseAdminUpgradeabilityProxy.sol ${\color{red}0\%}$
$0 / 17$
36, 39, 47, 54, 63, 64, 65, 74, 90, 91, 92, 99, 102, 111, 114, 122, 123
${\color{red}0\%}$
$0 / 9$
BaseAdminUpgradeabilityProxy.ifAdmin
BaseAdminUpgradeabilityProxy.admin
BaseAdminUpgradeabilityProxy.implementation
BaseAdminUpgradeabilityProxy.changeAdmin
BaseAdminUpgradeabilityProxy.upgradeTo
BaseAdminUpgradeabilityProxy.upgradeToAndCall
BaseAdminUpgradeabilityProxy._admin
BaseAdminUpgradeabilityProxy._setAdmin
BaseAdminUpgradeabilityProxy._willFallback
${\color{red}0\%}$
$0 / 8$
src/contracts/dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol ${\color{green}100\%}$
$7 / 7$
${\color{green}100\%}$
$3 / 3$
${\color{red}50\%}$
$1 / 2$
src/contracts/dependencies/openzeppe...[Comment body truncated]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant