From 1fd090e4640a6ce8eae2a935f59dda8d67569c17 Mon Sep 17 00:00:00 2001 From: marczeller Date: Thu, 21 Mar 2024 09:44:55 +0000 Subject: [PATCH] Clean up --- ...e_StablecoinHarmonization_20240312_after.md | 6 +++--- ...m_StablecoinHarmonization_20240312_after.md | 15 +++++++++++++++ ...s_StablecoinHarmonization_20240312_after.md | 15 ++++++++++++++- ...m_StablecoinHarmonization_20240312_after.md | 13 +++++++++++++ ...n_StablecoinHarmonization_20240312_after.md | 10 ---------- ...bitrum_StablecoinHarmonization_20240312.sol | 2 -- ...lanche_StablecoinHarmonization_20240312.sol | 2 -- ...nche_StablecoinHarmonization_20240312.t.sol | 3 ++- ...hereum_StablecoinHarmonization_20240312.sol | 8 +++----- ...Gnosis_StablecoinHarmonization_20240312.sol | 12 ++++++++++-- ...osis_StablecoinHarmonization_20240312.t.sol | 2 +- ...3Metis_StablecoinHarmonization_20240312.sol | 1 - ...etis_StablecoinHarmonization_20240312.t.sol | 4 ++-- ...timism_StablecoinHarmonization_20240312.sol | 12 ++++++++++-- ...olygon_StablecoinHarmonization_20240312.sol | 12 +----------- .../config.ts | 18 ++++++++++++++++++ 16 files changed, 92 insertions(+), 43 deletions(-) diff --git a/diffs/AaveV3Avalanche_StablecoinHarmonization_20240312_before_AaveV3Avalanche_StablecoinHarmonization_20240312_after.md b/diffs/AaveV3Avalanche_StablecoinHarmonization_20240312_before_AaveV3Avalanche_StablecoinHarmonization_20240312_after.md index 4e6849c5b..ffbaf50b7 100644 --- a/diffs/AaveV3Avalanche_StablecoinHarmonization_20240312_before_AaveV3Avalanche_StablecoinHarmonization_20240312_after.md +++ b/diffs/AaveV3Avalanche_StablecoinHarmonization_20240312_before_AaveV3Avalanche_StablecoinHarmonization_20240312_after.md @@ -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 | | --- | --- | --- | @@ -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 | | --- | --- | --- | diff --git a/diffs/AaveV3Ethereum_StablecoinHarmonization_20240312_before_AaveV3Ethereum_StablecoinHarmonization_20240312_after.md b/diffs/AaveV3Ethereum_StablecoinHarmonization_20240312_before_AaveV3Ethereum_StablecoinHarmonization_20240312_after.md index d675f4d2a..1ebe42fbe 100644 --- a/diffs/AaveV3Ethereum_StablecoinHarmonization_20240312_before_AaveV3Ethereum_StablecoinHarmonization_20240312_after.md +++ b/diffs/AaveV3Ethereum_StablecoinHarmonization_20240312_before_AaveV3Ethereum_StablecoinHarmonization_20240312_after.md @@ -14,6 +14,7 @@ | description | value before | value after | | --- | --- | --- | | isFrozen | false | true | +| ltv | 35 % | 0 % | | liquidationThreshold | 45 % | 42 % | @@ -47,6 +48,7 @@ | description | value before | value after | | --- | --- | --- | | isFrozen | false | true | +| ltv | 35 % | 0 % | | liquidationThreshold | 40 % | 37 % | @@ -62,6 +64,7 @@ | description | value before | value after | | --- | --- | --- | | isFrozen | false | true | +| ltv | 35 % | 0 % | | liquidationThreshold | 40 % | 37 % | @@ -84,6 +87,10 @@ "liquidationThreshold": { "from": 4500, "to": 4200 + }, + "ltv": { + "from": 3500, + "to": 0 } }, "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0": { @@ -128,6 +135,10 @@ "liquidationThreshold": { "from": 4000, "to": 3700 + }, + "ltv": { + "from": 3500, + "to": 0 } }, "0xba100000625a3754423978a60c9317c58a424e3D": { @@ -144,6 +155,10 @@ "liquidationThreshold": { "from": 4000, "to": 3700 + }, + "ltv": { + "from": 3500, + "to": 0 } } } diff --git a/diffs/AaveV3Gnosis_StablecoinHarmonization_20240312_before_AaveV3Gnosis_StablecoinHarmonization_20240312_after.md b/diffs/AaveV3Gnosis_StablecoinHarmonization_20240312_before_AaveV3Gnosis_StablecoinHarmonization_20240312_after.md index 4b1e7e325..77ae0724c 100644 --- a/diffs/AaveV3Gnosis_StablecoinHarmonization_20240312_before_AaveV3Gnosis_StablecoinHarmonization_20240312_after.md +++ b/diffs/AaveV3Gnosis_StablecoinHarmonization_20240312_before_AaveV3Gnosis_StablecoinHarmonization_20240312_after.md @@ -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)) @@ -14,6 +21,12 @@ ```json { "reserves": { + "0xcB444e90D8198415266c6a2724b7900fb12FC56E": { + "reserveFactor": { + "from": 1500, + "to": 2000 + } + }, "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d": { "reserveFactor": { "from": 1000, diff --git a/diffs/AaveV3Optimism_StablecoinHarmonization_20240312_before_AaveV3Optimism_StablecoinHarmonization_20240312_after.md b/diffs/AaveV3Optimism_StablecoinHarmonization_20240312_before_AaveV3Optimism_StablecoinHarmonization_20240312_after.md index dce2286cf..6015f6080 100644 --- a/diffs/AaveV3Optimism_StablecoinHarmonization_20240312_before_AaveV3Optimism_StablecoinHarmonization_20240312_after.md +++ b/diffs/AaveV3Optimism_StablecoinHarmonization_20240312_before_AaveV3Optimism_StablecoinHarmonization_20240312_after.md @@ -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 | @@ -21,6 +28,12 @@ ```json { "reserves": { + "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9": { + "reserveFactor": { + "from": 1000, + "to": 2000 + } + }, "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1": { "reserveFactor": { "from": 1000, diff --git a/diffs/AaveV3Polygon_StablecoinHarmonization_20240312_before_AaveV3Polygon_StablecoinHarmonization_20240312_after.md b/diffs/AaveV3Polygon_StablecoinHarmonization_20240312_before_AaveV3Polygon_StablecoinHarmonization_20240312_after.md index f302619a0..b8e3efe78 100644 --- a/diffs/AaveV3Polygon_StablecoinHarmonization_20240312_before_AaveV3Polygon_StablecoinHarmonization_20240312_after.md +++ b/diffs/AaveV3Polygon_StablecoinHarmonization_20240312_before_AaveV3Polygon_StablecoinHarmonization_20240312_after.md @@ -27,8 +27,6 @@ | description | value before | value after | | --- | --- | --- | -| ltv | 65 % | 0 % | -| liquidationThreshold | 70 % | 67 % | | reserveFactor | 10 % | 20 % | @@ -56,14 +54,6 @@ } }, "0xE111178A87A3BFf0c8d18DECBa5798827539Ae99": { - "liquidationThreshold": { - "from": 7000, - "to": 6700 - }, - "ltv": { - "from": 6500, - "to": 0 - }, "reserveFactor": { "from": 1000, "to": 2000 diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Arbitrum_StablecoinHarmonization_20240312.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Arbitrum_StablecoinHarmonization_20240312.sol index a43de5707..189a6dfa3 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Arbitrum_StablecoinHarmonization_20240312.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Arbitrum_StablecoinHarmonization_20240312.sol @@ -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 @@ -45,7 +44,6 @@ contract AaveV3Arbitrum_StablecoinHarmonization_20240312 is AaveV3PayloadArbitru return collateralUpdate; } - function borrowsUpdates() public pure diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Avalanche_StablecoinHarmonization_20240312.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Avalanche_StablecoinHarmonization_20240312.sol index 75a9c5585..823a5ced0 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Avalanche_StablecoinHarmonization_20240312.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Avalanche_StablecoinHarmonization_20240312.sol @@ -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 @@ -41,7 +40,6 @@ contract AaveV3Avalanche_StablecoinHarmonization_20240312 is AaveV3PayloadAvalan return collateralUpdate; } - function borrowsUpdates() public pure diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Avalanche_StablecoinHarmonization_20240312.t.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Avalanche_StablecoinHarmonization_20240312.t.sol index c946efb62..8e595badc 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Avalanche_StablecoinHarmonization_20240312.t.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Avalanche_StablecoinHarmonization_20240312.t.sol @@ -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'; diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Ethereum_StablecoinHarmonization_20240312.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Ethereum_StablecoinHarmonization_20240312.sol index 0c5009dd8..6634e0865 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Ethereum_StablecoinHarmonization_20240312.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Ethereum_StablecoinHarmonization_20240312.sol @@ -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 @@ -62,7 +61,7 @@ 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, @@ -70,7 +69,7 @@ contract AaveV3Ethereum_StablecoinHarmonization_20240312 is AaveV3PayloadEthereu }); 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, @@ -78,7 +77,7 @@ contract AaveV3Ethereum_StablecoinHarmonization_20240312 is AaveV3PayloadEthereu }); 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, @@ -87,7 +86,6 @@ contract AaveV3Ethereum_StablecoinHarmonization_20240312 is AaveV3PayloadEthereu return collateralUpdate; } - function borrowsUpdates() public pure diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Gnosis_StablecoinHarmonization_20240312.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Gnosis_StablecoinHarmonization_20240312.sol index 60336b9f6..bdcb76e3b 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Gnosis_StablecoinHarmonization_20240312.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Gnosis_StablecoinHarmonization_20240312.sol @@ -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 @@ -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, @@ -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; } diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Gnosis_StablecoinHarmonization_20240312.t.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Gnosis_StablecoinHarmonization_20240312.t.sol index 8ef9b1b21..bea53ac3a 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Gnosis_StablecoinHarmonization_20240312.t.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Gnosis_StablecoinHarmonization_20240312.t.sol @@ -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'; diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Metis_StablecoinHarmonization_20240312.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Metis_StablecoinHarmonization_20240312.sol index b64dbe1f5..3ed188b11 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Metis_StablecoinHarmonization_20240312.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Metis_StablecoinHarmonization_20240312.sol @@ -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 diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Metis_StablecoinHarmonization_20240312.t.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Metis_StablecoinHarmonization_20240312.t.sol index 8f0643ae7..4c3f4a353 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Metis_StablecoinHarmonization_20240312.t.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Metis_StablecoinHarmonization_20240312.t.sol @@ -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'; /** diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Optimism_StablecoinHarmonization_20240312.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Optimism_StablecoinHarmonization_20240312.sol index 3974f8d09..b95beab44 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Optimism_StablecoinHarmonization_20240312.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Optimism_StablecoinHarmonization_20240312.sol @@ -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 @@ -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, @@ -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; } diff --git a/src/20240312_Multi_StablecoinHarmonization/AaveV3Polygon_StablecoinHarmonization_20240312.sol b/src/20240312_Multi_StablecoinHarmonization/AaveV3Polygon_StablecoinHarmonization_20240312.sol index ee79ec197..16e0f1594 100644 --- a/src/20240312_Multi_StablecoinHarmonization/AaveV3Polygon_StablecoinHarmonization_20240312.sol +++ b/src/20240312_Multi_StablecoinHarmonization/AaveV3Polygon_StablecoinHarmonization_20240312.sol @@ -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 @@ -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, @@ -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 diff --git a/src/20240312_Multi_StablecoinHarmonization/config.ts b/src/20240312_Multi_StablecoinHarmonization/config.ts index c7b0dd4f2..1821c805e 100644 --- a/src/20240312_Multi_StablecoinHarmonization/config.ts +++ b/src/20240312_Multi_StablecoinHarmonization/config.ts @@ -219,6 +219,15 @@ export const config: ConfigFile = { reserveFactor: '20', asset: 'LUSD', }, + { + enabledToBorrow: 'KEEP_CURRENT', + flashloanable: 'KEEP_CURRENT', + stableRateModeEnabled: 'KEEP_CURRENT', + borrowableInIsolation: 'KEEP_CURRENT', + withSiloedBorrowing: 'KEEP_CURRENT', + reserveFactor: '20', + asset: 'sUSD', + }, ], }, cache: {blockNumber: 117305320}, @@ -313,6 +322,15 @@ export const config: ConfigFile = { reserveFactor: '25', asset: 'WXDAI', }, + { + enabledToBorrow: 'KEEP_CURRENT', + flashloanable: 'KEEP_CURRENT', + stableRateModeEnabled: 'KEEP_CURRENT', + borrowableInIsolation: 'KEEP_CURRENT', + withSiloedBorrowing: 'KEEP_CURRENT', + reserveFactor: '20', + asset: 'EURe', + }, ], }, cache: {blockNumber: 32885976},