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

[Aavechan] ezeth on arbitrum and base #561

Merged
merged 23 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
387bb89
feat: onboard ezETH on Arbitrum and Base
Rozengarden Dec 21, 2024
9822559
fix: oracle address
Rozengarden Jan 2, 2025
6f6f5fa
update block height
Rozengarden Jan 6, 2025
b3b9c5c
Merge branch 'bgd-labs:main' into avechan/ezeth_arbase
Rozengarden Jan 6, 2025
dec7476
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
Rozengarden Jan 7, 2025
f140da4
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
Rozengarden Jan 7, 2025
859f34c
Improve & fix AIP description
Rozengarden Jan 7, 2025
cbaf694
New CL Risk Param
Rozengarden Jan 8, 2025
bdaf9ea
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
marczeller Jan 9, 2025
746dfdb
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
marczeller Jan 9, 2025
b088095
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
marczeller Jan 9, 2025
7d3aa3b
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
marczeller Jan 9, 2025
d02ee46
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
marczeller Jan 9, 2025
a8fb7ff
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Onbo…
marczeller Jan 9, 2025
365e188
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Onbo…
marczeller Jan 9, 2025
1626b5f
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
marczeller Jan 9, 2025
11ad001
Merge branch 'main' of https://github.com/bgd-labs/aave-proposals-v3 …
Jan 9, 2025
1525133
merge main fix tests
Jan 9, 2025
2124afb
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
Rozengarden Jan 10, 2025
b1084d7
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
Rozengarden Jan 10, 2025
50134f4
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
Rozengarden Jan 10, 2025
4867142
Update src/20241221_Multi_OnboardEzETHToArbitrumAndBaseInstances/Aave…
Rozengarden Jan 10, 2025
04b3232
update snapshot tests
Rozengarden Jan 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
## Reserve changes

### Reserves added

#### ezETH ([0x2416092f143378750bb29b79eD961ab195CcEea5](https://arbiscan.io/address/0x2416092f143378750bb29b79eD961ab195CcEea5))

