Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
marczeller committed Mar 21, 2024
1 parent 6e6a5ad commit 1fd090e
Show file tree
Hide file tree
Showing 16 changed files with 92 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

### Reserve altered

#### WBTC.e ([0x50b7545627a5162F82A992c33b87aDc75187B218](https://snowtrace.io/address/0x50b7545627a5162F82A992c33b87aDc75187B218))
#### WBTC.e ([0x50b7545627a5162F82A992c33b87aDc75187B218](https://snowscan.xyz/address/0x50b7545627a5162F82A992c33b87aDc75187B218))

| description | value before | value after |
| --- | --- | --- |
| liquidationThreshold | 70 % | 67 % |


#### FRAX ([0xD24C2Ad096400B6FBcd2ad8B24E7acBc21A1da64](https://snowtrace.io/address/0xD24C2Ad096400B6FBcd2ad8B24E7acBc21A1da64))
#### FRAX ([0xD24C2Ad096400B6FBcd2ad8B24E7acBc21A1da64](https://snowscan.xyz/address/0xD24C2Ad096400B6FBcd2ad8B24E7acBc21A1da64))

| description | value before | value after |
| --- | --- | --- |
Expand All @@ -18,7 +18,7 @@
| reserveFactor | 10 % | 20 % |


#### DAI.e ([0xd586E7F844cEa2F87f50152665BCbc2C279D8d70](https://snowtrace.io/address/0xd586E7F844cEa2F87f50152665BCbc2C279D8d70))
#### DAI.e ([0xd586E7F844cEa2F87f50152665BCbc2C279D8d70](https://snowscan.xyz/address/0xd586E7F844cEa2F87f50152665BCbc2C279D8d70))

| description | value before | value after |
| --- | --- | --- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
| description | value before | value after |
| --- | --- | --- |
| isFrozen | false | true |
| ltv | 35 % | 0 % |
| liquidationThreshold | 45 % | 42 % |


Expand Down Expand Up @@ -47,6 +48,7 @@
| description | value before | value after |
| --- | --- | --- |
| isFrozen | false | true |
| ltv | 35 % | 0 % |
| liquidationThreshold | 40 % | 37 % |


Expand All @@ -62,6 +64,7 @@
| description | value before | value after |
| --- | --- | --- |
| isFrozen | false | true |
| ltv | 35 % | 0 % |
| liquidationThreshold | 40 % | 37 % |


