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

feat: cleanup #73

Merged
merged 9 commits into from
Nov 18, 2024
Merged

feat: cleanup #73

merged 9 commits into from
Nov 18, 2024

Conversation

sakulstra
Copy link
Contributor

@sakulstra sakulstra commented Nov 14, 2024

  • remove paraswap fee claimer as it's no longer used (avara interface was the only one using and it no longer is necessary to have a middle contract with psp v6 aave/interface@68fec1e#diff-5866e66fcd5a4ac26049b83ba47b15d94a9ff6f1a7c117f28d366607a857d0a6R76)
  • move static-a-token to stata-token for consistent naming
  • add pool and pool address providers to the stata interface
  • change the comment action to use the bgd one, so it's easier to iterate without having to update origin (e.g. the correct one has problems with comment size - which is now fixed on bgd side)
  • disable certora ci on fork prs as it's only failing anyways

@sakulstra
Copy link
Contributor Author

forge 0.0.2 (48c6b1a 2024-11-15T00:25:27.138557582Z)
🔧 Build logs
Compiling 396 files with Solc 0.8.20
Solc 0.8.20 finished in 101.92s
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/stata-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 |
| 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                            |              189 |            30,420 |             24,387 |              18,732 |
| AaveV3ParaswapProcedure                        |               21 |                47 |             24,555 |              49,105 |
| AaveV3PeripheryBatch                           |              321 |            40,108 |             24,255 |               9,044 |
| AaveV3PoolBatch                                |              137 |            42,706 |             24,439 |               6,446 |
| AaveV3PoolConfigProcedure                      |               21 |                47 |             24,555 |              49,105 |
| AaveV3PoolProcedure                            |               21 |                47 |             24,555 |              49,105 |
| AaveV3SetupBatch                               |           11,678 |            25,007 |             12,898 |              24,145 |
| AaveV3SetupProcedure                           |               21 |                47 |             24,555 |              49,105 |
| AaveV3TestListing                              |            4,977 |            12,409 |             19,599 |              36,743 |
| 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,286 |            12,315 |             12,290 |              36,837 |
| 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 |
| 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

WETH9

  • gas: 535043 / 49152
Method min mean median max calls
approve(address,uint256) 29004 46440 46464 46464 ↓-0.93%1594
balanceOf(address) 538 939 538 2538 ↓-0.93%8025
decimals() 2312 2312 2312 2312 ↓-0.73%683

StataTokenFactory

  • gas: 0 / 49152
Method min mean median max calls
STATA_TOKEN_IMPL() 248 248 248 248 1
createStataTokens(address[]) 2483966 2483966 2483966 2483966 23
getStataToken(address) 569 569 569 569 23
initialize() 24103 24103 24103 24103 651

StataTokenV2

  • gas: 0 / 49152
Method min mean median max calls
DOMAIN_SEPARATOR() 6525 6525 6525 6525 3
INCENTIVES_CONTROLLER() 350 350 350 350 1
aToken() 2535 2535 2535 2535 1
allowance(address,address) 806 806 806 806 1
asset() 2449 2449 2449 2449 1
balanceOf(address) 653 653 653 653 1
canPause(address) 11610 11610 11610 11610 2
claimRewardsToSelf(address[]) 3167 3167 3167 3167 1
decimals() 618 618 618 618 1
deposit(uint256,address) 267243 267243 267243 267243 1
depositATokens(uint256,address) 161441 194834 203183 203183 5
emergencyTokenTransfer(address,address,uint256) 6009 82168 86369 149925 4
getReferenceAsset() 2491 2491 2491 2491 1
initialize(address,string,string) 25518 231417 232108 239108 70
maxRedeem(address) 7472 7472 7472 7472 2
maxWithdraw(address) 10138 10138 10138 10138 1
mint(uint256,address) 267337 267337 267337 267337 1
name() 3377 3377 3377 3377 1
nonces(address) 2776 2776 2776 2776 3
paused() 469 1469 1469 2469 2
permit(address,address,uint256,uint256,uint8,bytes32,bytes32) 776 30653 33460 57725 3
previewDeposit(uint256) 15959 15959 15959 15959 1
redeem(uint256,address,address) 31682 31682 31682 31682 1
setPaused(bool) 11592 32070 34996 34996 8
symbol() 3389 3389 3389 3389 1
transfer(address,uint256) 2763 2763 2763 2763 1
withdraw(uint256,address,address) 34349 34349 34349 34349 1

