From d9fee6cf4f3a5e73ea073a3020483309e2053246 Mon Sep 17 00:00:00 2001 From: kartojal Date: Mon, 2 Sep 2024 14:32:29 +0200 Subject: [PATCH] feat: add EtherFi caps (#566) Co-authored-by: kartojal --- safe.csv | 1 + scripts/configs/pools/ethereum.ts | 3 +-- src/AaveV3EthereumEtherFi.sol | 3 +++ src/ts/AaveV3EthereumEtherFi.ts | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/safe.csv b/safe.csv index 4dea5471..688ac8bc 100644 --- a/safe.csv +++ b/safe.csv @@ -707,6 +707,7 @@ address,name,chainId 0x8Cb4b66f7B13F2Ae4D3c91338fC007dbF8C14208,AaveV3EthereumEtherFi AAVE_PROTOCOL_DATA_PROVIDER,1 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A,AaveV3EthereumEtherFi ACL_ADMIN,1 0x3cE8E2eb6501d4705477643E96881B1bef6A2DB3,AaveV3EthereumEtherFi ACL_MANAGER,1 +0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA,AaveV3EthereumEtherFi CAPS_PLUS_RISK_STEWARD,1 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c,AaveV3EthereumEtherFi COLLECTOR,1 0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed,AaveV3EthereumEtherFi CONFIG_ENGINE,1 0xaFFA06528Bd92625de2e7A0cfa0119319265Ea4b,AaveV3EthereumEtherFi DEFAULT_A_TOKEN_IMPL_REV_1,1 diff --git a/scripts/configs/pools/ethereum.ts b/scripts/configs/pools/ethereum.ts index 287ec9b9..a12a5ba3 100644 --- a/scripts/configs/pools/ethereum.ts +++ b/scripts/configs/pools/ethereum.ts @@ -122,8 +122,7 @@ export const etherFiEthereumMainnetProtoV3Pool: PoolConfig = { WETH_GATEWAY: '0xAB911dFB2bB9e264EE836F30D3367618f8Aef965', CONFIG_ENGINE: '0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed', STATIC_A_TOKEN_FACTORY: '0x1Ff525426800279843B71C0F818594DeCdC3b522', - // CAPS_PLUS_RISK_STEWARD: '', - // RISK_STEWARD: '', + CAPS_PLUS_RISK_STEWARD: '0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA', }, initial: { COLLECTOR: '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c', diff --git a/src/AaveV3EthereumEtherFi.sol b/src/AaveV3EthereumEtherFi.sol index 1a15a857..d21e9471 100644 --- a/src/AaveV3EthereumEtherFi.sol +++ b/src/AaveV3EthereumEtherFi.sol @@ -89,6 +89,9 @@ library AaveV3EthereumEtherFi { // https://etherscan.io/address/0x1Ff525426800279843B71C0F818594DeCdC3b522 address internal constant STATIC_A_TOKEN_FACTORY = 0x1Ff525426800279843B71C0F818594DeCdC3b522; + + // https://etherscan.io/address/0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA + address internal constant CAPS_PLUS_RISK_STEWARD = 0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA; } library AaveV3EthereumEtherFiAssets {} diff --git a/src/ts/AaveV3EthereumEtherFi.ts b/src/ts/AaveV3EthereumEtherFi.ts index 3cb61284..5d58a199 100644 --- a/src/ts/AaveV3EthereumEtherFi.ts +++ b/src/ts/AaveV3EthereumEtherFi.ts @@ -74,6 +74,9 @@ export const CONFIG_ENGINE = '0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed'; // https://etherscan.io/address/0x1Ff525426800279843B71C0F818594DeCdC3b522 export const STATIC_A_TOKEN_FACTORY = '0x1Ff525426800279843B71C0F818594DeCdC3b522'; +// https://etherscan.io/address/0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA +export const CAPS_PLUS_RISK_STEWARD = '0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA'; + export const CHAIN_ID = 1; export const ASSETS = {} as const; export const E_MODES = {