Expand All @@ -84,6 +87,10 @@
"liquidationThreshold": {
"from": 4500,
"to": 4200
},
"ltv": {
"from": 3500,
"to": 0
}
},
"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0": {
Expand Down Expand Up @@ -128,6 +135,10 @@
"liquidationThreshold": {
"from": 4000,
"to": 3700
},
"ltv": {
"from": 3500,
"to": 0
}
},
"0xba100000625a3754423978a60c9317c58a424e3D": {
Expand All @@ -144,6 +155,10 @@
"liquidationThreshold": {
"from": 4000,
"to": 3700
},
"ltv": {
"from": 3500,
"to": 0
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
## Reserve changes

### Reserves altered
### Reserve altered

#### EURe ([0xcB444e90D8198415266c6a2724b7900fb12FC56E](https://gnosisscan.io/address/0xcB444e90D8198415266c6a2724b7900fb12FC56E))

| description | value before | value after |
| --- | --- | --- |
| reserveFactor | 15 % | 20 % |


#### WXDAI ([0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d](https://gnosisscan.io/address/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d))

Expand All @@ -14,6 +21,12 @@
```json
{
"reserves": {
"0xcB444e90D8198415266c6a2724b7900fb12FC56E": {
"reserveFactor": {
"from": 1500,
"to": 2000
}
},
"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d": {
"reserveFactor": {
"from": 1000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

### Reserve altered

#### sUSD ([0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9](https://optimistic.etherscan.io/address/0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9))

| description | value before | value after |
| --- | --- | --- |
| reserveFactor | 10 % | 20 % |


#### DAI ([0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1](https://optimistic.etherscan.io/address/0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1))

| description | value before | value after |
Expand All @@ -21,6 +28,12 @@
```json
{
"reserves": {
"0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9": {
"reserveFactor": {
"from": 1000,
"to": 2000
}
},
"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1": {
"reserveFactor": {
"from": 1000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

| description | value before | value after |
| --- | --- | --- |
| ltv | 65 % | 0 % |
| liquidationThreshold | 70 % | 67 % |
| reserveFactor | 10 % | 20 % |


Expand Down Expand Up @@ -56,14 +54,6 @@
}
},
"0xE111178A87A3BFf0c8d18DECBa5798827539Ae99": {
"liquidationThreshold": {
"from": 7000,
"to": 6700
},
"ltv": {
"from": 6500,
"to": 0
},
"reserveFactor": {
"from": 1000,
"to": 2000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {AaveV3Arbitrum, AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbi
import {AaveV3PayloadArbitrum} from 'aave-helpers/v3-config-engine/AaveV3PayloadArbitrum.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';

/**
* @title stablecoin harmonization
* @author Aave Chan Initiative
Expand Down Expand Up @@ -45,7 +44,6 @@ contract AaveV3Arbitrum_StablecoinHarmonization_20240312 is AaveV3PayloadArbitru

return collateralUpdate;
}

function borrowsUpdates()
public
pure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {AaveV3AvalancheAssets} from 'aave-address-book/AaveV3Avalanche.sol';
import {AaveV3PayloadAvalanche} from 'aave-helpers/v3-config-engine/AaveV3PayloadAvalanche.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';

/**
* @title stablecoin harmonization
* @author Aave Chan Initiative
Expand Down Expand Up @@ -41,7 +40,6 @@ contract AaveV3Avalanche_StablecoinHarmonization_20240312 is AaveV3PayloadAvalan

return collateralUpdate;
}

function borrowsUpdates()
public
pure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import 'forge-std/Test.sol';
import {AaveV3Avalanche} from 'aave-address-book/AaveV3Avalanche.sol';

import 'forge-std/Test.sol';
import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/ProtocolV3TestBase.sol';
import {AaveV3Avalanche_StablecoinHarmonization_20240312} from './AaveV3Avalanche_StablecoinHarmonization_20240312.sol';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {AaveV3Ethereum, AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethe
import {AaveV3PayloadEthereum} from 'aave-helpers/v3-config-engine/AaveV3PayloadEthereum.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';

/**
* @title stablecoin harmonization
* @author Aave Chan Initiative
Expand Down Expand Up @@ -62,23 +61,23 @@ contract AaveV3Ethereum_StablecoinHarmonization_20240312 is AaveV3PayloadEthereu
});
collateralUpdate[4] = IAaveV3ConfigEngine.CollateralUpdate({
asset: AaveV3EthereumAssets.STG_UNDERLYING,
ltv: EngineFlags.KEEP_CURRENT,
ltv: 0,
liqThreshold: 37_00,
liqBonus: EngineFlags.KEEP_CURRENT,
debtCeiling: EngineFlags.KEEP_CURRENT,
liqProtocolFee: EngineFlags.KEEP_CURRENT
});
collateralUpdate[5] = IAaveV3ConfigEngine.CollateralUpdate({
asset: AaveV3EthereumAssets.KNC_UNDERLYING,
ltv: EngineFlags.KEEP_CURRENT,
ltv: 0,
liqThreshold: 37_00,
liqBonus: EngineFlags.KEEP_CURRENT,
debtCeiling: EngineFlags.KEEP_CURRENT,
liqProtocolFee: EngineFlags.KEEP_CURRENT
});
collateralUpdate[6] = IAaveV3ConfigEngine.CollateralUpdate({
asset: AaveV3EthereumAssets.FXS_UNDERLYING,
ltv: EngineFlags.KEEP_CURRENT,
ltv: 0,
liqThreshold: 42_00,
liqBonus: EngineFlags.KEEP_CURRENT,
debtCeiling: EngineFlags.KEEP_CURRENT,
Expand All @@ -87,7 +86,6 @@ contract AaveV3Ethereum_StablecoinHarmonization_20240312 is AaveV3PayloadEthereu

return collateralUpdate;
}

function borrowsUpdates()
public
pure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {AaveV3GnosisAssets} from 'aave-address-book/AaveV3Gnosis.sol';
import {AaveV3PayloadGnosis} from 'aave-helpers/v3-config-engine/AaveV3PayloadGnosis.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';

/**
* @title stablecoin harmonization
* @author Aave Chan Initiative
Expand All @@ -20,7 +19,7 @@ contract AaveV3Gnosis_StablecoinHarmonization_20240312 is AaveV3PayloadGnosis {
returns (IAaveV3ConfigEngine.BorrowUpdate[] memory)
{
IAaveV3ConfigEngine.BorrowUpdate[]
memory borrowUpdates = new IAaveV3ConfigEngine.BorrowUpdate[](1);
memory borrowUpdates = new IAaveV3ConfigEngine.BorrowUpdate[](2);

borrowUpdates[0] = IAaveV3ConfigEngine.BorrowUpdate({
asset: AaveV3GnosisAssets.WXDAI_UNDERLYING,
Expand All @@ -31,6 +30,15 @@ contract AaveV3Gnosis_StablecoinHarmonization_20240312 is AaveV3PayloadGnosis {
withSiloedBorrowing: EngineFlags.KEEP_CURRENT,
reserveFactor: 25_00
});
borrowUpdates[1] = IAaveV3ConfigEngine.BorrowUpdate({
asset: AaveV3GnosisAssets.EURe_UNDERLYING,
enabledToBorrow: EngineFlags.KEEP_CURRENT,
flashloanable: EngineFlags.KEEP_CURRENT,
stableRateModeEnabled: EngineFlags.KEEP_CURRENT,
borrowableInIsolation: EngineFlags.KEEP_CURRENT,
withSiloedBorrowing: EngineFlags.KEEP_CURRENT,
reserveFactor: 20_00
});

return borrowUpdates;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import 'forge-std/Test.sol';
import {AaveV3Gnosis} from 'aave-address-book/AaveV3Gnosis.sol';

import 'forge-std/Test.sol';
import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/ProtocolV3TestBase.sol';
import {AaveV3Gnosis_StablecoinHarmonization_20240312} from './AaveV3Gnosis_StablecoinHarmonization_20240312.sol';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {AaveV3MetisAssets} from 'aave-address-book/AaveV3Metis.sol';
import {AaveV3PayloadMetis} from 'aave-helpers/v3-config-engine/AaveV3PayloadMetis.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';

/**
* @title stablecoin harmonization
* @author Aave Chan Initiative
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import 'forge-std/Test.sol';
import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/ProtocolV3TestBase.sol';
import {AaveV3Metis} from 'aave-address-book/AaveV3Metis.sol';

import 'forge-std/Test.sol';
import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/ProtocolV3TestBase.sol';
import {AaveV3Metis_StablecoinHarmonization_20240312} from './AaveV3Metis_StablecoinHarmonization_20240312.sol';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {AaveV3OptimismAssets} from 'aave-address-book/AaveV3Optimism.sol';
import {AaveV3PayloadOptimism} from 'aave-helpers/v3-config-engine/AaveV3PayloadOptimism.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';

/**
* @title stablecoin harmonization
* @author Aave Chan Initiative
Expand All @@ -20,7 +19,7 @@ contract AaveV3Optimism_StablecoinHarmonization_20240312 is AaveV3PayloadOptimis
returns (IAaveV3ConfigEngine.BorrowUpdate[] memory)
{
IAaveV3ConfigEngine.BorrowUpdate[]
memory borrowUpdates = new IAaveV3ConfigEngine.BorrowUpdate[](2);
memory borrowUpdates = new IAaveV3ConfigEngine.BorrowUpdate[](3);

borrowUpdates[0] = IAaveV3ConfigEngine.BorrowUpdate({
asset: AaveV3OptimismAssets.DAI_UNDERLYING,
Expand All @@ -40,6 +39,15 @@ contract AaveV3Optimism_StablecoinHarmonization_20240312 is AaveV3PayloadOptimis
withSiloedBorrowing: EngineFlags.KEEP_CURRENT,
reserveFactor: 20_00
});
borrowUpdates[2] = IAaveV3ConfigEngine.BorrowUpdate({
asset: AaveV3OptimismAssets.sUSD_UNDERLYING,
enabledToBorrow: EngineFlags.KEEP_CURRENT,
flashloanable: EngineFlags.KEEP_CURRENT,
stableRateModeEnabled: EngineFlags.KEEP_CURRENT,
borrowableInIsolation: EngineFlags.KEEP_CURRENT,
withSiloedBorrowing: EngineFlags.KEEP_CURRENT,
reserveFactor: 20_00
});

return borrowUpdates;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {AaveV3Polygon, AaveV3PolygonAssets} from 'aave-address-book/AaveV3Polygo
import {AaveV3PayloadPolygon} from 'aave-helpers/v3-config-engine/AaveV3PayloadPolygon.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';

/**
* @title stablecoin harmonization
* @author Aave Chan Initiative
Expand All @@ -24,7 +23,7 @@ contract AaveV3Polygon_StablecoinHarmonization_20240312 is AaveV3PayloadPolygon
returns (IAaveV3ConfigEngine.CollateralUpdate[] memory)
{
IAaveV3ConfigEngine.CollateralUpdate[]
memory collateralUpdate = new IAaveV3ConfigEngine.CollateralUpdate[](2);
memory collateralUpdate = new IAaveV3ConfigEngine.CollateralUpdate[](1);

collateralUpdate[0] = IAaveV3ConfigEngine.CollateralUpdate({
asset: AaveV3PolygonAssets.BAL_UNDERLYING,
Expand All @@ -34,18 +33,9 @@ contract AaveV3Polygon_StablecoinHarmonization_20240312 is AaveV3PayloadPolygon
debtCeiling: EngineFlags.KEEP_CURRENT,
liqProtocolFee: EngineFlags.KEEP_CURRENT
});
collateralUpdate[1] = IAaveV3ConfigEngine.CollateralUpdate({
asset: AaveV3PolygonAssets.EURS_UNDERLYING,
ltv: 0,
liqThreshold: 67_00,
liqBonus: EngineFlags.KEEP_CURRENT,
debtCeiling: EngineFlags.KEEP_CURRENT,
liqProtocolFee: EngineFlags.KEEP_CURRENT
});

return collateralUpdate;
}

function borrowsUpdates()
public
pure
Expand Down
Loading

0 comments on commit 1fd090e

Please sign in to comment.