AaveV3ConfigEngine

  • gas: 0 / 49152
Method min mean median max calls
listAssetsCustom((string,string),((address,string,address,(uint256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(address,address))[]) 1803763 ↓-0.00079%5189368 5194695 5194695 ↓-0.77%645

AaveProtocolDataProvider

  • gas: 0 / 49152
Method min mean median max calls
getATokenTotalSupply(address) 12822 ↑0.0073%13647 12866 25922 ↓-0.76%1960
getIsVirtualAccActive(address) 3245 ↑0.092%3256 ↑0.34%3256 3267 ↑20%6
getPaused(address) 3333 ↓-0.84%3906 3355 5355 ↑5.9%18
getReserveConfigurationData(address) 3659 ↓-0.25%4471 3681 17181 ↑1.4%72
getReserveTokensAddresses(address) 9510 ↑0.047%12701 9554 43054 ↑0.23%441

ATokenInstance

  • gas: 2316688 / 49152
Method min mean median max calls
RESERVE_TREASURY_ADDRESS() 419 ↓-3.2%2019 2419 2419 ↑4.2%25
UNDERLYING_ASSET_ADDRESS() 441 ↓-0.79%2401 2441 2441 ↑1%100
balanceOf(address) 2749 ↑0.034%5861 4749 17749 240
decimals() 356 ↓-3.7%2182 2356 2356 ↑4.5%23
getIncentivesController() 474 ↓-11%1140 474 2474 ↑20%6
initialize(address,address,address,address,uint8,string,string,bytes) 187036 ↑2.9%192658 187036 ↓-7.6%276555 ↓-0.67%2066
name() 1259 ↓-0.26%2737 3259 3259 ↑0.58%172
scaledBalanceOf(address) 687 ↑0.2%1969 2687 2687 ↑0.66%304
symbol() 1324 ↓-0.32%2767 3324 3324 ↑0.65%154
totalSupply() 407 ↑0.11%2725 2407 10463 ↓-0.7%2141
transferFrom(address,address,uint256) 2998 ↑0.11%105873 113335 142842 40

PoolConfiguratorInstance

  • gas: 4332868 / 49152
Method min mean median max calls
configureReserveAsCollateral(address,uint256,uint256,uint256) 12220 ↑0.016%12558 12264 99552 ↓-0.76%1949
initReserves((address,address,bool,address,address,address,address,string,string,string,string,bytes,bytes)[]) 17401 ↑0.46%4645799 4382378 ↑5.7%208269643 ↓-0.76%655
initialize(address) 72573 90420 90473 90473 ↓-0.73%679
setBorrowCap(address,uint256) 11170 ↑0.0088%11429 11214 44169 ↓-0.76%1946
setBorrowableInIsolation(address,bool) 10736 ↑0.018%11045 10780 43726 ↓-0.76%1947
setDebtCeiling(address,uint256) 17256 ↑0.0067%44936 41675 98789 ↓-0.76%1953
setLiquidationProtocolFee(address,uint256) 11241 ↑0.0088%11426 11285 44240 ↓-0.77%1942
setReserveBorrowing(address,bool) 10911 11069 10955 41764 ↓-0.77%1939
setReserveFactor(address,uint256) 17301 43390 36685 124960 ↓-0.77%1938
setReserveFlashLoaning(address,bool) 10910 ↑0.009%11051 10954 43918 ↓-0.77%1938
setReservePause(address,bool,uint40) 14424 ↑2.4%39754 ↑2.8%40844 49360 24
setSiloedBorrowing(address,bool) 11281 ↑0.0087%11492 11325 94206 ↓-0.77%1937
setSupplyCap(address,uint256) 11127 ↑0.016%12163 11171 44126 ↓-0.76%1953
updateFlashloanPremiumToProtocol(uint128) 10115 10225 10181 36981 ↓-0.73%680
updateFlashloanPremiumTotal(uint128) 14052 31994 32046 36946 ↓-0.73%680

PoolInstance

  • gas: 4814942 / 49152
Method min mean median max calls
ADDRESSES_PROVIDER() 284 284 284 284 ↓-0.76%1965
FLASHLOAN_PREMIUM_TOTAL() 410 1413 2410 2410 ↓-0.8%1236
FLASHLOAN_PREMIUM_TO_PROTOCOL() 459 460 459 2459 ↓-0.8%1233
borrow(address,uint256,uint256,uint16,address) 46604 ↑0.014%196158 222258 261378 110
finalizeTransfer(address,address,address,uint256,uint256,uint256) 20725 ↑0.17%47428 48063 87949 59
flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16) 31365 ↓-1.8%129839 93606 322330 12
getConfiguration(address) 745 767 745 2745 ↓-0.8%18312
getReserveData(address) 5248 ↑0.18%7729 5248 29748 ↓-0.84%4630
getReserveNormalizedVariableDebt(address) 889 ↓-0.45%1332 889 6475 ↑1.5%138
getReservesList() 3170 ↑0.12%7493 11170 11170 89
initReserve(address,address,address,address) 6564 ↑0.0055%164821 161757 207007 ↓-0.72%1924
initialize(address) 45378 ↑0.0022%45473 45378 66895 ↓-0.8%620
liquidationCall(address,address,address,uint256,bool) 53082 ↓-2.8%238214 323142 382539 ↑6.9%31
repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32) ↓-2.2%126966 ↓-3.5%155223 ↑4.5%149611 ↓-9.8%189093 3
resetIsolationModeTotalDebt(address) 4265 4278 4265 15265 ↓-0.83%1794
setConfiguration(address,(uint256)) 2170 ↑0.046%4386 2170 24325 ↓-0.81%19961
setLiquidationGracePeriod(address,uint40) 6386 ↑1%12550 13534 17034 ↑14%16
setUserEMode(uint8) 14165 ↓-0.88%42545 41117 94723 26
syncIndexesState(address) 7211 13934 7211 62577 ↓-0.81%1838
syncRatesState(address) 13459 15981 16005 22505 ↓-0.81%1838
updateFlashloanPremiums(uint128,uint128) 1720 11657 6520 21620 ↓-0.81%1231

