Skip to content

Commit

Permalink
fix: update sDAI feeds and update test to latest block
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite committed Dec 16, 2024
1 parent 80cf108 commit 41dc8f6
Show file tree
Hide file tree
Showing 35 changed files with 39 additions and 238 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,6 @@
| oracle | [0xDe25a88F87FEd9F8999fAbF6729dCB121893623C](https://arbiscan.io/address/0xDe25a88F87FEd9F8999fAbF6729dCB121893623C) | [0x6200A5122Af8D5D9e69f4d526311Cd85241ACeC9](https://arbiscan.io/address/0x6200A5122Af8D5D9e69f4d526311Cd85241ACeC9) |


## Emodes changed

### EMode: Stablecoins(id: 1)

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | Stablecoins | Stablecoins |
| eMode.ltv (unchanged) | 93 % | 93 % |
| eMode.liquidationThreshold (unchanged) | 95 % | 95 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | DAI, USDC, USDT, EURS, USDC | DAI, USDC, USDT, EURS, USDC |
| eMode.collateralBitmap (unchanged) | DAI, USDC, USDT, EURS, USDC | DAI, USDC, USDT, EURS, USDC |


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

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | ETH correlated | ETH correlated |
| eMode.ltv (unchanged) | 93 % | 93 % |
| eMode.liquidationThreshold (unchanged) | 95 % | 95 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | WETH, wstETH, weETH | WETH, wstETH, weETH |
| eMode.collateralBitmap (unchanged) | WETH, wstETH, weETH | WETH, wstETH, weETH |


## Raw diff

```json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,6 @@
| oracle | [0xf82da795727633aFA9BB0f1B08A87c0F6A38723f](https://snowtrace.io/address/0xf82da795727633aFA9BB0f1B08A87c0F6A38723f) | [0x0b47c51CCD4FaDe1D93C750bFCAB0a5ce8734ED0](https://snowtrace.io/address/0x0b47c51CCD4FaDe1D93C750bFCAB0a5ce8734ED0) |


## Emodes changed

### EMode: Stablecoins(id: 1)

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | Stablecoins | Stablecoins |
| eMode.ltv (unchanged) | 93 % | 93 % |
| eMode.liquidationThreshold (unchanged) | 95 % | 95 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | DAI.e, USDC, USDt, FRAX, MAI | DAI.e, USDC, USDt, FRAX, MAI |
| eMode.collateralBitmap (unchanged) | DAI.e, USDC, USDt, FRAX, MAI | DAI.e, USDC, USDt, FRAX, MAI |


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

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | AVAX correlated | AVAX correlated |
| eMode.ltv (unchanged) | 93 % | 93 % |
| eMode.liquidationThreshold (unchanged) | 95 % | 95 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | WAVAX, sAVAX | WAVAX, sAVAX |
| eMode.collateralBitmap (unchanged) | WAVAX, sAVAX | WAVAX, sAVAX |


## Raw diff

```json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@
| oracle | [0x978D8878b53Fbe40dab7D4AB47b97AB622FFeF9f](https://basescan.org/address/0x978D8878b53Fbe40dab7D4AB47b97AB622FFeF9f) | [0xfcF82bFa2485253263969167583Ea4de09e9993b](https://basescan.org/address/0xfcF82bFa2485253263969167583Ea4de09e9993b) |


## Emodes changed

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

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | ETH correlated | ETH correlated |
| eMode.ltv (unchanged) | 90 % | 90 % |
| eMode.liquidationThreshold (unchanged) | 93 % | 93 % |
| eMode.liquidationBonus (unchanged) | 2 % | 2 % |
| eMode.borrowableBitmap (unchanged) | WETH, cbETH, wstETH, weETH | WETH, cbETH, wstETH, weETH |
| eMode.collateralBitmap (unchanged) | WETH, cbETH, wstETH, weETH | WETH, cbETH, wstETH, weETH |


## Raw diff

```json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
| --- | --- | --- |
| oracle | [0x4F01b76391A05d32B20FA2d05dD5963eE8db20E6](https://etherscan.io/address/0x4F01b76391A05d32B20FA2d05dD5963eE8db20E6) | [0x94C7FD62fd0506e71d8142E9D36687fC72A86B02](https://etherscan.io/address/0x94C7FD62fd0506e71d8142E9D36687fC72A86B02) |
| oracleDescription | Capped USDS <-> DAI / USD | Capped USDS/USD |
| oracleLatestAnswer | 0.99978249 | 0.99870375 |
| oracleLatestAnswer | 1.00002917 | 0.99804349 |


## Raw diff
Expand All @@ -39,8 +39,8 @@
"to": "Capped USDS/USD"
},
"oracleLatestAnswer": {
"from": "99978249",
"to": "99870375"
"from": "100002917",
"to": "99804349"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

| description | value before | value after |
| --- | --- | --- |
| oracle | [0x29081f7aB5a644716EfcDC10D5c926c5fEe9F72B](https://etherscan.io/address/0x29081f7aB5a644716EfcDC10D5c926c5fEe9F72B) | [0xE94Fe9f83CB113d3e95941fa5eAa49bFaBF340C7](https://etherscan.io/address/0xE94Fe9f83CB113d3e95941fa5eAa49bFaBF340C7) |
| oracle | [0x29081f7aB5a644716EfcDC10D5c926c5fEe9F72B](https://etherscan.io/address/0x29081f7aB5a644716EfcDC10D5c926c5fEe9F72B) | [0xf14f501863F5db3A6D5b7e37af24e2Ca25d7Aea8](https://etherscan.io/address/0xf14f501863F5db3A6D5b7e37af24e2Ca25d7Aea8) |
| oracleDescription | sDAI/DAI/USD | Capped sDAI / DAI / USD |


Expand Down Expand Up @@ -58,7 +58,7 @@
| --- | --- | --- |
| oracle | [0x4F01b76391A05d32B20FA2d05dD5963eE8db20E6](https://etherscan.io/address/0x4F01b76391A05d32B20FA2d05dD5963eE8db20E6) | [0x94C7FD62fd0506e71d8142E9D36687fC72A86B02](https://etherscan.io/address/0x94C7FD62fd0506e71d8142E9D36687fC72A86B02) |
| oracleDescription | Capped USDS <-> DAI / USD | Capped USDS/USD |
| oracleLatestAnswer | 0.99978249 | 0.99870375 |
| oracleLatestAnswer | 1.00002917 | 0.99804349 |


#### crvUSD ([0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E](https://etherscan.io/address/0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E))
Expand Down Expand Up @@ -94,7 +94,7 @@
"0x83F20F44975D03b1b09e64809B757c47f942BEeA": {
"oracle": {
"from": "0x29081f7aB5a644716EfcDC10D5c926c5fEe9F72B",
"to": "0xE94Fe9f83CB113d3e95941fa5eAa49bFaBF340C7"
"to": "0xf14f501863F5db3A6D5b7e37af24e2Ca25d7Aea8"
},
"oracleDescription": {
"from": "sDAI/DAI/USD",
Expand Down Expand Up @@ -129,8 +129,8 @@
"to": "Capped USDS/USD"
},
"oracleLatestAnswer": {
"from": "99978249",
"to": "99870375"
"from": "100002917",
"to": "99804349"
}
},
"0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

| description | value before | value after |
| --- | --- | --- |
| oracle | [0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2](https://gnosisscan.io/address/0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2) | [0x8815266eBc328A9cB571177fa4Dc3588bA330a89](https://gnosisscan.io/address/0x8815266eBc328A9cB571177fa4Dc3588bA330a89) |
| oracle | [0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2](https://gnosisscan.io/address/0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2) | [0x38fe17BA2dfF456C6c980dD2227B0abA89FCB105](https://gnosisscan.io/address/0x38fe17BA2dfF456C6c980dD2227B0abA89FCB105) |
| oracleDescription | sDAI/DAI/USD | Capped sDAI / DAI / USD |


Expand All @@ -31,20 +31,6 @@
| oracle | [0xE5269eF0CE04E509E8134624c7BF043b21e10897](https://gnosisscan.io/address/0xE5269eF0CE04E509E8134624c7BF043b21e10897) | [0x7443afE82986d7475Cea0c5b04C6F1581fdAce87](https://gnosisscan.io/address/0x7443afE82986d7475Cea0c5b04C6F1581fdAce87) |


## Emodes changed

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

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | ETH correlated | ETH correlated |
| eMode.ltv (unchanged) | 90 % | 90 % |
| eMode.liquidationThreshold (unchanged) | 93 % | 93 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | WETH, wstETH | WETH, wstETH |
| eMode.collateralBitmap (unchanged) | WETH, wstETH | WETH, wstETH |


## Raw diff

```json
Expand All @@ -65,7 +51,7 @@
"0xaf204776c7245bF4147c2612BF6e5972Ee483701": {
"oracle": {
"from": "0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2",
"to": "0x8815266eBc328A9cB571177fa4Dc3588bA330a89"
"to": "0x38fe17BA2dfF456C6c980dD2227B0abA89FCB105"
},
"oracleDescription": {
"from": "sDAI/DAI/USD",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,6 @@
| oracle | [0xc6ac65E8f4F50a6655Efd78A92b6c503B5B625C8](https://optimistic.etherscan.io/address/0xc6ac65E8f4F50a6655Efd78A92b6c503B5B625C8) | [0x1D85F6eB05f618154ac520D2fDa74C40D21BD93e](https://optimistic.etherscan.io/address/0x1D85F6eB05f618154ac520D2fDa74C40D21BD93e) |


## Emodes changed

### EMode: Stablecoins(id: 1)

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | Stablecoins | Stablecoins |
| eMode.ltv (unchanged) | 90 % | 90 % |
| eMode.liquidationThreshold (unchanged) | 93 % | 93 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | DAI, USDC, USDT, sUSD, USDC | DAI, USDC, USDT, sUSD, USDC |
| eMode.collateralBitmap (unchanged) | DAI, USDC, USDT, sUSD, USDC | DAI, USDC, USDT, sUSD, USDC |


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

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | ETH correlated | ETH correlated |
| eMode.ltv (unchanged) | 93 % | 93 % |
| eMode.liquidationThreshold (unchanged) | 95 % | 95 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | WETH, wstETH, rETH | WETH, wstETH, rETH |
| eMode.collateralBitmap (unchanged) | WETH, wstETH, rETH | WETH, wstETH, rETH |


## Raw diff

```json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@

### Reserve altered

#### WPOL ([0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270](https://polygonscan.com/address/0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270))

| description | value before | value after |
| --- | --- | --- |
| aTokenImpl | [0xCf85FF1c37c594a10195F7A9Ab85CBb0a03f69dE](https://polygonscan.com/address/0xCf85FF1c37c594a10195F7A9Ab85CBb0a03f69dE) | [0xd1955bd270093B4983F0a11421B294D5672ea46d](https://polygonscan.com/address/0xd1955bd270093B4983F0a11421B294D5672ea46d) |
| variableDebtTokenImpl | [0x79b5e91037AE441dE0d9e6fd3Fd85b96B83d4E93](https://polygonscan.com/address/0x79b5e91037AE441dE0d9e6fd3Fd85b96B83d4E93) | [0x1996c281235D99bB3c6B8d2afbEb8ac6c7A39C11](https://polygonscan.com/address/0x1996c281235D99bB3c6B8d2afbEb8ac6c7A39C11) |
| aTokenName | Aave Polygon WMATIC | Aave Polygon WPOL |
| aTokenSymbol | aPolWMATIC | aPolWPOL |
| variableDebtTokenName | Aave Polygon Variable Debt WMATIC | Aave Polygon Variable Debt WPOL |
| variableDebtTokenSymbol | variableDebtPolWMATIC | variableDebtPolWPOL |


#### USDC ([0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174](https://polygonscan.com/address/0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174))

| description | value before | value after |
Expand Down Expand Up @@ -49,75 +37,11 @@
| oracle | [0xaA574f4f6E124E77a7a1B5Ed91c8b407000A7730](https://polygonscan.com/address/0xaA574f4f6E124E77a7a1B5Ed91c8b407000A7730) | [0x01Aba1Fe7D72a3490bEef7CD0C09e1Ba2dD88D83](https://polygonscan.com/address/0x01Aba1Fe7D72a3490bEef7CD0C09e1Ba2dD88D83) |


## Emodes changed

### EMode: Stablecoins(id: 1)

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | Stablecoins | Stablecoins |
| eMode.ltv (unchanged) | 93 % | 93 % |
| eMode.liquidationThreshold (unchanged) | 95 % | 95 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | DAI, USDC, USDT, EURS, jEUR, EURA, miMATIC, USDC | DAI, USDC, USDT, EURS, jEUR, EURA, miMATIC, USDC |
| eMode.collateralBitmap (unchanged) | DAI, USDC, USDT, EURS, jEUR, EURA, miMATIC, USDC | DAI, USDC, USDT, EURS, jEUR, EURA, miMATIC, USDC |


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

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | MATIC correlated | MATIC correlated |
| eMode.ltv (unchanged) | 92.5 % | 92.5 % |
| eMode.liquidationThreshold (unchanged) | 95 % | 95 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | WPOL, stMATIC, MaticX | WPOL, stMATIC, MaticX |
| eMode.collateralBitmap (unchanged) | WPOL, stMATIC, MaticX | WPOL, stMATIC, MaticX |


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

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | ETH correlated | ETH correlated |
| eMode.ltv (unchanged) | 90 % | 90 % |
| eMode.liquidationThreshold (unchanged) | 93 % | 93 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | WETH, wstETH | WETH, wstETH |
| eMode.collateralBitmap (unchanged) | WETH, wstETH | WETH, wstETH |


## Raw diff

```json
{
"reserves": {
"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270": {
"aTokenImpl": {
"from": "0xCf85FF1c37c594a10195F7A9Ab85CBb0a03f69dE",
"to": "0xd1955bd270093B4983F0a11421B294D5672ea46d"
},
"aTokenName": {
"from": "Aave Polygon WMATIC",
"to": "Aave Polygon WPOL"
},
"aTokenSymbol": {
"from": "aPolWMATIC",
"to": "aPolWPOL"
},
"variableDebtTokenImpl": {
"from": "0x79b5e91037AE441dE0d9e6fd3Fd85b96B83d4E93",
"to": "0x1996c281235D99bB3c6B8d2afbEb8ac6c7A39C11"
},
"variableDebtTokenName": {
"from": "Aave Polygon Variable Debt WMATIC",
"to": "Aave Polygon Variable Debt WPOL"
},
"variableDebtTokenSymbol": {
"from": "variableDebtPolWMATIC",
"to": "variableDebtPolWPOL"
}
},
"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174": {
"oracle": {
"from": "0x17E33D122FC34c7ad8FBd4a1995Dff9c8aE675eb",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,6 @@
| oracle | [0x427Fd98dbD1DbC2D4e792350caBe7c9665F35bee](https://scrollscan.com/address/0x427Fd98dbD1DbC2D4e792350caBe7c9665F35bee) | [0x1685D81212580DD4cDA287616C2f6F4794927e18](https://scrollscan.com/address/0x1685D81212580DD4cDA287616C2f6F4794927e18) |


## Emodes changed

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

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | ETH correlated | ETH correlated |
| eMode.ltv (unchanged) | 90 % | 90 % |
| eMode.liquidationThreshold (unchanged) | 93 % | 93 % |
| eMode.liquidationBonus (unchanged) | 1 % | 1 % |
| eMode.borrowableBitmap (unchanged) | WETH, wstETH, weETH | WETH, wstETH, weETH |
| eMode.collateralBitmap (unchanged) | WETH, wstETH, weETH | WETH, wstETH, weETH |


## Raw diff

```json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {PriceFeeds} from './Constants.sol';
/**
* @title Update Price Cap Adapters (CAPO)
* @author BGD Labs (@bgdlabs)
* - Discussion: TODO
* - Discussion: https://governance.aave.com/t/technical-maintenance-proposals/15274/55
*/
contract AaveV3Arbitrum_UpdatePriceCapAdaptersCAPO_20241101 is AaveV3PayloadArbitrum {
function priceFeedsUpdates()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract AaveV3Arbitrum_UpdatePriceCapAdaptersCAPO_20241101_Test is
AaveV3Arbitrum_UpdatePriceCapAdaptersCAPO_20241101 internal proposal;

function setUp() public {
vm.createSelectFork(vm.rpcUrl('arbitrum'), 271305655);
vm.createSelectFork(vm.rpcUrl('arbitrum'), 285287812);
proposal = new AaveV3Arbitrum_UpdatePriceCapAdaptersCAPO_20241101();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {PriceFeeds} from './Constants.sol';
/**
* @title Update Price Cap Adapters (CAPO)
* @author BGD Labs (@bgdlabs)
* - Discussion: TODO
* - Discussion: https://governance.aave.com/t/technical-maintenance-proposals/15274/55
*/
contract AaveV3Avalanche_UpdatePriceCapAdaptersCAPO_20241101 is AaveV3PayloadAvalanche {
function _postExecute() internal override {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract AaveV3Avalanche_UpdatePriceCapAdaptersCAPO_20241101_Test is
bool switchToV2Oracle;

function setUp() public {
vm.createSelectFork(vm.rpcUrl('avalanche'), 52687284);
vm.createSelectFork(vm.rpcUrl('avalanche'), 54411933);
proposal = new AaveV3Avalanche_UpdatePriceCapAdaptersCAPO_20241101();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {PriceFeeds} from './Constants.sol';
/**
* @title Update Price Cap Adapters (CAPO)
* @author BGD Labs (@bgdlabs)
* - Discussion: TODO
* - Discussion: https://governance.aave.com/t/technical-maintenance-proposals/15274/55
*/
contract AaveV3BNB_UpdatePriceCapAdaptersCAPO_20241101 is AaveV3PayloadBNB {
function priceFeedsUpdates()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract AaveV3BNB_UpdatePriceCapAdaptersCAPO_20241101_Test is
AaveV3BNB_UpdatePriceCapAdaptersCAPO_20241101 internal proposal;

function setUp() public {
vm.createSelectFork(vm.rpcUrl('bnb'), 43745061);
vm.createSelectFork(vm.rpcUrl('bnb'), 44917997);
proposal = new AaveV3BNB_UpdatePriceCapAdaptersCAPO_20241101();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {PriceFeeds} from './Constants.sol';
/**
* @title Update Price Cap Adapters (CAPO)
* @author BGD Labs (@bgdlabs)
* - Discussion: TODO
* - Discussion: https://governance.aave.com/t/technical-maintenance-proposals/15274/55
*/
contract AaveV3Base_UpdatePriceCapAdaptersCAPO_20241101 is AaveV3PayloadBase {
function priceFeedsUpdates()
Expand Down
Loading

0 comments on commit 41dc8f6

Please sign in to comment.