generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
578d0b0
commit 1264249
Showing
11 changed files
with
989 additions
and
121 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
370 changes: 370 additions & 0 deletions
370
...ctivation_20240122_before_AaveV3Scroll_AaveV3ScrollActivation_20240122_after.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
``` |
Oops, something went wrong.
1264249
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foundry report
Build log
Test success 🌈