VariableDebtTokenInstance

  • gas: 1695548 / 49152
Method min mean median max calls
UNDERLYING_ASSET_ADDRESS() 397 397 397 397 ↑100%2
balanceOf(address) 675 ↑0.044%4553 4753 10336 ↑1.4%149
decimals() 334 334 334 334 ↑100%2
getIncentivesController() 430 430 430 430 ↑100%2
initialize(address,address,address,uint8,string,string,bytes) ↓-12%144032 ↓-0.033%169816 164290 ↓-8.2%253960 ↓-0.67%2066
name() 1259 ↓-0.61%2283 3259 3259 ↑1.1%92
scaledBalanceOf(address) 687 ↑1.3%1599 687 2687 ↑1.8%114
scaledTotalSupply() 417 ↑0.063%1592 2417 2417 ↓-0.57%4878
symbol() ↓-20%1025 ↓-0.79%2265 ↓-47%1280 3280 ↑1.2%85

AaveOracle

  • gas: 0 / 49152
Method min mean median max calls
getAssetPrice(address) 0 ↑0.41%4941 7865 7865 ↑0.7%577

DefaultReserveInterestRateStrategyV2

  • gas: 920973 / 49152
Method min mean median max calls
calculateInterestRates((uint256,uint256,uint256,uint256,uint256,address,bool,uint256)) 0 ↑0.1%2903 2251 5973 ↓-0.53%2797
setInterestRateParams(address,(uint16,uint32,uint32,uint32)) 28329 29717 ↑0.014%29056 36794 11
setInterestRateParams(address,bytes) ↓-0.042%28662 ↑0.0089%33745 ↑0.016%37121 37133 30

