From edbed6cfd1a9fb73f3067b46a20ef26c8254af02 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:35:05 +0530 Subject: [PATCH] fix(cache): automated cache update - updated addresses (#697) Co-authored-by: Cache-bot --- safe.csv | 5 +++++ src/AaveV3Ethereum.sol | 2 ++ src/AaveV3EthereumLido.sol | 20 ++++++++++++++++++++ src/ts/AaveV3Ethereum.ts | 13 +++++++++++++ src/ts/AaveV3EthereumLido.ts | 22 ++++++++++++++++++++++ tokenlist.json | 17 +++++++++++++++-- 6 files changed, 77 insertions(+), 2 deletions(-) diff --git a/safe.csv b/safe.csv index 803f382c..9a83816c 100644 --- a/safe.csv +++ b/safe.csv @@ -704,6 +704,11 @@ address,name,chainId 0x08e1bba76D27841dD91FAb4b3a636A0D5CF8c3E9,AaveV3EthereumLido ASSETS ezETH V_TOKEN,1 0x8958b1C39269167527821f8c276Ef7504883f2fa,AaveV3EthereumLido ASSETS ezETH INTEREST_RATE_STRATEGY,1 0x68C9c7Bf43DBd0EBab102116bc7C3C9f7d9297Ee,AaveV3EthereumLido ASSETS ezETH ORACLE,1 +0x9D39A5DE30e57443BfF2A8307A4256c8797A3497,AaveV3EthereumLido ASSETS sUSDe UNDERLYING,1 +0xc2015641564a5914A17CB9A92eC8d8feCfa8f2D0,AaveV3EthereumLido ASSETS sUSDe A_TOKEN,1 +0x2ABbAab3EF4e4A899d39e7EC996b5715E76b399a,AaveV3EthereumLido ASSETS sUSDe V_TOKEN,1 +0x8958b1C39269167527821f8c276Ef7504883f2fa,AaveV3EthereumLido ASSETS sUSDe INTEREST_RATE_STRATEGY,1 +0xb37aE8aBa6C0C1Bf2c509fc06E11aa4AF29B665A,AaveV3EthereumLido ASSETS sUSDe ORACLE,1 0x3843b29118fFC18d5d12EE079d0324E1bF115e69,AaveV3EthereumLido CAPS_PLUS_RISK_STEWARD,1 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c,AaveV3EthereumLido COLLECTOR,1 0x1097eDb85392932b7dCB630baDDC8A6D73585218,AaveV3EthereumLido CONFIG_ENGINE,1 diff --git a/src/AaveV3Ethereum.sol b/src/AaveV3Ethereum.sol index 09c96c8c..cc546c60 100644 --- a/src/AaveV3Ethereum.sol +++ b/src/AaveV3Ethereum.sol @@ -828,6 +828,8 @@ library AaveV3EthereumEModes { uint8 internal constant NONE = 0; uint8 internal constant ETH_CORRELATED = 1; + + uint8 internal constant SUSDE_STABLECOINS = 2; } library AaveV3EthereumExternalLibraries { // https://etherscan.io/address/0xb32381feFFF45eE9F47fD2f2cF83C832637d6EF0 diff --git a/src/AaveV3EthereumLido.sol b/src/AaveV3EthereumLido.sol index 74aeeb99..84f96319 100644 --- a/src/AaveV3EthereumLido.sol +++ b/src/AaveV3EthereumLido.sol @@ -178,6 +178,24 @@ library AaveV3EthereumLidoAssets { // https://etherscan.io/address/0x8958b1C39269167527821f8c276Ef7504883f2fa address internal constant ezETH_INTEREST_RATE_STRATEGY = 0x8958b1C39269167527821f8c276Ef7504883f2fa; + + // https://etherscan.io/address/0x9D39A5DE30e57443BfF2A8307A4256c8797A3497 + address internal constant sUSDe_UNDERLYING = 0x9D39A5DE30e57443BfF2A8307A4256c8797A3497; + + uint8 internal constant sUSDe_DECIMALS = 18; + + // https://etherscan.io/address/0xc2015641564a5914A17CB9A92eC8d8feCfa8f2D0 + address internal constant sUSDe_A_TOKEN = 0xc2015641564a5914A17CB9A92eC8d8feCfa8f2D0; + + // https://etherscan.io/address/0x2ABbAab3EF4e4A899d39e7EC996b5715E76b399a + address internal constant sUSDe_V_TOKEN = 0x2ABbAab3EF4e4A899d39e7EC996b5715E76b399a; + + // https://etherscan.io/address/0xb37aE8aBa6C0C1Bf2c509fc06E11aa4AF29B665A + address internal constant sUSDe_ORACLE = 0xb37aE8aBa6C0C1Bf2c509fc06E11aa4AF29B665A; + + // https://etherscan.io/address/0x8958b1C39269167527821f8c276Ef7504883f2fa + address internal constant sUSDe_INTEREST_RATE_STRATEGY = + 0x8958b1C39269167527821f8c276Ef7504883f2fa; } library AaveV3EthereumLidoEModes { uint8 internal constant NONE = 0; @@ -187,6 +205,8 @@ library AaveV3EthereumLidoEModes { uint8 internal constant LRT_STABLECOINS_MAIN = 2; uint8 internal constant LRT_WSTETH_MAIN = 3; + + uint8 internal constant SUSDE_STABLECOINS = 4; } library AaveV3EthereumLidoExternalLibraries { // https://etherscan.io/address/0xb32381feFFF45eE9F47fD2f2cF83C832637d6EF0 diff --git a/src/ts/AaveV3Ethereum.ts b/src/ts/AaveV3Ethereum.ts index 2c7edafc..b4badeba 100644 --- a/src/ts/AaveV3Ethereum.ts +++ b/src/ts/AaveV3Ethereum.ts @@ -473,5 +473,18 @@ export const E_MODES = { liquidationThreshold: 9500, liquidationBonus: 10100, }, + '2': { + label: 'sUSDe Stablecoins', + collateralBitmap: '4294967296', + collateralAssets: ['0x9D39A5DE30e57443BfF2A8307A4256c8797A3497'], + borrowableBitmap: '34359738376', + borrowableAssets: [ + '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', + '0xdC035D45d973E3EC169d2276DDab16f1e407384F', + ], + ltv: 9000, + liquidationThreshold: 9200, + liquidationBonus: 10300, + }, } as const; export const EXTERNAL_LIBRARIES = {} as const; diff --git a/src/ts/AaveV3EthereumLido.ts b/src/ts/AaveV3EthereumLido.ts index ed42f002..51a46cc7 100644 --- a/src/ts/AaveV3EthereumLido.ts +++ b/src/ts/AaveV3EthereumLido.ts @@ -121,6 +121,15 @@ export const ASSETS = { INTEREST_RATE_STRATEGY: '0x8958b1C39269167527821f8c276Ef7504883f2fa', ORACLE: '0x68C9c7Bf43DBd0EBab102116bc7C3C9f7d9297Ee', }, + sUSDe: { + decimals: 18, + id: 5, + UNDERLYING: '0x9D39A5DE30e57443BfF2A8307A4256c8797A3497', + A_TOKEN: '0xc2015641564a5914A17CB9A92eC8d8feCfa8f2D0', + V_TOKEN: '0x2ABbAab3EF4e4A899d39e7EC996b5715E76b399a', + INTEREST_RATE_STRATEGY: '0x8958b1C39269167527821f8c276Ef7504883f2fa', + ORACLE: '0xb37aE8aBa6C0C1Bf2c509fc06E11aa4AF29B665A', + }, } as const; export const E_MODES = { '1': { @@ -156,5 +165,18 @@ export const E_MODES = { liquidationThreshold: 9500, liquidationBonus: 10100, }, + '4': { + label: 'sUSDe Stablecoins', + collateralBitmap: '32', + collateralAssets: ['0x9D39A5DE30e57443BfF2A8307A4256c8797A3497'], + borrowableBitmap: '12', + borrowableAssets: [ + '0xdC035D45d973E3EC169d2276DDab16f1e407384F', + '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', + ], + ltv: 9000, + liquidationThreshold: 9200, + liquidationBonus: 10300, + }, } as const; export const EXTERNAL_LIBRARIES = {} as const; diff --git a/tokenlist.json b/tokenlist.json index ac8caecf..ac7aca25 100644 --- a/tokenlist.json +++ b/tokenlist.json @@ -6638,6 +6638,19 @@ "underlying": "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110" } }, + { + "chainId": 1, + "address": "0xc2015641564a5914A17CB9A92eC8d8feCfa8f2D0", + "name": "Aave Ethereum Lido sUSDe", + "decimals": 18, + "symbol": "aEthLidosUSDe", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/asusde.svg", + "extensions": { + "pool": "0x4e033931ad43597d96D6bcc25c280717730B58B1", + "underlying": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497" + } + }, { "chainId": 1, "address": "0xbe1F842e7e0afd2c2322aae5d34bA899544b29db", @@ -6691,6 +6704,6 @@ } } ], - "version": { "major": 3, "minor": 0, "patch": 58 }, - "timestamp": "2024-11-05T21:48:08.910Z" + "version": { "major": 3, "minor": 0, "patch": 59 }, + "timestamp": "2024-11-18T13:03:11.207Z" }