This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Add v2 deprecation AIP #329
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
258 changes: 258 additions & 0 deletions
258
diffs/preTestEthereumUpdate20231009_postTestEthereumUpdate20231009.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,258 @@ | ||
## Reserve changes | ||
|
||
### Reserve altered | ||
|
||
#### BAT ([0x0D8775F648430679A709E98d2b0Cb6250d2887EF](https://etherscan.io/address/0x0D8775F648430679A709E98d2b0Cb6250d2887EF)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 40 % | 1 % | | ||
|
||
|
||
#### MANA ([0x0F5D2fB29fb7d3CFeE444a200298f468908cC942](https://etherscan.io/address/0x0F5D2fB29fb7d3CFeE444a200298f468908cC942)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 54 % | 48 % | | ||
|
||
|
||
#### YFI ([0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e](https://etherscan.io/address/0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 50 % | 45 % | | ||
|
||
|
||
#### 1INCH ([0x111111111117dC0aa78b770fA6A738034120C302](https://etherscan.io/address/0x111111111117dC0aa78b770fA6A738034120C302)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 30 % | 0 % | | ||
| liquidationThreshold | 40 % | 24 % | | ||
|
||
|
||
#### DPI ([0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b](https://etherscan.io/address/0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 42 % | 16 % | | ||
|
||
|
||
#### UNI ([0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984](https://etherscan.io/address/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 58 % | 0 % | | ||
|
||
|
||
#### REN ([0x408e41876cCCDC0F92210600ef50372656052a38](https://etherscan.io/address/0x408e41876cCCDC0F92210600ef50372656052a38)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 32 % | 27 % | | ||
|
||
|
||
#### CVX ([0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B](https://etherscan.io/address/0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 35 % | 33 % | | ||
|
||
|
||
#### LINK ([0x514910771AF9Ca656af840dff83E8264EcF986CA](https://etherscan.io/address/0x514910771AF9Ca656af840dff83E8264EcF986CA)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 70 % | 0 % | | ||
| liquidationThreshold | 83 % | 82 % | | ||
|
||
|
||
#### xSUSHI ([0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272](https://etherscan.io/address/0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 57 % | 28 % | | ||
|
||
|
||
#### MKR ([0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2](https://etherscan.io/address/0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 45 % | 0 % | | ||
| liquidationThreshold | 50 % | 35 % | | ||
|
||
|
||
#### SNX ([0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F](https://etherscan.io/address/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 36 % | 0 % | | ||
| liquidationThreshold | 49 % | 43 % | | ||
|
||
|
||
#### ENS ([0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72](https://etherscan.io/address/0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 42 % | 0 % | | ||
| liquidationThreshold | 52 % | 50 % | | ||
|
||
|
||
#### CRV ([0xD533a949740bb3306d119CC777fa900bA034cd52](https://etherscan.io/address/0xD533a949740bb3306d119CC777fa900bA034cd52)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 45 % | 42 % | | ||
|
||
|
||
#### ZRX ([0xE41d2489571d322189246DaFA5ebDe1F4699F498](https://etherscan.io/address/0xE41d2489571d322189246DaFA5ebDe1F4699F498)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 42 % | 37 % | | ||
|
||
|
||
#### ENJ ([0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c](https://etherscan.io/address/0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 52 % | 50 % | | ||
|
||
|
||
#### BAL ([0xba100000625a3754423978a60c9317c58a424e3D](https://etherscan.io/address/0xba100000625a3754423978a60c9317c58a424e3D)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 35 % | 25 % | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x0D8775F648430679A709E98d2b0Cb6250d2887EF": { | ||
"liquidationThreshold": { | ||
"from": 4000, | ||
"to": 100 | ||
} | ||
}, | ||
"0x0F5D2fB29fb7d3CFeE444a200298f468908cC942": { | ||
"liquidationThreshold": { | ||
"from": 5400, | ||
"to": 4800 | ||
} | ||
}, | ||
"0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e": { | ||
"liquidationThreshold": { | ||
"from": 5000, | ||
"to": 4500 | ||
} | ||
}, | ||
"0x111111111117dC0aa78b770fA6A738034120C302": { | ||
"liquidationThreshold": { | ||
"from": 4000, | ||
"to": 2400 | ||
}, | ||
"ltv": { | ||
"from": 3000, | ||
"to": 0 | ||
} | ||
}, | ||
"0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b": { | ||
"liquidationThreshold": { | ||
"from": 4200, | ||
"to": 1600 | ||
} | ||
}, | ||
"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984": { | ||
"ltv": { | ||
"from": 5800, | ||
"to": 0 | ||
} | ||
}, | ||
"0x408e41876cCCDC0F92210600ef50372656052a38": { | ||
"liquidationThreshold": { | ||
"from": 3200, | ||
"to": 2700 | ||
} | ||
}, | ||
"0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B": { | ||
"liquidationThreshold": { | ||
"from": 3500, | ||
"to": 3300 | ||
} | ||
}, | ||
"0x514910771AF9Ca656af840dff83E8264EcF986CA": { | ||
"liquidationThreshold": { | ||
"from": 8300, | ||
"to": 8200 | ||
}, | ||
"ltv": { | ||
"from": 7000, | ||
"to": 0 | ||
} | ||
}, | ||
"0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272": { | ||
"liquidationThreshold": { | ||
"from": 5700, | ||
"to": 2800 | ||
} | ||
}, | ||
"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2": { | ||
"liquidationThreshold": { | ||
"from": 5000, | ||
"to": 3500 | ||
}, | ||
"ltv": { | ||
"from": 4500, | ||
"to": 0 | ||
} | ||
}, | ||
"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F": { | ||
"liquidationThreshold": { | ||
"from": 4900, | ||
"to": 4300 | ||
}, | ||
"ltv": { | ||
"from": 3600, | ||
"to": 0 | ||
} | ||
}, | ||
"0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72": { | ||
"liquidationThreshold": { | ||
"from": 5200, | ||
"to": 5000 | ||
}, | ||
"ltv": { | ||
"from": 4200, | ||
"to": 0 | ||
} | ||
}, | ||
"0xD533a949740bb3306d119CC777fa900bA034cd52": { | ||
"liquidationThreshold": { | ||
"from": 4500, | ||
"to": 4200 | ||
} | ||
}, | ||
"0xE41d2489571d322189246DaFA5ebDe1F4699F498": { | ||
"liquidationThreshold": { | ||
"from": 4200, | ||
"to": 3700 | ||
} | ||
}, | ||
"0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c": { | ||
"liquidationThreshold": { | ||
"from": 5200, | ||
"to": 5000 | ||
} | ||
}, | ||
"0xba100000625a3754423978a60c9317c58a424e3D": { | ||
"liquidationThreshold": { | ||
"from": 3500, | ||
"to": 2500 | ||
} | ||
} | ||
} | ||
} | ||
``` |
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,134 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {IEngine, EngineFlags} from 'aave-helpers/v2-config-engine/AaveV2PayloadBase.sol'; | ||
import {AaveV2PayloadEthereum} from 'aave-helpers/v2-config-engine/AaveV2PayloadEthereum.sol'; | ||
import {AaveV2Ethereum, AaveV2EthereumAssets} from 'aave-address-book/AaveV2Ethereum.sol'; | ||
|
||
/** | ||
* @title v2 Deprecation Plan, 2023.10.03 | ||
* @author Gauntlet, Chaos Labs | ||
* - Discussion: https://governance.aave.com/t/arfc-v2-ethereum-deprecation-10-03-2023/15040 | ||
*/ | ||
contract AaveV2EthereumUpdate20231009Payload is AaveV2PayloadEthereum { | ||
function _postExecute() internal override { | ||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.ONE_INCH_UNDERLYING, | ||
0, | ||
2400, | ||
10850 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.BAL_UNDERLYING, | ||
0, | ||
2500, | ||
10800 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.BAT_UNDERLYING, | ||
0, | ||
100, | ||
11000 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.CRV_UNDERLYING, | ||
0, | ||
4200, | ||
10800 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.CVX_UNDERLYING, | ||
0, | ||
3300, | ||
10850 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.DPI_UNDERLYING, | ||
0, | ||
1600, | ||
11000 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.ENJ_UNDERLYING, | ||
0, | ||
5000, | ||
11000 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.LINK_UNDERLYING, | ||
0, | ||
8200, | ||
10700 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.MANA_UNDERLYING, | ||
0, | ||
4800, | ||
11000 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.MKR_UNDERLYING, | ||
0, | ||
3500, | ||
10750 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.REN_UNDERLYING, | ||
0, | ||
2700, | ||
11000 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.SNX_UNDERLYING, | ||
0, | ||
4300, | ||
10750 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.YFI_UNDERLYING, | ||
0, | ||
4500, | ||
11000 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.ZRX_UNDERLYING, | ||
0, | ||
3700, | ||
11000 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.xSUSHI_UNDERLYING, | ||
0, | ||
2800, | ||
11000 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.ENS_UNDERLYING, | ||
0, | ||
5000, | ||
10800 | ||
); | ||
|
||
AaveV2Ethereum.POOL_CONFIGURATOR.configureReserveAsCollateral( | ||
AaveV2EthereumAssets.UNI_UNDERLYING, | ||
0, | ||
7000, | ||
10900 | ||
); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
missing lt reduction (post sais 40->24)