InitializableImmutableAdminUpgradeabilityProxy

  • gas: 454308 / 49152
Method min mean median max calls
ADDRESSES_PROVIDER() 890 ↓-0.026%3797 5390 5457 ↓-0.7%2140
EMISSION_MANAGER() 932 932 932 932 ↓-0.73%678
FLASHLOAN_PREMIUM_TOTAL() 994 2025 2994 7516 ↓-0.73%1360
FLASHLOAN_PREMIUM_TO_PROTOCOL() 1043 1067 1065 7565 ↓-0.73%1357
RESERVE_TREASURY_ADDRESS() 1025 ↓-2.5%2736 3025 7525 ↑4%26
UNDERLYING_ASSET_ADDRESS() 1003 ↓-1.3%2967 3047 3047 ↑2%102
approve(address,uint256) ↑0.023%51282 ↑0.041%51375 51330 51642 33
balanceOf(address) 1284 ↓-0.099%7080 5358 22858 ↑0.52%389
borrow(address,uint256,uint256,uint16,address) 73940 ↑0.011%224884 249573 288773 120
decimals() 940 ↓-5.4%2820 2962 7462 ↑8.7%25
deposit(address,uint256,address,uint16) 173118 ↑0.004%224236 ↑0.016%226082 235646 27
flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16) 60279 ↓-3.2%153260 ↓-13%122514 351243 12
getAssetIndex(address,address) ↑14%3498 ↓-3.4%9344 9589 16507 ↑11%49
getConfiguration(address) 1332 1408 1354 7854 ↓-0.74%19774
getIncentivesController() 1036 ↓-12%2366 1080 7580 ↑25%10
getReserveData(address) 5891 ↑0.16%8584 5935 34935 ↓-0.78%4973
getReserveNormalizedVariableDebt(address) 1454 ↓-0.35%2007 1498 11584 ↑1.4%147
getReservesList() 3794 ↑0.091%8822 11794 16294 92
getUserRewards(address[],address,address) 7423 ↑0.37%8666 7423 17498 12
initReserves((address,address,bool,address,address,address,address,string,string,string,string,bytes,bytes)[]) 45683 ↑6.1%24319572 ↑1.6%1565178 ↑5.7%209358331 9
liquidationCall(address,address,address,uint256,bool) 80670 ↓-2.5%265129 350729 410462 ↑6.9%31
name() 1871 ↓-0.32%3384 3871 8371 ↑0.76%266
repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32) ↓-1.8%155547 ↓-3.1%175554 ↑3.9%173367 ↓-9.5%197749 3
repayWithPermit(bytes32,bytes32,bytes32) ↓-0.0055%217435 ↓-0.0055%217435 ↓-0.0055%217435 ↓-0.0055%217435 1
rescueTokens(address,address,uint256) 39090 ↓-0.012%58089 69188 ↓-0.051%70445 5
scaledBalanceOf(address) 1296 ↑0.46%3744 3296 7796 ↑0.97%418
scaledTotalSupply() 979 ↑0.26%3064 3023 7523 ↓-0.57%4911
setLiquidationGracePeriod(address,uint40) 32833 ↓-0.016%37967 ↓-0.016%37348 ↓-0.027%43715 6
setPoolPause(bool,uint40) 43783 ↓-0.0067%88970 ↓-0.0067%88970 ↓-0.0089%134157 2
setReserveInterestRateData(address,bytes) ↑0.49%44544 ↑0.12%89243 ↑0.12%89243 133943 2
setReserveInterestRateStrategyAddress(address,address) 32829 ↓-0.29%36551 ↓-0.61%35331 42713 8
setReservePause(address,bool) ↑0.49%44032 ↑0.12%61259 69873 69873 3
setReservePause(address,bool,uint40) ↓-0.058%41276 ↑1.4%66569 ↑1.7%67659 76187 24
setSupplyCap(address,uint256) 43691 ↓-0.0015%66773 70813 ↓-0.034%70819 18
setUserEMode(uint8) ↓-0.03%40463 ↓-0.43%68731 67427 121033 33
supply(address,uint256,address,uint16) 56589 ↓-0.00046%217684 230881 243423 503
supplyWithPermit(address,uint256,address,uint16,uint256,uint8,bytes32,bytes32) 142282 ↓-0.0092%216800 ↓-0.03%241863 ↑0.0045%266257 3
symbol() ↓-14%1634 ↓-0.53%4291 3936 8436 ↑0.84%241
totalSupply() 1013 ↑0.13%3745 3013 15569 ↓-0.69%2152

