diff --git a/safe.csv b/safe.csv index 94c60c29..803f382c 100644 --- a/safe.csv +++ b/safe.csv @@ -949,6 +949,11 @@ address,name,chainId 0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5,AaveV3BNB ASSETS FDUSD INTEREST_RATE_STRATEGY,56 0x60a117Fa5bAbee4d645884fB11E413Da4F893b6D,AaveV3BNB ASSETS FDUSD ORACLE,56 0x4d074aAa0821073dA827f7bf6a02cF905b394ed0,AaveV3BNB ASSETS FDUSD STATIC_A_TOKEN,56 +0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C,AaveV3BNB ASSETS wstETH UNDERLYING,56 +0xBDFd4E51D3c14a232135f04988a42576eFb31519,AaveV3BNB ASSETS wstETH A_TOKEN,56 +0x2c391998308c56D7572A8F501D58CB56fB9Fe1C5,AaveV3BNB ASSETS wstETH V_TOKEN,56 +0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5,AaveV3BNB ASSETS wstETH INTEREST_RATE_STRATEGY,56 +0xc1377B4cdF9116bf7b3d7F72A4f8A7Be8506cE80,AaveV3BNB ASSETS wstETH ORACLE,56 0x971F1C94b139AdEdedA729DA636e2B0C433Ff595,AaveV3BNB CAPS_PLUS_RISK_STEWARD,56 0x25Ec457d1778b0E5316e7f38f3c22baF413F1A8C,AaveV3BNB COLLECTOR,56 0x249396a890F89D47F89326d7EE116b1d374Fb3A9,AaveV3BNB CONFIG_ENGINE,56 diff --git a/src/AaveV3BNB.sol b/src/AaveV3BNB.sol index 2fa56e54..5cc9118f 100644 --- a/src/AaveV3BNB.sol +++ b/src/AaveV3BNB.sol @@ -243,9 +243,29 @@ library AaveV3BNBAssets { // https://bscscan.com/address/0x4d074aAa0821073dA827f7bf6a02cF905b394ed0 address internal constant FDUSD_STATIC_A_TOKEN = 0x4d074aAa0821073dA827f7bf6a02cF905b394ed0; + + // https://bscscan.com/address/0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C + address internal constant wstETH_UNDERLYING = 0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C; + + uint8 internal constant wstETH_DECIMALS = 18; + + // https://bscscan.com/address/0xBDFd4E51D3c14a232135f04988a42576eFb31519 + address internal constant wstETH_A_TOKEN = 0xBDFd4E51D3c14a232135f04988a42576eFb31519; + + // https://bscscan.com/address/0x2c391998308c56D7572A8F501D58CB56fB9Fe1C5 + address internal constant wstETH_V_TOKEN = 0x2c391998308c56D7572A8F501D58CB56fB9Fe1C5; + + // https://bscscan.com/address/0xc1377B4cdF9116bf7b3d7F72A4f8A7Be8506cE80 + address internal constant wstETH_ORACLE = 0xc1377B4cdF9116bf7b3d7F72A4f8A7Be8506cE80; + + // https://bscscan.com/address/0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5 + address internal constant wstETH_INTEREST_RATE_STRATEGY = + 0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5; } library AaveV3BNBEModes { uint8 internal constant NONE = 0; + + uint8 internal constant ETH_CORRELATED = 1; } library AaveV3BNBExternalLibraries { // https://bscscan.com/address/0xb32381feFFF45eE9F47fD2f2cF83C832637d6EF0 diff --git a/src/ts/AaveV3BNB.ts b/src/ts/AaveV3BNB.ts index 8ef46e84..6beae631 100644 --- a/src/ts/AaveV3BNB.ts +++ b/src/ts/AaveV3BNB.ts @@ -155,6 +155,26 @@ export const ASSETS = { ORACLE: '0x60a117Fa5bAbee4d645884fB11E413Da4F893b6D', STATIC_A_TOKEN: '0x4d074aAa0821073dA827f7bf6a02cF905b394ed0', }, + wstETH: { + decimals: 18, + id: 7, + UNDERLYING: '0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C', + A_TOKEN: '0xBDFd4E51D3c14a232135f04988a42576eFb31519', + V_TOKEN: '0x2c391998308c56D7572A8F501D58CB56fB9Fe1C5', + INTEREST_RATE_STRATEGY: '0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5', + ORACLE: '0xc1377B4cdF9116bf7b3d7F72A4f8A7Be8506cE80', + }, +} as const; +export const E_MODES = { + '1': { + label: 'ETH-Correlated', + collateralBitmap: '128', + collateralAssets: ['0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C'], + borrowableBitmap: '8', + borrowableAssets: ['0x2170Ed0880ac9A755fd29B2688956BD959F933F8'], + ltv: 9300, + liquidationThreshold: 9500, + liquidationBonus: 10100, + }, } as const; -export const E_MODES = {} as const; export const EXTERNAL_LIBRARIES = {} as const; diff --git a/tokenlist.json b/tokenlist.json index aa810c90..ac8caecf 100644 --- a/tokenlist.json +++ b/tokenlist.json @@ -4804,6 +4804,28 @@ "underlyingAToken": "0x75bd1A659bdC62e4C313950d44A2416faB43E785" } }, + { + "chainId": 56, + "address": "0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C", + "name": "Wrapped liquid staked Ether 2.0", + "decimals": 18, + "symbol": "wstETH", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/wsteth.svg" + }, + { + "chainId": 56, + "address": "0xBDFd4E51D3c14a232135f04988a42576eFb31519", + "name": "Aave BNB Smart Chain wstETH", + "decimals": 18, + "symbol": "aBnbwstETH", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/awsteth.svg", + "extensions": { + "pool": "0x6807dc923806fE8Fd134338EABCA509979a7e0cB", + "underlying": "0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C" + } + }, { "chainId": 42161, "address": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", @@ -6669,6 +6691,6 @@ } } ], - "version": { "major": 3, "minor": 0, "patch": 57 }, - "timestamp": "2024-10-30T07:50:56.596Z" + "version": { "major": 3, "minor": 0, "patch": 58 }, + "timestamp": "2024-11-05T21:48:08.910Z" }