From 6ea741b4fce5907a98326719a7e3261c0ac37347 Mon Sep 17 00:00:00 2001 From: Rozengarden Date: Mon, 6 Jan 2025 22:11:04 +0100 Subject: [PATCH] fix cap and bump block height --- ...ModeOnAavev3CoreInstance_20241223_after.md | 20 +++++++++---------- ...quidEModeOnAavev3CoreInstance_20241223.sol | 4 ++-- ...idEModeOnAavev3CoreInstance_20241223.t.sol | 2 +- ...LBTCWBTCLiquidEModeOnAavev3CoreInstance.md | 4 ++-- .../config.ts | 4 ++-- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/diffs/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_before_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_after.md b/diffs/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_before_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_after.md index 269fa1dae..9cc4cd6ef 100644 --- a/diffs/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_before_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_after.md +++ b/diffs/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_before_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_after.md @@ -9,15 +9,15 @@ | decimals | 8 | | isActive | true | | isFrozen | false | -| supplyCap | 8,000 LBTC | -| borrowCap | 800 LBTC | +| supplyCap | 800 LBTC | +| borrowCap | 80 LBTC | | debtCeiling | 0 $ [0] | | isSiloed | false | | isFlashloanable | true | | oracle | [0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c](https://etherscan.io/address/0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c) | | oracleDecimals | 8 | | oracleDescription | BTC / USD | -| oracleLatestAnswer | 93409.30100239 | +| oracleLatestAnswer | 102127.88158314 | | usageAsCollateralEnabled | true | | ltv | 70 % [7000] | | liquidationThreshold | 75 % [7500] | @@ -33,13 +33,13 @@ | interestRateStrategy | [0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB](https://etherscan.io/address/0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB) | | aTokenName | Aave Ethereum LBTC | | aTokenSymbol | aEthLBTC | -| aTokenUnderlyingBalance | 0 LBTC [0] | +| aTokenUnderlyingBalance | 0.001 LBTC [100000] | | id | 37 | | isPaused | false | | variableDebtTokenName | Aave Ethereum Variable Debt LBTC | | variableDebtTokenSymbol | variableDebtEthLBTC | | virtualAccountingActive | true | -| virtualBalance | 0 LBTC [0] | +| virtualBalance | 0.001 LBTC [100000] | | optimalUsageRatio | 45 % | | maxVariableBorrowRate | 304 % | | baseVariableBorrowRate | 0 % | @@ -100,8 +100,8 @@ "aTokenImpl": "0x7EfFD7b47Bfd17e52fB7559d3f924201b9DbfF3d", "aTokenName": "Aave Ethereum LBTC", "aTokenSymbol": "aEthLBTC", - "aTokenUnderlyingBalance": "0", - "borrowCap": 800, + "aTokenUnderlyingBalance": "100000", + "borrowCap": 80, "borrowingEnabled": true, "debtCeiling": 0, "decimals": 8, @@ -120,9 +120,9 @@ "oracle": "0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c", "oracleDecimals": 8, "oracleDescription": "BTC / USD", - "oracleLatestAnswer": "9340930100239", + "oracleLatestAnswer": "10212788158314", "reserveFactor": 5000, - "supplyCap": 8000, + "supplyCap": 800, "symbol": "LBTC", "underlying": "0x8236a87084f8B84306f72007F36F2618A5634494", "usageAsCollateralEnabled": true, @@ -131,7 +131,7 @@ "variableDebtTokenName": "Aave Ethereum Variable Debt LBTC", "variableDebtTokenSymbol": "variableDebtEthLBTC", "virtualAccountingActive": true, - "virtualBalance": "0" + "virtualBalance": "100000" } } }, diff --git a/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223.sol b/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223.sol index 32cd932e8..a517a639e 100644 --- a/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223.sol +++ b/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223.sol @@ -92,8 +92,8 @@ contract AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223 i liqThreshold: 75_00, liqBonus: 8_50, reserveFactor: 50_00, - supplyCap: 8_000, - borrowCap: 800, + supplyCap: 800, + borrowCap: 80, debtCeiling: 0, liqProtocolFee: 10_00, rateStrategyParams: IAaveV3ConfigEngine.InterestRateInputData({ diff --git a/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223.t.sol b/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223.t.sol index 097f3aa50..ccff96bf7 100644 --- a/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223.t.sol +++ b/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223.t.sol @@ -20,7 +20,7 @@ contract AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223_T AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223 internal proposal; function setUp() public { - vm.createSelectFork(vm.rpcUrl('mainnet'), 21466630); + vm.createSelectFork(vm.rpcUrl('mainnet'), 21567986); proposal = new AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance_20241223(); } diff --git a/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance.md b/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance.md index 905f71f6b..84e6f902d 100644 --- a/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance.md +++ b/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance.md @@ -30,8 +30,8 @@ The table below illustrates the configured risk parameters for **LBTC** | Isolation Mode | false | | Borrowable | ENABLED | | Collateral Enabled | true | -| Supply Cap (LBTC) | 8,000 | -| Borrow Cap (LBTC) | 800 | +| Supply Cap (LBTC) | 800 | +| Borrow Cap (LBTC) | 80 | | Debt Ceiling | USD 0 | | LTV | 70 % | | LT | 75 % | diff --git a/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/config.ts b/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/config.ts index cb1ed3847..0c278fcf0 100644 --- a/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/config.ts +++ b/src/20241223_AaveV3Ethereum_EnableLBTCWBTCLiquidEModeOnAavev3CoreInstance/config.ts @@ -38,8 +38,8 @@ export const config: ConfigFile = { borrowableInIsolation: 'DISABLED', withSiloedBorrowing: 'DISABLED', reserveFactor: '50', - supplyCap: '8000', - borrowCap: '800', + supplyCap: '800', + borrowCap: '80', rateStrategyParams: { optimalUtilizationRate: '45', baseVariableBorrowRate: '0',