MockAggregator

  • gas: 108479 / 49152
Method min mean median max calls
latestAnswer() 279 ↓-0.048%2099 2279 2279 ↓-0.44%2508

MockParaSwapAugustusRegistry

  • gas: 93931 / 49152
Method min mean median max calls
isValidAugustus(address) 321 321 321 321 ↓-19%66

TestnetERC20

  • gas: 1032173 / 49152
Method min mean median max calls
approve(address,uint256) 26300 ↑0.026%46562 46584 46584 ↓-0.91%3273
balanceOf(address) 648 1208 648 2648 ↓-0.93%428
decimals() 311 ↓-0.18%2272 2311 2311 ↓-0.39%1546
mint(address,uint256) 36475 ↓-0.0034%59093 53587 70795 ↓-0.91%3273
permit(address,address,uint256,uint256,uint8,bytes32,bytes32) 76481 ↓-0.047%76481 ↓-0.047%76481 ↓-0.094%76481 2
transferOwnership(address) 28797 28797 28797 28797 ↓-18%31

WadRayMathWrapper

  • gas: 229224 / 49152
Method min mean median max calls
WAD_RAY_RATIO() 268 268 268 268 ↑17%7
wadToRay(uint256) ↑28%357 ↑5.9%357 357 357 ↑25%5

ACLManager

  • gas: 847989 / 49152
Method min mean median max calls
DEFAULT_ADMIN_ROLE() 282 282 282 282 ↓-0.72%1374
POOL_ADMIN_ROLE() 292 292 292 292 ↓-0.73%677
addPoolAdmin(address) 50988 50999 51000 51000 ↓-0.75%664
isAssetListingAdmin(address) 809 1828 2809 2809 ↓-0.75%1318
isPoolAdmin(address) 752 ↑0.12%847 752 2752 ↓-0.75%22430
isRiskAdmin(address) 742 837 742 2742 ↓-0.76%19640

PoolAddressesProvider

  • gas: 1571699 / 49152
Method min mean median max calls
getACLAdmin() 477 555 477 2477 ↓-0.7%709
getACLManager() 531 ↑0.16%629 531 2531 ↓-0.75%22471
getAddress(bytes32) 543 ↑0.11%873 543 2543 ↓-0.77%5658
getPool() 466 ↓-0.36%1120 466 2466 ↓-0.83%4916
getPoolConfigurator() 509 570 509 2509 ↓-0.73%33952
getPoolDataProvider() 486 1169 486 2486 ↓-0.74%2023
getPriceOracle() 574 ↓-0.59%2023 2574 2574 ↓-2.2%589
getPriceOracleSentinel() 487 ↑0.043%2308 2487 2487 ↑1.1%191
owner() 363 363 363 363 ↓-0.73%682