| description | value |
| --- | --- |
| decimals | 18 |
| isActive | true |
| isFrozen | false |
| supplyCap | 1,750 ezETH |
| borrowCap | 1 ezETH |
| debtCeiling | 0 $ [0] |
| isSiloed | false |
| isFlashloanable | true |
| oracle | [0x8Ed37B72300683c0482A595bfa80fFb793874b15](https://arbiscan.io/address/0x8Ed37B72300683c0482A595bfa80fFb793874b15) |
| oracleDecimals | 8 |
| oracleDescription | Capped ezETH / ETH / USD |
| oracleLatestAnswer | 3787.98660028 |
| usageAsCollateralEnabled | true |
| ltv | 0.05 % [5] |
| liquidationThreshold | 0.1 % [10] |
| liquidationBonus | 7.5 % |
| liquidationProtocolFee | 10 % [1000] |
| reserveFactor | 15 % [1500] |
| aToken | [0xEA1132120ddcDDA2F119e99Fa7A27a0d036F7Ac9](https://arbiscan.io/address/0xEA1132120ddcDDA2F119e99Fa7A27a0d036F7Ac9) |
| aTokenImpl | [0x1Be1798b70aEe431c2986f7ff48d9D1fa350786a](https://arbiscan.io/address/0x1Be1798b70aEe431c2986f7ff48d9D1fa350786a) |
| variableDebtToken | [0x1fFD28689DA7d0148ff0fCB669e9f9f0Fc13a219](https://arbiscan.io/address/0x1fFD28689DA7d0148ff0fCB669e9f9f0Fc13a219) |
| variableDebtTokenImpl | [0x5E76E98E0963EcDC6A065d1435F84065b7523f39](https://arbiscan.io/address/0x5E76E98E0963EcDC6A065d1435F84065b7523f39) |
| borrowingEnabled | false |
| isBorrowableInIsolation | false |
| interestRateStrategy | [0x429F16dBA3B9e1900087Cbaa7b50D38Bc60fB73F](https://arbiscan.io/address/0x429F16dBA3B9e1900087Cbaa7b50D38Bc60fB73F) |
| aTokenName | Aave Arbitrum ezETH |
| aTokenSymbol | aArbezETH |
| aTokenUnderlyingBalance | 0.03 ezETH [30000000000000000] |
| id | 17 |
| isPaused | false |
| variableDebtTokenName | Aave Arbitrum Variable Debt ezETH |
| variableDebtTokenSymbol | variableDebtArbezETH |
| virtualAccountingActive | true |
| virtualBalance | 0.03 ezETH [30000000000000000] |
| optimalUsageRatio | 45 % |
| maxVariableBorrowRate | 307 % |
| baseVariableBorrowRate | 0 % |
| variableRateSlope1 | 7 % |
| variableRateSlope2 | 300 % |
| interestRate | ![ir](https://dash.onaave.com/api/static?variableRateSlope1=70000000000000000000000000&variableRateSlope2=3000000000000000000000000000&optimalUsageRatio=450000000000000000000000000&baseVariableBorrowRate=0&maxVariableBorrowRate=3070000000000000000000000000) |


## Emodes changed

### EMode: Stablecoins(id: 1)



### EMode: ETH correlated(id: 2)



### EMode: ezETH wstETH(id: 3)

| description | value before | value after |
| --- | --- | --- |
| eMode.label | - | ezETH wstETH |
| eMode.ltv | - | 93 % |
| eMode.liquidationThreshold | - | 95 % |
| eMode.liquidationBonus | - | 1 % |
| eMode.borrowableBitmap | - | wstETH |
| eMode.collateralBitmap | - | ezETH |


### EMode: ezETH Stablecoins(id: 4)

| description | value before | value after |
| --- | --- | --- |
| eMode.label | - | ezETH Stablecoins |
| eMode.ltv | - | 72 % |
| eMode.liquidationThreshold | - | 75 % |
| eMode.liquidationBonus | - | 7.5 % |
| eMode.borrowableBitmap | - | USDT, USDC |
| eMode.collateralBitmap | - | ezETH |


## Raw diff

```json
{
"eModes": {
"3": {
"from": null,
"to": {
"borrowableBitmap": "256",
"collateralBitmap": "131072",
"eModeCategory": 3,
"label": "ezETH wstETH",
"liquidationBonus": 10100,
"liquidationThreshold": 9500,
"ltv": 9300
}
},
"4": {
"from": null,
"to": {
"borrowableBitmap": "4128",
"collateralBitmap": "131072",
"eModeCategory": 4,
"label": "ezETH Stablecoins",
"liquidationBonus": 10750,
"liquidationThreshold": 7500,
"ltv": 7200
}
}
},
"reserves": {
"0x2416092f143378750bb29b79eD961ab195CcEea5": {
"from": null,
"to": {
"aToken": "0xEA1132120ddcDDA2F119e99Fa7A27a0d036F7Ac9",
"aTokenImpl": "0x1Be1798b70aEe431c2986f7ff48d9D1fa350786a",
"aTokenName": "Aave Arbitrum ezETH",
"aTokenSymbol": "aArbezETH",
"aTokenUnderlyingBalance": "30000000000000000",
"borrowCap": 1,
"borrowingEnabled": false,
"debtCeiling": 0,
"decimals": 18,
"id": 17,
"interestRateStrategy": "0x429F16dBA3B9e1900087Cbaa7b50D38Bc60fB73F",
"isActive": true,
"isBorrowableInIsolation": false,
"isFlashloanable": true,
"isFrozen": false,
"isPaused": false,
"isSiloed": false,
"liquidationBonus": 10750,
"liquidationProtocolFee": 1000,
"liquidationThreshold": 10,
"ltv": 5,
"oracle": "0x8Ed37B72300683c0482A595bfa80fFb793874b15",
"oracleDecimals": 8,
"oracleDescription": "Capped ezETH / ETH / USD",
"oracleLatestAnswer": "378798660028",
"reserveFactor": 1500,
"supplyCap": 1750,
"symbol": "ezETH",
"underlying": "0x2416092f143378750bb29b79eD961ab195CcEea5",
"usageAsCollateralEnabled": true,
"variableDebtToken": "0x1fFD28689DA7d0148ff0fCB669e9f9f0Fc13a219",
"variableDebtTokenImpl": "0x5E76E98E0963EcDC6A065d1435F84065b7523f39",
"variableDebtTokenName": "Aave Arbitrum Variable Debt ezETH",
"variableDebtTokenSymbol": "variableDebtArbezETH",
"virtualAccountingActive": true,
"virtualBalance": "30000000000000000"
}
}
},
"strategies": {
"0x2416092f143378750bb29b79eD961ab195CcEea5": {
"from": null,
"to": {
"address": "0x429F16dBA3B9e1900087Cbaa7b50D38Bc60fB73F",
"baseVariableBorrowRate": "0",
"maxVariableBorrowRate": "3070000000000000000000000000",
"optimalUsageRatio": "450000000000000000000000000",
"variableRateSlope1": "70000000000000000000000000",
"variableRateSlope2": "3000000000000000000000000000"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
## Reserve changes

### Reserves added

#### ezETH ([0x2416092f143378750bb29b79eD961ab195CcEea5](https://basescan.org/address/0x2416092f143378750bb29b79eD961ab195CcEea5))

| description | value |
| --- | --- |
| decimals | 18 |
| isActive | true |
| isFrozen | false |
| supplyCap | 1,200 ezETH |
| borrowCap | 1 ezETH |
| debtCeiling | 0 $ [0] |
| isSiloed | false |
| isFlashloanable | true |
| oracle | [0x438e24f5FCDC1A66ecb25D19B5543e0Cb91A44D4](https://basescan.org/address/0x438e24f5FCDC1A66ecb25D19B5543e0Cb91A44D4) |
| oracleDecimals | 8 |
| oracleDescription | Capped ezETH / ETH / USD |
| oracleLatestAnswer | 3785.26748692 |
| usageAsCollateralEnabled | true |
| ltv | 0.05 % [5] |
| liquidationThreshold | 0.1 % [10] |
| liquidationBonus | 7.5 % |
| liquidationProtocolFee | 10 % [1000] |
| reserveFactor | 15 % [1500] |
| aToken | [0xDD5745756C2de109183c6B5bB886F9207bEF114D](https://basescan.org/address/0xDD5745756C2de109183c6B5bB886F9207bEF114D) |
| aTokenImpl | [0x98F409Fc4A42F34AE3c326c7f48ED01ae8cAeC69](https://basescan.org/address/0x98F409Fc4A42F34AE3c326c7f48ED01ae8cAeC69) |
| variableDebtToken | [0xbc4f5631f2843488792e4F1660d0A51Ba489bdBd](https://basescan.org/address/0xbc4f5631f2843488792e4F1660d0A51Ba489bdBd) |
| variableDebtTokenImpl | [0x2425A746911128c2eAA7bEBDc9Bc452eE52208a1](https://basescan.org/address/0x2425A746911128c2eAA7bEBDc9Bc452eE52208a1) |
| borrowingEnabled | false |
| isBorrowableInIsolation | false |
| interestRateStrategy | [0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5](https://basescan.org/address/0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5) |
| aTokenName | Aave Base ezETH |
| aTokenSymbol | aBasezETH |
| aTokenUnderlyingBalance | 0.03 ezETH [30000000000000000] |
| id | 7 |
| isPaused | false |
| variableDebtTokenName | Aave Base Variable Debt ezETH |
| variableDebtTokenSymbol | variableDebtBasezETH |
| virtualAccountingActive | true |
| virtualBalance | 0.03 ezETH [30000000000000000] |
| optimalUsageRatio | 45 % |
| maxVariableBorrowRate | 307 % |
| baseVariableBorrowRate | 0 % |
| variableRateSlope1 | 7 % |
| variableRateSlope2 | 300 % |
| interestRate | ![ir](https://dash.onaave.com/api/static?variableRateSlope1=70000000000000000000000000&variableRateSlope2=3000000000000000000000000000&optimalUsageRatio=450000000000000000000000000&baseVariableBorrowRate=0&maxVariableBorrowRate=3070000000000000000000000000) |


## Emodes changed

### EMode: ETH correlated(id: 1)



### EMode: ezETH wstETH(id: 2)

| description | value before | value after |
| --- | --- | --- |
| eMode.label | - | ezETH wstETH |
| eMode.ltv | - | 93 % |
| eMode.liquidationThreshold | - | 95 % |
| eMode.liquidationBonus | - | 1 % |
| eMode.borrowableBitmap | - | wstETH |
| eMode.collateralBitmap | - | ezETH |


### EMode: ezETH Stablecoins(id: 3)

| description | value before | value after |
| --- | --- | --- |
| eMode.label | - | ezETH Stablecoins |
| eMode.ltv | - | 72 % |
| eMode.liquidationThreshold | - | 75 % |
| eMode.liquidationBonus | - | 7.5 % |
| eMode.borrowableBitmap | - | USDC |
| eMode.collateralBitmap | - | ezETH |


## Raw diff

```json
{
"eModes": {
"2": {
"from": null,
"to": {
"borrowableBitmap": "8",
"collateralBitmap": "128",
"eModeCategory": 2,
"label": "ezETH wstETH",
"liquidationBonus": 10100,
"liquidationThreshold": 9500,
"ltv": 9300
}
},
"3": {
"from": null,
"to": {
"borrowableBitmap": "16",
"collateralBitmap": "128",
"eModeCategory": 3,
"label": "ezETH Stablecoins",
"liquidationBonus": 10750,
"liquidationThreshold": 7500,
"ltv": 7200
}
}
},
"reserves": {
"0x2416092f143378750bb29b79eD961ab195CcEea5": {
"from": null,
"to": {
"aToken": "0xDD5745756C2de109183c6B5bB886F9207bEF114D",
"aTokenImpl": "0x98F409Fc4A42F34AE3c326c7f48ED01ae8cAeC69",
"aTokenName": "Aave Base ezETH",
"aTokenSymbol": "aBasezETH",
"aTokenUnderlyingBalance": "30000000000000000",
"borrowCap": 1,
"borrowingEnabled": false,
"debtCeiling": 0,
"decimals": 18,
"id": 7,
"interestRateStrategy": "0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5",
"isActive": true,
"isBorrowableInIsolation": false,
"isFlashloanable": true,
"isFrozen": false,
"isPaused": false,
"isSiloed": false,
"liquidationBonus": 10750,
"liquidationProtocolFee": 1000,
"liquidationThreshold": 10,
"ltv": 5,
"oracle": "0x438e24f5FCDC1A66ecb25D19B5543e0Cb91A44D4",
"oracleDecimals": 8,
"oracleDescription": "Capped ezETH / ETH / USD",
"oracleLatestAnswer": "378526748692",
"reserveFactor": 1500,
"supplyCap": 1200,
"symbol": "ezETH",
"underlying": "0x2416092f143378750bb29b79eD961ab195CcEea5",
"usageAsCollateralEnabled": true,
"variableDebtToken": "0xbc4f5631f2843488792e4F1660d0A51Ba489bdBd",
"variableDebtTokenImpl": "0x2425A746911128c2eAA7bEBDc9Bc452eE52208a1",
"variableDebtTokenName": "Aave Base Variable Debt ezETH",
"variableDebtTokenSymbol": "variableDebtBasezETH",
"virtualAccountingActive": true,
"virtualBalance": "30000000000000000"
}
}
},
"strategies": {
"0x2416092f143378750bb29b79eD961ab195CcEea5": {
"from": null,
"to": {
"address": "0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5",
"baseVariableBorrowRate": "0",
"maxVariableBorrowRate": "3070000000000000000000000000",
"optimalUsageRatio": "450000000000000000000000000",
"variableRateSlope1": "70000000000000000000000000",
"variableRateSlope2": "3000000000000000000000000000"
}
}
}
}
```
Loading