Skip to content

Commit

Permalink
feat: scroll activation (#174)
Browse files Browse the repository at this point in the history
* chore: update lib

* fix: generator

* feat: scroll activation payload

* feat: add writeup

* fix: payload

* fix: update test block, new addresses from updated helpers

* chore: add js-utils and update test block

* chore: update libs

* fix: lockfile
  • Loading branch information
brotherlymite authored Feb 2, 2024
1 parent 578d0b0 commit 1264249
Show file tree
Hide file tree
Showing 11 changed files with 989 additions and 121 deletions.
1 change: 1 addition & 0 deletions .assets/7af3d32d5b53ea30044e549f0c9e403bbecdaaf1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RPC_BASE=https://base.llamarpc.com
RPC_ZKEVM=https://zkevm-rpc.com
RPC_GNOSIS=https://rpc.ankr.com/gnosis
RPC_BNB=https://binance.llamarpc.com
RPC_SCROLL=https://rpc.scroll.io

# Etherscan api keys for verification & download utils
ETHERSCAN_API_KEY_MAINNET=
Expand All @@ -30,6 +31,7 @@ ETHERSCAN_API_KEY_BASE=
ETHERSCAN_API_KEY_ZKEVM=
ETHERSCAN_API_KEY_GNOSIS=
ETHERSCAN_API_KEY_BNB=
ETHERSCAN_API_KEY_SCROLL=

# Simulation/fork creation
TENDERLY_ACCESS_TOKEN=
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
## Reserve changes

### Reserve added

#### USDC (0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4)

| description | value |
| --- | --- |
| decimals | 6 |
| isActive | true |
| isFrozen | false |
| supplyCap | 1,000,000 USDC |
| borrowCap | 900,000 USDC |
| debtCeiling | 0 $ |
| isSiloed | false |
| isFlashloanable | true |
| eModeCategory | 0 |
| oracle | 0x43d12Fb3AfCAd5347fA764EeAB105478337b7200 |
| oracleDecimals | 8 |
| oracleDescription | USDC / USD |
| oracleLatestAnswer | 1.00010854 |
| usageAsCollateralEnabled | true |
| ltv | 77 % |
| liquidationThreshold | 80 % |
| liquidationBonus | 5 % |
| liquidationProtocolFee | 10 % |
| reserveFactor | 10 % |
| aToken | 0x1D738a3436A8C49CefFbaB7fbF04B660fb528CbD |
| aTokenImpl | 0x92EDe4ABd9df4Bfb49b4d723e4c932e35c47C54C |
| variableDebtToken | 0x3d2E209af5BFa79297C88D6b57F89d792F6E28EE |
| variableDebtTokenImpl | 0x49bA16C08130FF8cFADE263B49387A8555bc057B |
| stableDebtToken | 0x59F359aA263f7Ac09876E869AF1F75b558904ed4 |
| stableDebtTokenImpl | 0x8Ff5f08EDB2E5e1A51bd14d0494320bdB436a149 |
| borrowingEnabled | true |
| stableBorrowRateEnabled | false |
| isBorrowableInIsolation | true |
| interestRateStrategy | 0x9205B37978aC983A297dFB53b3f3D2cCC7DDDADa |
| aTokenName | Aave Scroll USDC |
| aTokenSymbol | aScrUSDC |
| isPaused | false |
| stableDebtTokenName | Aave Scroll Stable Debt USDC |
| stableDebtTokenSymbol | stableDebtScrUSDC |
| variableDebtTokenName | Aave Scroll Variable Debt USDC |
| variableDebtTokenSymbol | variableDebtScrUSDC |
| optimalUsageRatio | 90 % |
| maxExcessUsageRatio | 10 % |
| baseVariableBorrowRate | 0 % |
| variableRateSlope1 | 6 % |
| variableRateSlope2 | 60 % |
| baseStableBorrowRate | 7 % |
| stableRateSlope1 | 6 % |
| stableRateSlope2 | 60 % |
| optimalStableToTotalDebtRatio | 20 % |
| maxExcessStableToTotalDebtRatio | 80 % |
| interestRate | ![ir](/.assets/4c5958ae482feac8d910d7dab706b3b1cfd28679.svg) |


#### WETH (0x5300000000000000000000000000000000000004)

| description | value |
| --- | --- |
| decimals | 18 |
| isActive | true |
| isFrozen | false |
| supplyCap | 240 WETH |
| borrowCap | 200 WETH |
| debtCeiling | 0 $ |
| isSiloed | false |
| isFlashloanable | true |
| eModeCategory | 1 |
| oracle | 0x6bF14CB0A831078629D993FDeBcB182b21A8774C |
| oracleDecimals | 8 |
| oracleDescription | ETH / USD |
| oracleLatestAnswer | 2379.36 |
| usageAsCollateralEnabled | true |
| ltv | 75 % |
| liquidationThreshold | 78 % |
| liquidationBonus | 6 % |
| liquidationProtocolFee | 10 % |
| reserveFactor | 15 % |
| aToken | 0xf301805bE1Df81102C957f6d4Ce29d2B8c056B2a |
| aTokenImpl | 0x92EDe4ABd9df4Bfb49b4d723e4c932e35c47C54C |
| variableDebtToken | 0xfD7344CeB1Df9Cf238EcD667f4A6F99c6Ef44a56 |
| variableDebtTokenImpl | 0x49bA16C08130FF8cFADE263B49387A8555bc057B |
| stableDebtToken | 0x117d9cF336287F46DBE509a43925cFF115Aa563c |
| stableDebtTokenImpl | 0x8Ff5f08EDB2E5e1A51bd14d0494320bdB436a149 |
| borrowingEnabled | true |
| stableBorrowRateEnabled | false |
| isBorrowableInIsolation | false |
| interestRateStrategy | 0xD828F2f9Da85b190721797bEaD5Eb0acC4150f05 |
| aTokenName | Aave Scroll WETH |
| aTokenSymbol | aScrWETH |
| isPaused | false |
| stableDebtTokenName | Aave Scroll Stable Debt WETH |
| stableDebtTokenSymbol | stableDebtScrWETH |
| variableDebtTokenName | Aave Scroll Variable Debt WETH |
| variableDebtTokenSymbol | variableDebtScrWETH |
| optimalUsageRatio | 80 % |
| maxExcessUsageRatio | 20 % |
| baseVariableBorrowRate | 0 % |
| variableRateSlope1 | 3.3 % |
| variableRateSlope2 | 8 % |
| baseStableBorrowRate | 5.3 % |
| stableRateSlope1 | 3.3 % |
| stableRateSlope2 | 8 % |
| optimalStableToTotalDebtRatio | 20 % |
| maxExcessStableToTotalDebtRatio | 80 % |
| interestRate | ![ir](/.assets/7af3d32d5b53ea30044e549f0c9e403bbecdaaf1.svg) |
| eMode.label | ETH correlated |
| eMode.ltv | 90 % |
| eMode.liquidationThreshold | 93 % |
| eMode.liquidationBonus | 1 % |
| eMode.priceSource | 0x0000000000000000000000000000000000000000 |


#### wstETH (0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32)

| description | value |
| --- | --- |
| decimals | 18 |
| isActive | true |
| isFrozen | false |
| supplyCap | 130 wstETH |
| borrowCap | 45 wstETH |
| debtCeiling | 0 $ |
| isSiloed | false |
| isFlashloanable | true |
| eModeCategory | 1 |
| oracle | 0xdb93e2712a8B36835078f8D28c70fCC95FD6d37c |
| oracleDecimals | 8 |
| oracleDescription | wstETH/ETH/USD |
| oracleLatestAnswer | 2746.89605153 |
| usageAsCollateralEnabled | true |
| ltv | 75 % |
| liquidationThreshold | 78 % |
| liquidationBonus | 7 % |
| liquidationProtocolFee | 10 % |
| reserveFactor | 15 % |
| aToken | 0x5B1322eeb46240b02e20062b8F0F9908d525B09c |
| aTokenImpl | 0x92EDe4ABd9df4Bfb49b4d723e4c932e35c47C54C |
| variableDebtToken | 0x8a035644322129800C3f747f54Db0F4d3c0A2877 |
| variableDebtTokenImpl | 0x49bA16C08130FF8cFADE263B49387A8555bc057B |
| stableDebtToken | 0x18e3f125ce85e8D65AD2bb4f6b5fff110772A078 |
| stableDebtTokenImpl | 0x8Ff5f08EDB2E5e1A51bd14d0494320bdB436a149 |
| borrowingEnabled | true |
| stableBorrowRateEnabled | false |
| isBorrowableInIsolation | false |
| interestRateStrategy | 0xCB032D7e38a10503c0b2F9f7bE8c1A81bBBEe2A8 |
| aTokenName | Aave Scroll wstETH |
| aTokenSymbol | aScrwstETH |
| isPaused | false |
| stableDebtTokenName | Aave Scroll Stable Debt wstETH |
| stableDebtTokenSymbol | stableDebtScrwstETH |
| variableDebtTokenName | Aave Scroll Variable Debt wstETH |
| variableDebtTokenSymbol | variableDebtScrwstETH |
| optimalUsageRatio | 45 % |
| maxExcessUsageRatio | 55 % |
| baseVariableBorrowRate | 0 % |
| variableRateSlope1 | 7 % |
| variableRateSlope2 | 300 % |
| baseStableBorrowRate | 9 % |
| stableRateSlope1 | 7 % |
| stableRateSlope2 | 300 % |
| optimalStableToTotalDebtRatio | 20 % |
| maxExcessStableToTotalDebtRatio | 80 % |
| interestRate | ![ir](/.assets/b5cb0fd07fde8594230045982589445fc02ace52.svg) |
| eMode.label | ETH correlated |
| eMode.ltv | 90 % |
| eMode.liquidationThreshold | 93 % |
| eMode.liquidationBonus | 1 % |
| eMode.priceSource | 0x0000000000000000000000000000000000000000 |


## Raw diff

```json
{
"eModes": {
"1": {
"from": null,
"to": {
"eModeCategory": 1,
"label": "ETH correlated",
"liquidationBonus": 10100,
"liquidationThreshold": 9300,
"ltv": 9000,
"priceSource": "0x0000000000000000000000000000000000000000"
}
}
},
"reserves": {
"0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4": {
"from": null,
"to": {
"aToken": "0x1D738a3436A8C49CefFbaB7fbF04B660fb528CbD",
"aTokenImpl": "0x92EDe4ABd9df4Bfb49b4d723e4c932e35c47C54C",
"aTokenName": "Aave Scroll USDC",
"aTokenSymbol": "aScrUSDC",
"borrowCap": 900000,
"borrowingEnabled": true,
"debtCeiling": 0,
"decimals": 6,
"eModeCategory": 0,
"interestRateStrategy": "0x9205B37978aC983A297dFB53b3f3D2cCC7DDDADa",
"isActive": true,
"isBorrowableInIsolation": true,
"isFlashloanable": true,
"isFrozen": false,
"isPaused": false,
"isSiloed": false,
"liquidationBonus": 10500,
"liquidationProtocolFee": 1000,
"liquidationThreshold": 8000,
"ltv": 7700,
"oracle": "0x43d12Fb3AfCAd5347fA764EeAB105478337b7200",
"oracleDecimals": 8,
"oracleDescription": "USDC / USD",
"oracleLatestAnswer": 100010854,
"reserveFactor": 1000,
"stableBorrowRateEnabled": false,
"stableDebtToken": "0x59F359aA263f7Ac09876E869AF1F75b558904ed4",
"stableDebtTokenImpl": "0x8Ff5f08EDB2E5e1A51bd14d0494320bdB436a149",
"stableDebtTokenName": "Aave Scroll Stable Debt USDC",
"stableDebtTokenSymbol": "stableDebtScrUSDC",
"supplyCap": 1000000,
"symbol": "USDC",
"underlying": "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",
"usageAsCollateralEnabled": true,
"variableDebtToken": "0x3d2E209af5BFa79297C88D6b57F89d792F6E28EE",
"variableDebtTokenImpl": "0x49bA16C08130FF8cFADE263B49387A8555bc057B",
"variableDebtTokenName": "Aave Scroll Variable Debt USDC",
"variableDebtTokenSymbol": "variableDebtScrUSDC"
}
},
"0x5300000000000000000000000000000000000004": {
"from": null,
"to": {
"aToken": "0xf301805bE1Df81102C957f6d4Ce29d2B8c056B2a",
"aTokenImpl": "0x92EDe4ABd9df4Bfb49b4d723e4c932e35c47C54C",
"aTokenName": "Aave Scroll WETH",
"aTokenSymbol": "aScrWETH",
"borrowCap": 200,
"borrowingEnabled": true,
"debtCeiling": 0,
"decimals": 18,
"eModeCategory": 1,
"interestRateStrategy": "0xD828F2f9Da85b190721797bEaD5Eb0acC4150f05",
"isActive": true,
"isBorrowableInIsolation": false,
"isFlashloanable": true,
"isFrozen": false,
"isPaused": false,
"isSiloed": false,
"liquidationBonus": 10600,
"liquidationProtocolFee": 1000,
"liquidationThreshold": 7800,
"ltv": 7500,
"oracle": "0x6bF14CB0A831078629D993FDeBcB182b21A8774C",
"oracleDecimals": 8,
"oracleDescription": "ETH / USD",
"oracleLatestAnswer": 237936000000,
"reserveFactor": 1500,
"stableBorrowRateEnabled": false,
"stableDebtToken": "0x117d9cF336287F46DBE509a43925cFF115Aa563c",
"stableDebtTokenImpl": "0x8Ff5f08EDB2E5e1A51bd14d0494320bdB436a149",
"stableDebtTokenName": "Aave Scroll Stable Debt WETH",
"stableDebtTokenSymbol": "stableDebtScrWETH",
"supplyCap": 240,
"symbol": "WETH",
"underlying": "0x5300000000000000000000000000000000000004",
"usageAsCollateralEnabled": true,
"variableDebtToken": "0xfD7344CeB1Df9Cf238EcD667f4A6F99c6Ef44a56",
"variableDebtTokenImpl": "0x49bA16C08130FF8cFADE263B49387A8555bc057B",
"variableDebtTokenName": "Aave Scroll Variable Debt WETH",
"variableDebtTokenSymbol": "variableDebtScrWETH"
}
},
"0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32": {
"from": null,
"to": {
"aToken": "0x5B1322eeb46240b02e20062b8F0F9908d525B09c",
"aTokenImpl": "0x92EDe4ABd9df4Bfb49b4d723e4c932e35c47C54C",
"aTokenName": "Aave Scroll wstETH",
"aTokenSymbol": "aScrwstETH",
"borrowCap": 45,
"borrowingEnabled": true,
"debtCeiling": 0,
"decimals": 18,
"eModeCategory": 1,
"interestRateStrategy": "0xCB032D7e38a10503c0b2F9f7bE8c1A81bBBEe2A8",
"isActive": true,
"isBorrowableInIsolation": false,
"isFlashloanable": true,
"isFrozen": false,
"isPaused": false,
"isSiloed": false,
"liquidationBonus": 10700,
"liquidationProtocolFee": 1000,
"liquidationThreshold": 7800,
"ltv": 7500,
"oracle": "0xdb93e2712a8B36835078f8D28c70fCC95FD6d37c",
"oracleDecimals": 8,
"oracleDescription": "wstETH/ETH/USD",
"oracleLatestAnswer": 274689605153,
"reserveFactor": 1500,
"stableBorrowRateEnabled": false,
"stableDebtToken": "0x18e3f125ce85e8D65AD2bb4f6b5fff110772A078",
"stableDebtTokenImpl": "0x8Ff5f08EDB2E5e1A51bd14d0494320bdB436a149",
"stableDebtTokenName": "Aave Scroll Stable Debt wstETH",
"stableDebtTokenSymbol": "stableDebtScrwstETH",
"supplyCap": 130,
"symbol": "wstETH",
"underlying": "0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32",
"usageAsCollateralEnabled": true,
"variableDebtToken": "0x8a035644322129800C3f747f54Db0F4d3c0A2877",
"variableDebtTokenImpl": "0x49bA16C08130FF8cFADE263B49387A8555bc057B",
"variableDebtTokenName": "Aave Scroll Variable Debt wstETH",
"variableDebtTokenSymbol": "variableDebtScrwstETH"
}
}
},
"strategies": {
"0x9205B37978aC983A297dFB53b3f3D2cCC7DDDADa": {
"from": null,
"to": {
"baseStableBorrowRate": "70000000000000000000000000",
"baseVariableBorrowRate": 0,
"maxExcessStableToTotalDebtRatio": "800000000000000000000000000",
"maxExcessUsageRatio": "100000000000000000000000000",
"optimalStableToTotalDebtRatio": "200000000000000000000000000",
"optimalUsageRatio": "900000000000000000000000000",
"stableRateSlope1": "60000000000000000000000000",
"stableRateSlope2": "600000000000000000000000000",
"variableRateSlope1": "60000000000000000000000000",
"variableRateSlope2": "600000000000000000000000000"
}
},
"0xCB032D7e38a10503c0b2F9f7bE8c1A81bBBEe2A8": {
"from": null,
"to": {
"baseStableBorrowRate": "90000000000000000000000000",
"baseVariableBorrowRate": 0,
"maxExcessStableToTotalDebtRatio": "800000000000000000000000000",
"maxExcessUsageRatio": "550000000000000000000000000",
"optimalStableToTotalDebtRatio": "200000000000000000000000000",
"optimalUsageRatio": "450000000000000000000000000",
"stableRateSlope1": "70000000000000000000000000",
"stableRateSlope2": "3000000000000000000000000000",
"variableRateSlope1": "70000000000000000000000000",
"variableRateSlope2": "3000000000000000000000000000"
}
},
"0xD828F2f9Da85b190721797bEaD5Eb0acC4150f05": {
"from": null,
"to": {
"baseStableBorrowRate": "53000000000000000000000000",
"baseVariableBorrowRate": 0,
"maxExcessStableToTotalDebtRatio": "800000000000000000000000000",
"maxExcessUsageRatio": "200000000000000000000000000",
"optimalStableToTotalDebtRatio": "200000000000000000000000000",
"optimalUsageRatio": "800000000000000000000000000",
"stableRateSlope1": "33000000000000000000000000",
"stableRateSlope2": "80000000000000000000000000",
"variableRateSlope1": "33000000000000000000000000",
"variableRateSlope2": "80000000000000000000000000"
}
}
}
}
```
Loading

1 comment on commit 1264249

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foundry report

forge 0.2.0 (84d9842 2024-02-02T00:18:16.079399933Z)
Build log
Compiling 498 files with 0.8.19
Solc 0.8.19 finished in 360.14s
Compiler run successful with warnings:
Warning (9302): Return value of low-level calls not used.
  --> src/20231229_Multi_TreasuryManagementGSMFundingRWAStrategyPreparationsPart1/AaveV2Ethereum_TreasuryManagementGSMFundingRWAStrategyPreparationsPart1_20231229.sol:47:5:
   |
47 |     SAFE.call{value: address(this).balance}('');
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
   --> lib/aave-helpers/src/GovV3Helpers.sol:879:5:
    |
879 |     address votingPortal
    |     ^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> src/20231122_AaveV3Harmony_FreezePriceFeedsOnV3Harmony/FreezePriceFeedsOnV3Harmony_20231122.s.sol:16:5:
   |
16 |     AaveV3Harmony_FreezePriceFeedsOnV3Harmony_20231122 payload0 = new AaveV3Harmony_FreezePriceFeedsOnV3Harmony_20231122(
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (2018): Function state mutability can be restricted to pure
   --> lib/aave-helpers/src/GovV3Helpers.sol:591:3:
    |
591 |   function build2_5Payload(
    |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20231208_Multi_TreasuryManagementPolygonV2ToV3Migration/AaveV2Polygon_TreasuryManagementPolygonV2ToV3Migration_20231208.sol:12:3:
   |
12 |   function getUnderlyingAddresses() internal view returns (address[8] memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20231208_Multi_TreasuryManagementPolygonV2ToV3Migration/AaveV2Polygon_TreasuryManagementPolygonV2ToV3Migration_20231208.sol:25:3:
   |
25 |   function getV2ATokenAddresses() internal view returns (address[8] memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20240104_Multi_Patch/Patch_20240104.s.sol:32:3:
   |
32 |   function _getPayload() internal override returns (bytes memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20240104_Multi_Patch/Patch_20240104.s.sol:43:3:
   |
43 |   function _getPayload() internal override returns (bytes memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20240104_Multi_Patch/Patch_20240104.s.sol:54:3:
   |
54 |   function _getPayload() internal override returns (bytes memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20240104_Multi_Patch/Patch_20240104.s.sol:65:3:
   |
65 |   function _getPayload() internal override returns (bytes memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20240104_Multi_Patch/Patch_20240104.s.sol:76:3:
   |
76 |   function _getPayload() internal override returns (bytes memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20240104_Multi_Patch/Patch_20240104.s.sol:87:3:
   |
87 |   function _getPayload() internal override returns (bytes memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
  --> src/20240104_Multi_Patch/Patch_20240104.s.sol:98:3:
   |
98 |   function _getPayload() internal override returns (bytes memory) {
   |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
   --> src/20240115_AaveV1Ethereum_AaveV1Deprecation/AaveV1Ethereum_AaveV1Deprecation_20240115.t.sol:217:3:
    |
217 |   function _getUsers() internal returns (V1User[] memory) {
    |   ^ (Relevant source part starts here and spans across multiple lines).

| Contract                                                                                | Size (kB) | Margin (kB) |
|-----------------------------------------------------------------------------------------|-----------|-------------|
| AaveGovernanceV2                                                                        | 0.086     | 24.49       |
| AaveSafetyModule                                                                        | 0.086     | 24.49       |
| AaveSwapper                                                                             | 5.613     | 18.963      |
| AaveV1Ethereum_AaveV1Deprecation_20240115                                               | 1.272     | 23.304      |
| AaveV1Ethereum_FixedREPPriceFeed_20231031                                               | 0.706     | 23.87       |
| AaveV2Avalanche                                                                         | 0.086     | 24.49       |
| AaveV2AvalancheAssets                                                                   | 0.086     | 24.49       |
| AaveV2Avalanche_ChaosLabsRiskParameterUpdatesWBTCEOnV2AndV3Avalanche_20231221           | 0.377     | 24.199      |
| AaveV2Avalanche_IncreaseStablecoinOptimalBorrowRates_20231113                           | 1.899     | 22.677      |
| AaveV2Avalanche_StablecoinIRCurvesUpdates_20231221                                      | 1.899     | 22.677      |
| AaveV2Ethereum                                                                          | 0.086     | 24.49       |
| AaveV2EthereumAMM                                                                       | 0.086     | 24.49       |
| AaveV2EthereumAMMAssets                                                                 | 0.086     | 24.49       |
| AaveV2EthereumAMM_SyncEmergencyAdminOnV2AMM_20231207                                    | 0.227     | 24.349      |
| AaveV2EthereumAssets                                                                    | 0.086     | 24.49       |
| AaveV2Ethereum_AMPLInterestRateUpdatesOnV2Ethereum_20240121                             | 1.643     | 22.933      |
| AaveV2Ethereum_AaveV2EthereumLTReduction_20231030                                       | 3.023     | 21.553      |
| AaveV2Ethereum_ChaosLabsRFAndIRUpdatesAaveV2Ethereum_20231203                           | 2.851     | 21.725      |
| AaveV2Ethereum_ChaosLabsV2EthereumAndPolygonLTReductions_20231205                       | 2.641     | 21.935      |
| AaveV2Ethereum_Disable_Stable_Borrows_20231104                                          | 2.519     | 22.057      |
| AaveV2Ethereum_IncreaseStablecoinOptimalBorrowRates_20231113                            | 3.078     | 21.498      |
| AaveV2Ethereum_MigrationOfRemainingGovV2Permissions_20240130                            | 1.018     | 23.558      |
| AaveV2Ethereum_MigrationOfRemainingGovV2Permissions_Part2_20240130                      | 1.487     | 23.089      |
| AaveV2Ethereum_RedeemCRVFromAaveV2EthereumAndTransferToGLC_20231123                     | 1.322     | 23.254      |
| AaveV2Ethereum_StablecoinIRCurvesUpdates_20231221                                       | 2.88      | 21.696      |
| AaveV2Ethereum_TreasuryManagementGSMFundingRWAStrategyPreparationsPart1_20231229        | 3.456     | 21.12       |
| AaveV2Ethereum_V2DeprecationPlan20231120_20231121                                       | 2.003     | 22.573      |
| AaveV2Ethereum_V2DeprecationPlan20240102_20240103                                       | 0.968     | 23.608      |
| AaveV2Polygon                                                                           | 0.086     | 24.49       |
| AaveV2PolygonAssets                                                                     | 0.086     | 24.49       |
| AaveV2Polygon_AaveFundingUpdates_20231102                                               | 1.627     | 22.949      |
| AaveV2Polygon_ChaosLabsV2EthereumAndPolygonLTReductions_20231205                        | 1.853     | 22.723      |
| AaveV2Polygon_IncreaseStablecoinOptimalBorrowRates_20231113                             | 1.899     | 22.677      |
| AaveV2Polygon_ReserveFactorUpdatesJan152024_20240108                                    | 1.175     | 23.401      |
| AaveV2Polygon_ReserveFactorUpdatesJan312024_20240125                                    | 0.872     | 23.704      |
| AaveV2Polygon_ReserveFactorUpdatesPolygonAaveV2_20231103                                | 1.01      | 23.566      |
| AaveV2Polygon_ReserveFactorUpdatesPolygonAaveV2_20231124                                | 1.01      | 23.566      |
| AaveV2Polygon_ReserveFactorUpdates_20231208                                             | 1.036     | 23.54       |
| AaveV2Polygon_ReserveFactorUpdates_20240102                                             | 1.036     | 23.54       |
| AaveV2Polygon_StablecoinIRCurvesUpdates_20231221                                        | 1.899     | 22.677      |
| AaveV2Polygon_TreasuryManagementPolygonV2ToV3Migration_20231208                         | 3.046     | 21.53       |
| AaveV3Arbitrum                                                                          | 0.086     | 24.49       |
| AaveV3ArbitrumAssets                                                                    | 0.086     | 24.49       |
| AaveV3ArbitrumEModes                                                                    | 0.086     | 24.49       |
| AaveV3Arbitrum_Disable_Stable_Borrows_20231104                                          | 4.14      | 20.436      |
| AaveV3Arbitrum_HarmonizeUSDTRiskParametersOnAaveV3Markets_20240115                      | 3.403     | 21.173      |
| AaveV3Arbitrum_IncreaseStablecoinOptimalBorrowRates_20231113                            | 5.167     | 19.409      |
| AaveV3Arbitrum_MAIMIMATICDeprecation20231031_20231031                                   | 4.227     | 20.349      |
| AaveV3Arbitrum_OnboardNativeUSDCToAaveV3Markets_20231205                                | 4.554     | 20.022      |
| AaveV3Arbitrum_Patch_20240104                                                           | 0.52      | 24.056      |
| AaveV3Arbitrum_StablecoinIRCurvesUpdates_20231221                                       | 4.919     | 19.657      |
| AaveV3Arbitrum_UpdatePriceOracleSentinel_20231125                                       | 0.291     | 24.285      |
| AaveV3Arbitrum_UpdateStETHAndWETHRiskParamsOnAaveV3EthereumOptimismAndArbitrum_20240121 | 3.933     | 20.643      |
| AaveV3Avalanche                                                                         | 0.086     | 24.49       |
| AaveV3AvalancheAssets                                                                   | 0.086     | 24.49       |
| AaveV3AvalancheEModes                                                                   | 0.086     | 24.49       |
| AaveV3Avalanche_ChaosLabsRiskParameterUpdatesWBTCEOnV2AndV3Avalanche_20231221           | 3.554     | 21.022      |
| AaveV3Avalanche_Disable_Stable_Borrows_20231104                                         | 3.471     | 21.105      |
| AaveV3Avalanche_HarmonizeUSDTRiskParametersOnAaveV3Markets_20240115                     | 3.418     | 21.158      |
| AaveV3Avalanche_IncreaseStablecoinOptimalBorrowRates_20231113                           | 4.665     | 19.911      |
| AaveV3Avalanche_MAIMIMATICDeprecation20231031_20231031                                  | 4.364     | 20.212      |
| AaveV3Avalanche_Patch_20240104                                                          | 0.52      | 24.056      |
| AaveV3Avalanche_StablecoinIRCurvesUpdates_20231221                                      | 4.669     | 19.907      |
| AaveV3BNB                                                                               | 0.086     | 24.49       |
| AaveV3BNBAssets                                                                         | 0.086     | 24.49       |
| AaveV3BNBEModes                                                                         | 0.086     | 24.49       |
| AaveV3BNB_HarmonizeUSDTRiskParametersOnAaveV3Markets_20240115                           | 3.421     | 21.155      |
| AaveV3BNB_OnboardFdUSDToAaveV3OnBSC_20240201                                            | 5.055     | 19.521      |
| AaveV3Base                                                                              | 0.086     | 24.49       |
| AaveV3BaseAssets                                                                        | 0.086     | 24.49       |
| AaveV3BaseEModes                                                                        | 0.086     | 24.49       |
| AaveV3Base_IncreaseStablecoinOptimalBorrowRates_20231113                                | 3.667     | 20.909      |
| AaveV3Base_OnboardNativeUSDCToAaveV3Markets_20231205                                    | 5.854     | 18.722      |
| AaveV3Base_OnboardingWstETHToAaveV3OnBaseNetwork_20231127                               | 5.044     | 19.532      |
| AaveV3Base_Patch_20240104                                                               | 0.52      | 24.056      |
| AaveV3Base_StablecoinIRCurvesUpdates_20231221                                           | 3.659     | 20.917      |
| AaveV3Base_UpdatePriceOracleSentinel_20231125                                           | 0.291     | 24.285      |
| AaveV3Bnb_AaveV3BNBActivation_20231122                                                  | 8.203     | 16.373      |
| AaveV3Ethereum                                                                          | 0.086     | 24.49       |
| AaveV3EthereumAssets                                                                    | 0.086     | 24.49       |
| AaveV3EthereumEModes                                                                    | 0.086     | 24.49       |
| AaveV3Ethereum_ACIPhaseII_20231029                                                      | 0.682     | 23.894      |
| AaveV3Ethereum_AaveFundingUpdates_20231102                                              | 5.809     | 18.767      |
| AaveV3Ethereum_AaveFundingUpdates_20231106                                              | 3.838     | 20.738      |
| AaveV3Ethereum_AddFXSToEthereumV3_20231108                                              | 4.996     | 19.58       |
| AaveV3Ethereum_AmendSafetyModuleAAVEEmissions_20231104                                  | 1.938     | 22.638      |
| AaveV3Ethereum_CRVUSDOnboardingOnAaveV3Ethereum_20231116                                | 4.996     | 19.58       |
| AaveV3Ethereum_ChaosLabsRiskManagementRenewal_20231101                                  | 1.014     | 23.562      |
| AaveV3Ethereum_ChaosLabsRiskParameterUpdatesIncreaseMKRDebtCeilingOnV3Ethereum_20231116 | 3.418     | 21.158      |
| AaveV3Ethereum_ContinuousSecurityProposalAaveCertoraPart1_20231212                      | 0.686     | 23.89       |
| AaveV3Ethereum_ContinuousSecurityProposalAaveCertoraPart2_20231212                      | 0.716     | 23.86       |
| AaveV3Ethereum_GHOIncreaseBorrowRate_20231108                                           | 0.326     | 24.25       |
| AaveV3Ethereum_GHO_Incident_Report_20231122                                             | 0.385     | 24.191      |
| AaveV3Ethereum_GauntletAaveRenewal2023_20231128                                         | 1.232     | 23.344      |
| AaveV3Ethereum_GauntletRecommendationToReactivateCRVBorrowingOnV3_20231127              | 3.882     | 20.694      |
| AaveV3Ethereum_GhoIncidentReport_20231113                                               | 1.098     | 23.478      |
| AaveV3Ethereum_HarmonizeUSDTRiskParametersOnAaveV3Markets_20240115                      | 3.417     | 21.159      |
| AaveV3Ethereum_IncreaseGHOBorrowRate100BpsTo635OnAaveV3_20231205                        | 0.324     | 24.252      |
| AaveV3Ethereum_IncreaseGHOBorrowRate_20231121                                           | 0.326     | 24.25       |
| AaveV3Ethereum_IncreaseStablecoinOptimalBorrowRates_20231113                            | 4.417     | 20.159      |
| AaveV3Ethereum_Patch_20240104                                                           | 0.52      | 24.056      |
| AaveV3Ethereum_RegisterADIScrollAdapter_20240122                                        | 0.671     | 23.905      |
| AaveV3Ethereum_RequestForBountyPayoutDecember2023_20231213                              | 0.891     | 23.685      |
| AaveV3Ethereum_RequestForBountyPayoutJanuary2024_20240125                               | 0.822     | 23.754      |
| AaveV3Ethereum_SecurityBudgetDec2023_20231218                                           | 0.714     | 23.862      |
| AaveV3Ethereum_StablecoinIRCurvesUpdates_20231221                                       | 4.668     | 19.908      |
| AaveV3Ethereum_StkGHOActivation_20240119                                                | 1.156     | 23.42       |
| AaveV3Ethereum_TokenLogicFunding_20231114                                               | 0.423     | 24.153      |
| AaveV3Ethereum_TokenLogicKarpatkeyServiceProviderPartnership_20231207                   | 1.243     | 23.333      |
| AaveV3Ethereum_TransferAURAToGLCSafe_20231123                                           | 0.514     | 24.062      |
| AaveV3Ethereum_TreasuryManagementAddToRETHHoldingResubmission_20231123                  | 0.946     | 23.63       |
| AaveV3Ethereum_TreasuryManagementAddToRETHHolding_20231103                              | 1.928     | 22.648      |
| AaveV3Ethereum_UpdateStETHAndWETHRiskParamsOnAaveV3EthereumOptimismAndArbitrum_20240121 | 3.946     | 20.63       |
| AaveV3Ethereum_UpgradeAaveV3ETHPooolWETHParameters_20231031                             | 3.671     | 20.905      |
| AaveV3Fantom                                                                            | 0.086     | 24.49       |
| AaveV3FantomAssets                                                                      | 0.086     | 24.49       |
| AaveV3FantomEModes                                                                      | 0.086     | 24.49       |
| AaveV3GenericPatch_20240104                                                             | 0.52      | 24.056      |
| AaveV3Gnosis                                                                            | 0.086     | 24.49       |
| AaveV3GnosisAssets                                                                      | 0.086     | 24.49       |
| AaveV3GnosisEModes                                                                      | 0.086     | 24.49       |
| AaveV3Gnosis_AaveV3GnosisActivation_20231026                                            | 8.802     | 15.774      |
| AaveV3Gnosis_Patch_20240104                                                             | 0.52      | 24.056      |
| AaveV3Gnosis_StablecoinIRCurvesUpdates_20231221                                         | 3.911     | 20.665      |
| AaveV3Gnosis_UpdateGNORiskParametersOnAaveV3GnosisPool_20231213                         | 4.097     | 20.479      |
| AaveV3Harmony                                                                           | 0.086     | 24.49       |
| AaveV3HarmonyAssets                                                                     | 0.086     | 24.49       |
| AaveV3HarmonyEModes                                                                     | 0.086     | 24.49       |
| AaveV3Harmony_FreezePriceFeedsOnV3Harmony_20231122                                      | 3.097     | 21.479      |
| AaveV3Metis                                                                             | 0.086     | 24.49       |
| AaveV3MetisAssets                                                                       | 0.086     | 24.49       |
| AaveV3MetisEModes                                                                       | 0.086     | 24.49       |
| AaveV3Metis_HarmonizeUSDTRiskParametersOnAaveV3Markets_20240115                         | 3.411     | 21.165      |
| AaveV3Metis_IncreaseStablecoinOptimalBorrowRates_20231113                               | 3.914     | 20.662      |
| AaveV3Metis_StablecoinIRCurvesUpdates_20231221                                          | 3.91      | 20.666      |
| AaveV3Metis_UpdatePriceOracleSentinel_20231125                                          | 0.291     | 24.285      |
| AaveV3Optimism                                                                          | 0.086     | 24.49       |
| AaveV3OptimismAssets                                                                    | 0.086     | 24.49       |
| AaveV3OptimismEModes                                                                    | 0.086     | 24.49       |
| AaveV3Optimism_Disable_Stable_Borrows_20231104                                          | 3.851     | 20.725      |
| AaveV3Optimism_GauntletRecommendationForMAIMIMATICDeprecationPhase2_20240122            | 3.416     | 21.16       |
| AaveV3Optimism_HarmonizeUSDTRiskParametersOnAaveV3Markets_20240115                      | 3.403     | 21.173      |
| AaveV3Optimism_IncreaseStablecoinOptimalBorrowRates_20231113                            | 4.919     | 19.657      |
| AaveV3Optimism_MAIMIMATICDeprecation20231031_20231031                                   | 4.228     | 20.348      |
| AaveV3Optimism_OnboardNativeUSDCToAaveV3Markets_20231205                                | 4.658     | 19.918      |
| AaveV3Optimism_OnboardNativeUSDCToAaveV3Optimism_20231122                               | 5.551     | 19.025      |
| AaveV3Optimism_Patch_20240104                                                           | 0.52      | 24.056      |
| AaveV3Optimism_StablecoinIRCurvesUpdates_20231221                                       | 4.919     | 19.657      |
| AaveV3Optimism_UpdatePriceOracleSentinel_20231125                                       | 0.291     | 24.285      |
| AaveV3Optimism_UpdateStETHAndWETHRiskParamsOnAaveV3EthereumOptimismAndArbitrum_20240121 | 3.933     | 20.643      |
| AaveV3Polygon                                                                           | 0.086     | 24.49       |
| AaveV3PolygonAssets                                                                     | 0.086     | 24.49       |
| AaveV3PolygonEModes                                                                     | 0.086     | 24.49       |
| AaveV3Polygon_ChaosLabsCRVAaveV3PolygonLTReduction_20231106                             | 3.416     | 21.16       |
| AaveV3Polygon_Disable_Stable_Borrows_20231104                                           | 4.139     | 20.437      |
| AaveV3Polygon_FreezeAndSetLTVTo0ForDPIBALCRVAndSUSHIOnAaveV3Polygon20240119_20240130    | 4.396     | 20.18       |
| AaveV3Polygon_GauntletCapRecommendationsForPolygonV3_20231120                           | 3.392     | 21.184      |
| AaveV3Polygon_GauntletRecommendationToLowerStMATICMaticXNonEmodeLTPt2_20231117          | 3.571     | 21.005      |
| AaveV3Polygon_GauntletRecommendationToReactivateCRVBorrowingOnV3_20231127               | 3.615     | 20.961      |
| AaveV3Polygon_HarmonizeUSDTRiskParametersOnAaveV3Markets_20240115                       | 3.402     | 21.174      |
| AaveV3Polygon_IncreaseStablecoinOptimalBorrowRates_20231113                             | 4.416     | 20.16       |
| AaveV3Polygon_IncreaseSupplyAndBorrowCapsAt100UtilizationDecember2023_20231205          | 3.333     | 21.243      |
| AaveV3Polygon_MAIMIMATICDeprecation20231031_20231031                                    | 4.226     | 20.35       |
| AaveV3Polygon_OnboardNativeUSDCToAaveV3Markets_20231205                                 | 6.129     | 18.447      |
| AaveV3Polygon_Patch_20240104                                                            | 0.52      | 24.056      |
| AaveV3Polygon_StablecoinIRCurvesUpdates_20231221                                        | 4.416     | 20.16       |
| AaveV3Polygon_TreasuryManagementGSMFundingRWAStrategyPreparationsPart1_20231229         | 3.459     | 21.117      |
| AaveV3Polygon_WMATICInterestRateUpdate_20231112                                         | 3.662     | 20.914      |
| AaveV3Scroll                                                                            | 0.086     | 24.49       |
| AaveV3ScrollAssets                                                                      | 0.086     | 24.49       |
| AaveV3ScrollEModes                                                                      | 0.086     | 24.49       |
| AaveV3Scroll_AaveV3ScrollActivation_20240122                                            | 6.641     | 17.935      |
| Address                                                                                 | 0.086     | 24.49       |
| AddressesToMigrate                                                                      | 0.086     | 24.49       |
| CertoraProposalDeployer                                                                 | 0.086     | 24.49       |
| ChainHelpers                                                                            | 0.086     | 24.49       |
| ChainIds                                                                                | 0.086     | 24.49       |
| ConfiguratorInputTypes                                                                  | 0.086     | 24.49       |
| Create2Utils                                                                            | 0.164     | 24.412      |
| DataTypes                                                                               | 0.086     | 24.49       |
| DeploymentHelper                                                                        | 0.086     | 24.49       |
| EngineFlags                                                                             | 0.086     | 24.49       |
| EnumerableSet                                                                           | 0.086     | 24.49       |
| EnvelopeUtils                                                                           | 0.086     | 24.49       |
| Errors                                                                                  | 4.714     | 19.862      |
| Gho_GHOStabilityModule_20240119                                                         | 4.535     | 20.041      |
| GovHelpers                                                                              | 0.086     | 24.49       |
| GovV3Helpers                                                                            | 2.622     | 21.954      |
| GovV3StorageHelpers                                                                     | 0.086     | 24.49       |
| GovernanceV3Arbitrum                                                                    | 0.086     | 24.49       |
| GovernanceV3Avalanche                                                                   | 0.086     | 24.49       |
| GovernanceV3BNB                                                                         | 0.086     | 24.49       |
| GovernanceV3Base                                                                        | 0.086     | 24.49       |
| GovernanceV3Ethereum                                                                    | 0.086     | 24.49       |
| GovernanceV3Gnosis                                                                      | 0.086     | 24.49       |
| GovernanceV3Metis                                                                       | 0.086     | 24.49       |
| GovernanceV3Optimism                                                                    | 0.086     | 24.49       |
| GovernanceV3Polygon                                                                     | 0.086     | 24.49       |
| GovernanceV3PolygonZkEvm                                                                | 0.086     | 24.49       |
| GovernanceV3Scroll                                                                      | 0.086     | 24.49       |
| HelperStructs                                                                           | 0.086     | 24.49       |
| IpfsUtils                                                                               | 0.086     | 24.49       |
| MainnetPayload                                                                          | 2.624     | 21.952      |
| MiscBNB                                                                                 | 0.086     | 24.49       |
| MiscEthereum                                                                            | 0.086     | 24.49       |
| MiscPolygon                                                                             | 0.086     | 24.49       |
| MiscScroll                                                                              | 0.086     | 24.49       |
| MockERC20                                                                               | 3.687     | 20.889      |
| MockERC721                                                                              | 3.825     | 20.751      |
| MockExecutor                                                                            | 0.437     | 24.139      |
| ParaswapClaim                                                                           | 0.063     | 24.513      |
| ParaswapClaimer                                                                         | 0.2       | 24.376      |
| PayloadsControllerUtils                                                                 | 0.086     | 24.49       |
| PayloadsToDeploy                                                                        | 0.086     | 24.49       |
| PolygonPayload                                                                          | 1.634     | 22.942      |
| PoolAddresses                                                                           | 0.357     | 24.219      |
| ProxyHelpers                                                                            | 0.086     | 24.49       |
| ReserveConfiguration                                                                    | 0.171     | 24.405      |
| SafeERC20                                                                               | 0.086     | 24.49       |
| StdStyle                                                                                | 0.086     | 24.49       |
| StorageHelpers                                                                          | 0.086     | 24.49       |
| TransactionUtils                                                                        | 0.086     | 24.49       |
| WadRayMath                                                                              | 0.086     | 24.49       |
| console                                                                                 | 0.086     | 24.49       |
| console2                                                                                | 0.086     | 24.49       |
| mock_proposal                                                                           | 3.653     | 20.923      |
| safeconsole                                                                             | 0.086     | 24.49       |
| stdError                                                                                | 0.591     | 23.985      |
| stdJson                                                                                 | 0.086     | 24.49       |
| stdMath                                                                                 | 0.086     | 24.49       |
| stdStorage                                                                              | 0.086     | 24.49       |
| stdStorageSafe                                                                          | 0.086     | 24.49       |
Test success 🌈
No files changed, compilation skipped

Running 5 tests for src/20240122_AaveV3Scroll_AaveV3ScrollActivation/AaveV3Scroll_AaveV3ScrollActivation_20240122.t.sol:AaveV3Scroll_AaveV3ScrollActivation_20240122_Test
[PASS] test_AdminPermissions() (gas: 9627211)
[PASS] test_SeedUSDCFunds() (gas: 9637244)
[PASS] test_SeedWETHFunds() (gas: 9637323)
[PASS] test_SeedwstETHFunds() (gas: 9637201)
[PASS] test_defaultProposalExecution_scroll() (gas: 13236877)
Logs:
  0x5300000000000000000000000000000000000004
  0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4
  0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32
  E2E: Collateral WETH, TestAsset WETH
  SUPPLY: WETH, Amount: 42028108398897182435
  SUPPLY: WETH, Amount: 420281083988971824
  WITHDRAW: WETH, Amount: 210140541994485912
  WITHDRAW: WETH, Amount: 210140541994485912
  BORROW: WETH, Amount 420281083988971824, Stable: false
  REPAY: WETH, Amount: 420281083988971824
  E2E: Collateral WETH, TestAsset USDC
  SUPPLY: WETH, Amount: 42028108398897182435
  SUPPLY: USDC, Amount: 999891471
  WITHDRAW: USDC, Amount: 499945735
  WITHDRAW: USDC, Amount: 499945736
  BORROW: USDC, Amount 999891471, Stable: false
  REPAY: USDC, Amount: 999891471
  E2E: Collateral WETH, TestAsset wstETH
  SUPPLY: WETH, Amount: 42028108398897182435
  SUPPLY: wstETH, Amount: 364047266893484258
  WITHDRAW: wstETH, Amount: 182023633446742129
  WITHDRAW: wstETH, Amount: 182023633446742129
  BORROW: wstETH, Amount 364047266893484258, Stable: false
  REPAY: wstETH, Amount: 364047266893484258

Test result: ok. 5 passed; 0 failed; 0 skipped; finished in 24.93s
 
Ran 1 test suites: 5 tests passed, 0 failed, 0 skipped (5 total tests)

Please sign in to comment.