PoolAddressesProviderRegistry

  • gas: 0 / 49152
Method min mean median max calls
owner() 329 2323 2329 2329 ↓-0.73%679

RewardsController

  • gas: 3131951 / 49152
Method min mean median max calls
EMISSION_MANAGER() 326 326 326 326 ↓-0.73%681
claimRewards(address[],uint256,address,address) 952 ↑13%52261 ↑110%56372 ↑14%97890 ↓-14%6
getAssetIndex(address,address) ↑17%2883 ↓-3.5%7260 8974 11392 ↑11%49
getUserRewards(address[],address,address) 6793 ↑0.42%7661 6793 12368 12
initialize(address) 26065 45245 45250 53154 ↓-0.73%679

Collector

  • gas: 0 / 49152
Method min mean median max calls
initialize(address,uint256) 90680 90680 90680 90680 ↓-0.71%704

RevenueSplitter

  • gas: 497867 / 49152
Method min mean median max calls
splitRevenue(address[]) 24246 ↑3.4%76565 58340 135765 8

AaveV3GettersBatchOne

  • gas: 5027110 / 49152
Method min mean median max calls
getGettersReportOne() 968 968 968 968 ↓-0.71%701

AaveV3GettersBatchTwo

  • gas: 1506020 / 49152
Method min mean median max calls
getGettersReportTwo() 533 533 533 533 ↓-0.74%675

AaveV3HelpersBatchOne

  • gas: 7236234 / 49152
Method min mean median max calls
getConfigEngineReport() 1693 1693 1693 1693 ↓-0.76%649

AaveV3HelpersBatchTwo

  • gas: 7506408 / 49152
Method min mean median max calls
staticATokenReport() 968 968 968 968 ↓-0.76%649

AaveV3MiscBatch

  • gas: 1046345 / 49152
Method min mean median max calls
getMiscReport() 533 533 533 533 ↓-0.71%701

AaveV3ParaswapBatch

  • gas: ↓-6.4%5991677 / 49152
Method min mean median max calls
getParaswapReport() ↓-22%757 ↓-22%757 ↓-22%757 ↓-22%757 34

AaveV3PeripheryBatch

  • gas: ↓-0.0098%7968161 / 49152
Method min mean median max calls
getPeripheryReport() 1512 3509 3512 5512 ↓-0.71%701

AaveV3PoolBatch

  • gas: 9328336 / 49152
Method min mean median max calls
getPoolReport() 533 533 533 533 ↓-0.79%625

AaveV3SetupBatch

  • gas: ↓-6%4879300 / 49152
Method min mean median max calls
getInitialReport() ↓-11%552 ↓-11%552 ↓-11%552 ↓-11%552 ↓-0.71%701
setMarketReport((address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address,address)) 629994 632476 629994 750834 649
setupAaveV3Market((address,address,address),(address,address,string,uint8,address,address,uint256,uint256,bytes32,address,address,uint128,uint128,address,address,address,uint16),address,address,address,address,address,address) 2168391 2661455 2661559 2687366 677

AaveV3TokensBatch

  • gas: 4228121 / 49152
Method min mean median max calls
getTokensReport() 533 533 533 533 ↓-0.74%675

MockERC20AaveLMUpgradeable

  • gas: 1871094 / 49152
Method min mean median max calls
claimRewards(address,address[]) 58645 58645 58645 58645 1
claimRewardsOnBehalf(address,address,address[]) 34383 52145 59165 62888 3
claimRewardsToSelf(address[]) 58146 58146 58146 58146 1
collectAndUpdateRewards(address) 48341 89393 89393 130446 2
getClaimableRewards(address,address) 6580 7769 6584 26280 20
getReferenceAsset() 2495 2495 2495 2495 1
getTotalClaimableRewards(address) 11367 18010 18010 24654 2
getUnclaimedRewards(address,address) 818 818 818 818 6
isRegisteredRewardToken(address) 575 1241 575 2575 3
mint(address,uint256) 53655 90312 97646 97646 12
mockInit(address) 79952 79952 79952 79952 17
refreshRewardTokens() 116549 116590 116557 116975 12
rewardTokens() 1012 1012 1012 1012 1
transfer(address,uint256) 72830 76666 76666 80503 2

MockScaledTestnetERC20

  • gas: 1058431 / 49152
Method min mean median max calls
decimals() 2333 2333 2333 2333 12
getScaledUserBalanceAndSupply(address) 735 3735 4735 4735 4
mint(address,uint256) 51332 65750 68648 68648 12
scaledTotalSupply() 394 1760 2394 2394 60
transfer(address,uint256) 29803 44113 46975 46975 12

MockERC4626StataTokenUpgradeable

  • gas: 2201754 / 49152
Method min mean median max calls
approve(address,uint256) 46387 46441 46441 46495 2
balanceOf(address) 607 607 607 607 11
convertToAssets(uint256) 2937 2937 2937 2937 1
convertToShares(uint256) 15938 15938 15938 15938 1
decimals() 540 540 540 540 1
depositATokens(uint256,address) 59772 198621 210800 215866 12
depositWithPermit(uint256,address,uint256,(uint8,bytes32,bytes32),bool) 75995 248384 267302 353532 5
latestAnswer() 19765 19765 19765 19765 2
maxDeposit(address) 28852 32396 29121 42493 4
maxMint(address) 9466 9466 9466 9466 1
maxRedeem(address) 2593 5823 7434 7444 3
mint(uint256,address) 74367 193374 193374 312381 2
mockInit(address) 134255 134255 134255 134255 28
previewDeposit(uint256) 2981 11647 15981 15981 3
previewMint(uint256) 2977 2977 2977 2977 1
previewRedeem(uint256) 2913 2913 2913 2913 2
previewWithdraw(uint256) 2959 2959 2959 2959 1
redeem(uint256,address,address) 174871 174871 174871 174871 1
redeemATokens(uint256,address,address) 40863 121383 161215 162073 3
totalAssets() 2930 7930 2930 17930 3
withdraw(uint256,address,address) 51275 114499 114499 177723 2

VariableDebtTokenHarness

  • gas: 1699482 / 49152
Method min mean median max calls
approveDelegation(address,uint256) ↑0.025%48617 ↑0.025%48617 ↑0.025%48617 ↑0.025%48617 1
burn(address,uint256,uint256) ↑0.046%52051 ↑0.046%52057 ↑0.046%52057 ↑0.046%52063 2
initialize(address,address,address,uint8,string,string,bytes) ↑0.12%30669 ↓-3.7%152781 ↓-0.24%179163 ↓-0.069%224588 8
mint(address,address,uint256,uint256) ↑0.028%86779 ↑0.031%88025 ↑0.041%86797 ↑0.013%91730 4
name() 1259 ↓-1.5%1337 1259 1554 15

AaveV3TestListing

  • gas: ↓-0.018%3355479 / 49152
Method min mean median max calls
USDX_ADDRESS() 293 293 293 293 ↓-0.77%641
WBTC_ADDRESS() 249 249 249 249 ↓-0.77%641
execute() 5115928 ↓-0.00002%5116788 5116858 5116858 ↓-0.77%644
🔮 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$
...[Comment body truncated]

@sakulstra
Copy link
Contributor Author

currently the coverage is truncated - once merged this will be fixed.

@sakulstra sakulstra merged commit 809dd8a into aave-dao:main Nov 18, 2024
4 checks passed
@sakulstra sakulstra deleted the feat/cleanup branch November 18, 2024 13:55
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.

2 participants