From cdb0105bf754bffd0c4d127ba4f8aa57d4d61702 Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 9 Dec 2024 09:50:05 +0100 Subject: [PATCH] feat: add new stata tokens (#719) * feat: add new stata tokens * fix: add USDS * fix: add USDS --- safe.csv | 13 +++ scripts/configs/pools/ethereum.ts | 5 +- scripts/configs/pools/gnosis.ts | 1 + src/AaveV3Ethereum.sol | 15 ++++ src/AaveV3EthereumLido.sol | 9 ++ src/AaveV3Gnosis.sol | 15 ++++ src/ts/AaveV3Ethereum.ts | 7 ++ src/ts/AaveV3EthereumLido.ts | 5 ++ src/ts/AaveV3Gnosis.ts | 7 ++ tests/cache/verified.json | 39 ++++++++ tokenlist.json | 144 +++++++++++++++++++++++++++++- 11 files changed, 255 insertions(+), 5 deletions(-) diff --git a/safe.csv b/safe.csv index 15fe29e2..a7e272f7 100644 --- a/safe.csv +++ b/safe.csv @@ -401,6 +401,7 @@ address,name,chainId 0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB,AaveV3Ethereum ASSETS WETH INTEREST_RATE_STRATEGY,1 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419,AaveV3Ethereum ASSETS WETH ORACLE,1 0x252231882FB38481497f3C767469106297c8d93b,AaveV3Ethereum ASSETS WETH STATIC_A_TOKEN,1 +0x0bfc9d54Fc184518A81162F8fB99c2eACa081202,AaveV3Ethereum ASSETS WETH STATA_TOKEN,1 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0,AaveV3Ethereum ASSETS wstETH UNDERLYING,1 0x0B925eD163218f6662a35e0f0371Ac234f9E9371,AaveV3Ethereum ASSETS wstETH A_TOKEN,1 0xC96113eED8cAB59cD8A66813bCB0cEb29F06D2e4,AaveV3Ethereum ASSETS wstETH V_TOKEN,1 @@ -419,6 +420,7 @@ address,name,chainId 0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB,AaveV3Ethereum ASSETS USDC INTEREST_RATE_STRATEGY,1 0x736bF902680e68989886e9807CD7Db4B3E015d3C,AaveV3Ethereum ASSETS USDC ORACLE,1 0x73edDFa87C71ADdC275c2b9890f5c3a8480bC9E6,AaveV3Ethereum ASSETS USDC STATIC_A_TOKEN,1 +0xD4fa2D31b7968E448877f69A96DE69f5de8cD23E,AaveV3Ethereum ASSETS USDC STATA_TOKEN,1 0x6B175474E89094C44Da98b954EedeAC495271d0F,AaveV3Ethereum ASSETS DAI UNDERLYING,1 0x018008bfb33d285247A21d44E50697654f754e63,AaveV3Ethereum ASSETS DAI A_TOKEN,1 0xcF8d0c70c850859266f5C338b38F9D663181C314,AaveV3Ethereum ASSETS DAI V_TOKEN,1 @@ -449,6 +451,7 @@ address,name,chainId 0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB,AaveV3Ethereum ASSETS USDT INTEREST_RATE_STRATEGY,1 0xC26D4a1c46d884cfF6dE9800B6aE7A8Cf48B4Ff8,AaveV3Ethereum ASSETS USDT ORACLE,1 0x862c57d48becB45583AEbA3f489696D22466Ca1b,AaveV3Ethereum ASSETS USDT STATIC_A_TOKEN,1 +0x7Bc3485026Ac48b6cf9BaF0A377477Fff5703Af8,AaveV3Ethereum ASSETS USDT STATA_TOKEN,1 0xae78736Cd615f374D3085123A210448E74Fc6393,AaveV3Ethereum ASSETS rETH UNDERLYING,1 0xCc9EE9483f662091a1de4795249E24aC0aC2630f,AaveV3Ethereum ASSETS rETH A_TOKEN,1 0xae8593DD575FE29A9745056aA91C4b746eee62C8,AaveV3Ethereum ASSETS rETH V_TOKEN,1 @@ -602,6 +605,7 @@ address,name,chainId 0x490E0E6255bF65b43E2e02F7acB783c5e04572Ff,AaveV3Ethereum ASSETS USDS V_TOKEN,1 0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB,AaveV3Ethereum ASSETS USDS INTEREST_RATE_STRATEGY,1 0x4F01b76391A05d32B20FA2d05dD5963eE8db20E6,AaveV3Ethereum ASSETS USDS ORACLE,1 +0xb80B3215EA8183a064073f9892eb64236160a4dF,AaveV3Ethereum ASSETS USDS STATA_TOKEN,1 0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7,AaveV3Ethereum ASSETS rsETH UNDERLYING,1 0x2D62109243b87C4bA3EE7bA1D91B0dD0A074d7b1,AaveV3Ethereum ASSETS rsETH A_TOKEN,1 0x6De3E52A1B7294A34e271a508082b1Ff4a37E30e,AaveV3Ethereum ASSETS rsETH V_TOKEN,1 @@ -627,6 +631,7 @@ address,name,chainId 0x35bb522b102326ea3F1141661dF4626C87000e3E,AaveV3Ethereum REPAY_WITH_COLLATERAL_ADAPTER,1 0x7C7143f4bE189928A6a98D8686c5e84c893c59c7,AaveV3Ethereum RISK_STEWARD,1 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034,AaveV3Ethereum SAVINGS_DAI_TOKEN_WRAPPER,1 +0xCb0b5cA20b6C5C02A9A3B2cE433650768eD2974F,AaveV3Ethereum STATA_FACTORY,1 0x411D79b8cC43384FDE66CaBf9b6a17180c842511,AaveV3Ethereum STATIC_A_TOKEN_FACTORY,1 0xADC0A53095A0af87F3aa29FE0715B5c28016364e,AaveV3Ethereum SWAP_COLLATERAL_ADAPTER,1 0x379c1EDD1A41218bdbFf960a9d5AD2818Bf61aE8,AaveV3Ethereum UI_GHO_DATA_PROVIDER,1 @@ -690,11 +695,13 @@ address,name,chainId 0xE439edd2625772AA635B437C099C607B6eb7d35f,AaveV3EthereumLido ASSETS wstETH V_TOKEN,1 0x8958b1C39269167527821f8c276Ef7504883f2fa,AaveV3EthereumLido ASSETS wstETH INTEREST_RATE_STRATEGY,1 0xB4aB0c94159bc2d8C133946E7241368fc2F2a010,AaveV3EthereumLido ASSETS wstETH ORACLE,1 +0x775F661b0bD1739349b9A2A3EF60be277c5d2D29,AaveV3EthereumLido ASSETS wstETH STATA_TOKEN,1 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,AaveV3EthereumLido ASSETS WETH UNDERLYING,1 0xfA1fDbBD71B0aA16162D76914d69cD8CB3Ef92da,AaveV3EthereumLido ASSETS WETH A_TOKEN,1 0x91b7d78BF92db564221f6B5AeE744D1727d1Dd1e,AaveV3EthereumLido ASSETS WETH V_TOKEN,1 0x8958b1C39269167527821f8c276Ef7504883f2fa,AaveV3EthereumLido ASSETS WETH INTEREST_RATE_STRATEGY,1 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419,AaveV3EthereumLido ASSETS WETH ORACLE,1 +0x0FE906e030a44eF24CA8c7dC7B7c53A6C4F00ce9,AaveV3EthereumLido ASSETS WETH STATA_TOKEN,1 0xdC035D45d973E3EC169d2276DDab16f1e407384F,AaveV3EthereumLido ASSETS USDS UNDERLYING,1 0x09AA30b182488f769a9824F15E6Ce58591Da4781,AaveV3EthereumLido ASSETS USDS A_TOKEN,1 0x2D9fe18b6c35FE439cC15D932cc5C943bf2d901E,AaveV3EthereumLido ASSETS USDS V_TOKEN,1 @@ -732,6 +739,7 @@ address,name,chainId 0xf5b4664CB6D13189345119c60a948cdc7785d0FE,AaveV3EthereumLido POOL_IMPL,1 0x66E1aBdb06e7363a618D65a910c540dfED23754f,AaveV3EthereumLido REPAY_WITH_COLLATERAL_ADAPTER,1 0x30adC2f98ff78fDde12F191Acb82699f640694FB,AaveV3EthereumLido RISK_STEWARD,1 +0x347C75d19718a05148687E13dca259aD016aB411,AaveV3EthereumLido STATA_FACTORY,1 0xD0887AA7fEBC8962c622493646195e7c76D94fCE,AaveV3EthereumLido SWAP_COLLATERAL_ADAPTER,1 0xe3dFf4052F0bF6134ACb73bEaE8fe2317d71F047,AaveV3EthereumLido UI_INCENTIVE_DATA_PROVIDER,1 0x3F78BBD206e4D3c504Eb854232EdA7e47E9Fd8FC,AaveV3EthereumLido UI_POOL_DATA_PROVIDER,1 @@ -1015,18 +1023,21 @@ address,name,chainId 0x4cE496f0a390745102540faF041EF92FfD588b44,AaveV3Gnosis ASSETS WETH INTEREST_RATE_STRATEGY,100 0xa767f745331D267c7751297D982b050c93985627,AaveV3Gnosis ASSETS WETH ORACLE,100 0xD843FB478c5aA9759FeA3f3c98D467e2F136190a,AaveV3Gnosis ASSETS WETH STATIC_A_TOKEN,100 +0x57f664882F762FA37903FC864e2B633D384B411A,AaveV3Gnosis ASSETS WETH STATA_TOKEN,100 0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6,AaveV3Gnosis ASSETS wstETH UNDERLYING,100 0x23e4E76D01B2002BE436CE8d6044b0aA2f68B68a,AaveV3Gnosis ASSETS wstETH A_TOKEN,100 0x9D881f67F20B49243c98f53d2B9E91E39d02Ae09,AaveV3Gnosis ASSETS wstETH V_TOKEN,100 0x4cE496f0a390745102540faF041EF92FfD588b44,AaveV3Gnosis ASSETS wstETH INTEREST_RATE_STRATEGY,100 0x8Ee42Ba520cA106294163fb8b1ffE9C6Fba35507,AaveV3Gnosis ASSETS wstETH ORACLE,100 0xECfD0638175e291BA3F784A58FB9D38a25418904,AaveV3Gnosis ASSETS wstETH STATIC_A_TOKEN,100 +0x773CDA0CADe2A3d86E6D4e30699d40bB95174ff2,AaveV3Gnosis ASSETS wstETH STATA_TOKEN,100 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb,AaveV3Gnosis ASSETS GNO UNDERLYING,100 0xA1Fa064A85266E2Ca82DEe5C5CcEC84DF445760e,AaveV3Gnosis ASSETS GNO A_TOKEN,100 0xBc59E99198DbA71985A66E1713cC89FFEC53f7FC,AaveV3Gnosis ASSETS GNO V_TOKEN,100 0x4cE496f0a390745102540faF041EF92FfD588b44,AaveV3Gnosis ASSETS GNO INTEREST_RATE_STRATEGY,100 0x22441d81416430A54336aB28765abd31a792Ad37,AaveV3Gnosis ASSETS GNO ORACLE,100 0x2D737e2B0e175f05D0904C208d6C4e40da570f65,AaveV3Gnosis ASSETS GNO STATIC_A_TOKEN,100 +0x7c16F0185A26Db0AE7a9377f23BC18ea7ce5d644,AaveV3Gnosis ASSETS GNO STATA_TOKEN,100 0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83,AaveV3Gnosis ASSETS USDC UNDERLYING,100 0xc6B7AcA6DE8a6044E0e32d0c841a89244A10D284,AaveV3Gnosis ASSETS USDC A_TOKEN,100 0x5F6f7B0a87CA3CF3d0b431Ae03EF3305180BFf4d,AaveV3Gnosis ASSETS USDC V_TOKEN,100 @@ -1057,6 +1068,7 @@ address,name,chainId 0x4cE496f0a390745102540faF041EF92FfD588b44,AaveV3Gnosis ASSETS USDCe INTEREST_RATE_STRATEGY,100 0x0a2d05bc646C65A029e602c257DfA14adF8BfAd2,AaveV3Gnosis ASSETS USDCe ORACLE,100 0xf0E7eC247b918311afa054E0AEdb99d74c31b809,AaveV3Gnosis ASSETS USDCe STATIC_A_TOKEN,100 +0x51350d88c1bd32Cc6A79368c9Fb70373Fb71F375,AaveV3Gnosis ASSETS USDCe STATA_TOKEN,100 0x33AE1f41546a2e05368Bf789b3d868813c0Ae658,AaveV3Gnosis CAPS_PLUS_RISK_STEWARD,100 0x3e652E97ff339B73421f824F5b03d75b62F1Fb51,AaveV3Gnosis COLLECTOR,100 0x97CB9e81d480A2AB03299760654C1DDC0C16bE07,AaveV3Gnosis CONFIG_ENGINE,100 @@ -1075,6 +1087,7 @@ address,name,chainId 0xF2C312BfAF4CF0429DB4DA15a0cf5F770Ea3E770,AaveV3Gnosis POOL_IMPL,100 0x86b0521f92a554057e54B93098BA2A6Aaa2F4ACB,AaveV3Gnosis REPAY_WITH_COLLATERAL_ADAPTER,100 0x677c9f358dA5DC83aF6760a839E4448D72840d04,AaveV3Gnosis RISK_STEWARD,100 +0x33992721c565dA3248bd3af80524e054F5F05b42,AaveV3Gnosis STATA_FACTORY,100 0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6,AaveV3Gnosis STATIC_A_TOKEN_FACTORY,100 0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4,AaveV3Gnosis SWAP_COLLATERAL_ADAPTER,100 0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Gnosis UI_INCENTIVE_DATA_PROVIDER,100 diff --git a/scripts/configs/pools/ethereum.ts b/scripts/configs/pools/ethereum.ts index 8148b2b5..0682d78f 100644 --- a/scripts/configs/pools/ethereum.ts +++ b/scripts/configs/pools/ethereum.ts @@ -82,6 +82,7 @@ export const mainnetProtoV3Pool: PoolConfig = { WETH_GATEWAY: '0xA434D495249abE33E031Fe71a969B81f3c07950D', WITHDRAW_SWAP_ADAPTER: '0x78F8Bd884C3D738B74B420540659c82f392820e0', SAVINGS_DAI_TOKEN_WRAPPER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034', + STATA_FACTORY: '0xCb0b5cA20b6C5C02A9A3B2cE433650768eD2974F', }, }; @@ -102,9 +103,7 @@ export const lidoEthereumMainnetProtoV3Pool: PoolConfig = { CAPS_PLUS_RISK_STEWARD: '0x3843b29118fFC18d5d12EE079d0324E1bF115e69', RISK_STEWARD: '0x30adC2f98ff78fDde12F191Acb82699f640694FB', DEBT_SWAP_ADAPTER: '0xd1B2dec98A95B773C4909B5CD8FB455F467A527f', - // STATIC_A_TOKEN_FACTORY: '', - // FREEZING_STEWARD: '', - // RATES_FACTORY: '', + STATA_FACTORY: '0x347C75d19718a05148687E13dca259aD016aB411', }, }; diff --git a/scripts/configs/pools/gnosis.ts b/scripts/configs/pools/gnosis.ts index 8157b4b1..2545b5a5 100644 --- a/scripts/configs/pools/gnosis.ts +++ b/scripts/configs/pools/gnosis.ts @@ -16,6 +16,7 @@ export const gnosisProtoV3: PoolConfig = { RISK_STEWARD: '0x677c9f358dA5DC83aF6760a839E4448D72840d04', FREEZING_STEWARD: '0x3Ceaf9b6CAb92dFe6302D0CC3F1BA880C28d35e5', STATIC_A_TOKEN_FACTORY: '0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6', + STATA_FACTORY: '0x33992721c565dA3248bd3af80524e054F5F05b42', REPAY_WITH_COLLATERAL_ADAPTER: '0x86b0521f92a554057e54B93098BA2A6Aaa2F4ACB', SWAP_COLLATERAL_ADAPTER: '0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4', DEBT_SWAP_ADAPTER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034', diff --git a/src/AaveV3Ethereum.sol b/src/AaveV3Ethereum.sol index 968e7c3b..6357808b 100644 --- a/src/AaveV3Ethereum.sol +++ b/src/AaveV3Ethereum.sol @@ -106,6 +106,9 @@ library AaveV3Ethereum { // https://etherscan.io/address/0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034 address internal constant SAVINGS_DAI_TOKEN_WRAPPER = 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034; + + // https://etherscan.io/address/0xCb0b5cA20b6C5C02A9A3B2cE433650768eD2974F + address internal constant STATA_FACTORY = 0xCb0b5cA20b6C5C02A9A3B2cE433650768eD2974F; } library AaveV3EthereumAssets { // https://etherscan.io/address/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 @@ -129,6 +132,9 @@ library AaveV3EthereumAssets { // https://etherscan.io/address/0x252231882FB38481497f3C767469106297c8d93b address internal constant WETH_STATIC_A_TOKEN = 0x252231882FB38481497f3C767469106297c8d93b; + // https://etherscan.io/address/0x0bfc9d54Fc184518A81162F8fB99c2eACa081202 + address internal constant WETH_STATA_TOKEN = 0x0bfc9d54Fc184518A81162F8fB99c2eACa081202; + // https://etherscan.io/address/0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0 address internal constant wstETH_UNDERLYING = 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0; @@ -192,6 +198,9 @@ library AaveV3EthereumAssets { // https://etherscan.io/address/0x73edDFa87C71ADdC275c2b9890f5c3a8480bC9E6 address internal constant USDC_STATIC_A_TOKEN = 0x73edDFa87C71ADdC275c2b9890f5c3a8480bC9E6; + // https://etherscan.io/address/0xD4fa2D31b7968E448877f69A96DE69f5de8cD23E + address internal constant USDC_STATA_TOKEN = 0xD4fa2D31b7968E448877f69A96DE69f5de8cD23E; + // https://etherscan.io/address/0x6B175474E89094C44Da98b954EedeAC495271d0F address internal constant DAI_UNDERLYING = 0x6B175474E89094C44Da98b954EedeAC495271d0F; @@ -296,6 +305,9 @@ library AaveV3EthereumAssets { // https://etherscan.io/address/0x862c57d48becB45583AEbA3f489696D22466Ca1b address internal constant USDT_STATIC_A_TOKEN = 0x862c57d48becB45583AEbA3f489696D22466Ca1b; + // https://etherscan.io/address/0x7Bc3485026Ac48b6cf9BaF0A377477Fff5703Af8 + address internal constant USDT_STATA_TOKEN = 0x7Bc3485026Ac48b6cf9BaF0A377477Fff5703Af8; + // https://etherscan.io/address/0xae78736Cd615f374D3085123A210448E74Fc6393 address internal constant rETH_UNDERLYING = 0xae78736Cd615f374D3085123A210448E74Fc6393; @@ -824,6 +836,9 @@ library AaveV3EthereumAssets { address internal constant USDS_INTEREST_RATE_STRATEGY = 0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB; + // https://etherscan.io/address/0xb80B3215EA8183a064073f9892eb64236160a4dF + address internal constant USDS_STATA_TOKEN = 0xb80B3215EA8183a064073f9892eb64236160a4dF; + // https://etherscan.io/address/0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7 address internal constant rsETH_UNDERLYING = 0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7; diff --git a/src/AaveV3EthereumLido.sol b/src/AaveV3EthereumLido.sol index d54fa21f..ae0c9324 100644 --- a/src/AaveV3EthereumLido.sol +++ b/src/AaveV3EthereumLido.sol @@ -90,6 +90,9 @@ library AaveV3EthereumLido { // https://etherscan.io/address/0xd1B2dec98A95B773C4909B5CD8FB455F467A527f address internal constant DEBT_SWAP_ADAPTER = 0xd1B2dec98A95B773C4909B5CD8FB455F467A527f; + + // https://etherscan.io/address/0x347C75d19718a05148687E13dca259aD016aB411 + address internal constant STATA_FACTORY = 0x347C75d19718a05148687E13dca259aD016aB411; } library AaveV3EthereumLidoAssets { // https://etherscan.io/address/0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0 @@ -110,6 +113,9 @@ library AaveV3EthereumLidoAssets { address internal constant wstETH_INTEREST_RATE_STRATEGY = 0x8958b1C39269167527821f8c276Ef7504883f2fa; + // https://etherscan.io/address/0x775F661b0bD1739349b9A2A3EF60be277c5d2D29 + address internal constant wstETH_STATA_TOKEN = 0x775F661b0bD1739349b9A2A3EF60be277c5d2D29; + // https://etherscan.io/address/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 address internal constant WETH_UNDERLYING = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; @@ -128,6 +134,9 @@ library AaveV3EthereumLidoAssets { address internal constant WETH_INTEREST_RATE_STRATEGY = 0x8958b1C39269167527821f8c276Ef7504883f2fa; + // https://etherscan.io/address/0x0FE906e030a44eF24CA8c7dC7B7c53A6C4F00ce9 + address internal constant WETH_STATA_TOKEN = 0x0FE906e030a44eF24CA8c7dC7B7c53A6C4F00ce9; + // https://etherscan.io/address/0xdC035D45d973E3EC169d2276DDab16f1e407384F address internal constant USDS_UNDERLYING = 0xdC035D45d973E3EC169d2276DDab16f1e407384F; diff --git a/src/AaveV3Gnosis.sol b/src/AaveV3Gnosis.sol index 5e136bbb..789ec183 100644 --- a/src/AaveV3Gnosis.sol +++ b/src/AaveV3Gnosis.sol @@ -84,6 +84,9 @@ library AaveV3Gnosis { // https://gnosisscan.io/address/0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6 address internal constant STATIC_A_TOKEN_FACTORY = 0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6; + // https://gnosisscan.io/address/0x33992721c565dA3248bd3af80524e054F5F05b42 + address internal constant STATA_FACTORY = 0x33992721c565dA3248bd3af80524e054F5F05b42; + // https://gnosisscan.io/address/0x86b0521f92a554057e54B93098BA2A6Aaa2F4ACB address internal constant REPAY_WITH_COLLATERAL_ADAPTER = 0x86b0521f92a554057e54B93098BA2A6Aaa2F4ACB; @@ -119,6 +122,9 @@ library AaveV3GnosisAssets { // https://gnosisscan.io/address/0xD843FB478c5aA9759FeA3f3c98D467e2F136190a address internal constant WETH_STATIC_A_TOKEN = 0xD843FB478c5aA9759FeA3f3c98D467e2F136190a; + // https://gnosisscan.io/address/0x57f664882F762FA37903FC864e2B633D384B411A + address internal constant WETH_STATA_TOKEN = 0x57f664882F762FA37903FC864e2B633D384B411A; + // https://gnosisscan.io/address/0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6 address internal constant wstETH_UNDERLYING = 0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6; @@ -140,6 +146,9 @@ library AaveV3GnosisAssets { // https://gnosisscan.io/address/0xECfD0638175e291BA3F784A58FB9D38a25418904 address internal constant wstETH_STATIC_A_TOKEN = 0xECfD0638175e291BA3F784A58FB9D38a25418904; + // https://gnosisscan.io/address/0x773CDA0CADe2A3d86E6D4e30699d40bB95174ff2 + address internal constant wstETH_STATA_TOKEN = 0x773CDA0CADe2A3d86E6D4e30699d40bB95174ff2; + // https://gnosisscan.io/address/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb address internal constant GNO_UNDERLYING = 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb; @@ -160,6 +169,9 @@ library AaveV3GnosisAssets { // https://gnosisscan.io/address/0x2D737e2B0e175f05D0904C208d6C4e40da570f65 address internal constant GNO_STATIC_A_TOKEN = 0x2D737e2B0e175f05D0904C208d6C4e40da570f65; + // https://gnosisscan.io/address/0x7c16F0185A26Db0AE7a9377f23BC18ea7ce5d644 + address internal constant GNO_STATA_TOKEN = 0x7c16F0185A26Db0AE7a9377f23BC18ea7ce5d644; + // https://gnosisscan.io/address/0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83 address internal constant USDC_UNDERLYING = 0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83; @@ -264,6 +276,9 @@ library AaveV3GnosisAssets { // https://gnosisscan.io/address/0xf0E7eC247b918311afa054E0AEdb99d74c31b809 address internal constant USDCe_STATIC_A_TOKEN = 0xf0E7eC247b918311afa054E0AEdb99d74c31b809; + + // https://gnosisscan.io/address/0x51350d88c1bd32Cc6A79368c9Fb70373Fb71F375 + address internal constant USDCe_STATA_TOKEN = 0x51350d88c1bd32Cc6A79368c9Fb70373Fb71F375; } library AaveV3GnosisEModes { uint8 internal constant NONE = 0; diff --git a/src/ts/AaveV3Ethereum.ts b/src/ts/AaveV3Ethereum.ts index c2439f78..c14c1836 100644 --- a/src/ts/AaveV3Ethereum.ts +++ b/src/ts/AaveV3Ethereum.ts @@ -92,6 +92,9 @@ export const WITHDRAW_SWAP_ADAPTER = '0x78F8Bd884C3D738B74B420540659c82f392820e0 // https://etherscan.io/address/0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034 export const SAVINGS_DAI_TOKEN_WRAPPER = '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034'; +// https://etherscan.io/address/0xCb0b5cA20b6C5C02A9A3B2cE433650768eD2974F +export const STATA_FACTORY = '0xCb0b5cA20b6C5C02A9A3B2cE433650768eD2974F'; + export const CHAIN_ID = 1; export const ASSETS = { WETH: { @@ -103,6 +106,7 @@ export const ASSETS = { INTEREST_RATE_STRATEGY: '0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB', ORACLE: '0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419', STATIC_A_TOKEN: '0x252231882FB38481497f3C767469106297c8d93b', + STATA_TOKEN: '0x0bfc9d54Fc184518A81162F8fB99c2eACa081202', }, wstETH: { decimals: 18, @@ -133,6 +137,7 @@ export const ASSETS = { INTEREST_RATE_STRATEGY: '0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB', ORACLE: '0x736bF902680e68989886e9807CD7Db4B3E015d3C', STATIC_A_TOKEN: '0x73edDFa87C71ADdC275c2b9890f5c3a8480bC9E6', + STATA_TOKEN: '0xD4fa2D31b7968E448877f69A96DE69f5de8cD23E', }, DAI: { decimals: 18, @@ -183,6 +188,7 @@ export const ASSETS = { INTEREST_RATE_STRATEGY: '0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB', ORACLE: '0xC26D4a1c46d884cfF6dE9800B6aE7A8Cf48B4Ff8', STATIC_A_TOKEN: '0x862c57d48becB45583AEbA3f489696D22466Ca1b', + STATA_TOKEN: '0x7Bc3485026Ac48b6cf9BaF0A377477Fff5703Af8', }, rETH: { decimals: 18, @@ -444,6 +450,7 @@ export const ASSETS = { V_TOKEN: '0x490E0E6255bF65b43E2e02F7acB783c5e04572Ff', INTEREST_RATE_STRATEGY: '0x9ec6F08190DeA04A54f8Afc53Db96134e5E3FdFB', ORACLE: '0x4F01b76391A05d32B20FA2d05dD5963eE8db20E6', + STATA_TOKEN: '0xb80B3215EA8183a064073f9892eb64236160a4dF', }, rsETH: { decimals: 18, diff --git a/src/ts/AaveV3EthereumLido.ts b/src/ts/AaveV3EthereumLido.ts index f30325c6..e38b9732 100644 --- a/src/ts/AaveV3EthereumLido.ts +++ b/src/ts/AaveV3EthereumLido.ts @@ -77,6 +77,9 @@ export const RISK_STEWARD = '0x30adC2f98ff78fDde12F191Acb82699f640694FB'; // https://etherscan.io/address/0xd1B2dec98A95B773C4909B5CD8FB455F467A527f export const DEBT_SWAP_ADAPTER = '0xd1B2dec98A95B773C4909B5CD8FB455F467A527f'; +// https://etherscan.io/address/0x347C75d19718a05148687E13dca259aD016aB411 +export const STATA_FACTORY = '0x347C75d19718a05148687E13dca259aD016aB411'; + export const CHAIN_ID = 1; export const ASSETS = { wstETH: { @@ -87,6 +90,7 @@ export const ASSETS = { V_TOKEN: '0xE439edd2625772AA635B437C099C607B6eb7d35f', INTEREST_RATE_STRATEGY: '0x8958b1C39269167527821f8c276Ef7504883f2fa', ORACLE: '0xB4aB0c94159bc2d8C133946E7241368fc2F2a010', + STATA_TOKEN: '0x775F661b0bD1739349b9A2A3EF60be277c5d2D29', }, WETH: { decimals: 18, @@ -96,6 +100,7 @@ export const ASSETS = { V_TOKEN: '0x91b7d78BF92db564221f6B5AeE744D1727d1Dd1e', INTEREST_RATE_STRATEGY: '0x8958b1C39269167527821f8c276Ef7504883f2fa', ORACLE: '0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419', + STATA_TOKEN: '0x0FE906e030a44eF24CA8c7dC7B7c53A6C4F00ce9', }, USDS: { decimals: 18, diff --git a/src/ts/AaveV3Gnosis.ts b/src/ts/AaveV3Gnosis.ts index 0d580ed6..aea648ac 100644 --- a/src/ts/AaveV3Gnosis.ts +++ b/src/ts/AaveV3Gnosis.ts @@ -71,6 +71,9 @@ export const FREEZING_STEWARD = '0x3Ceaf9b6CAb92dFe6302D0CC3F1BA880C28d35e5'; // https://gnosisscan.io/address/0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6 export const STATIC_A_TOKEN_FACTORY = '0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6'; +// https://gnosisscan.io/address/0x33992721c565dA3248bd3af80524e054F5F05b42 +export const STATA_FACTORY = '0x33992721c565dA3248bd3af80524e054F5F05b42'; + // https://gnosisscan.io/address/0x86b0521f92a554057e54B93098BA2A6Aaa2F4ACB export const REPAY_WITH_COLLATERAL_ADAPTER = '0x86b0521f92a554057e54B93098BA2A6Aaa2F4ACB'; @@ -94,6 +97,7 @@ export const ASSETS = { INTEREST_RATE_STRATEGY: '0x4cE496f0a390745102540faF041EF92FfD588b44', ORACLE: '0xa767f745331D267c7751297D982b050c93985627', STATIC_A_TOKEN: '0xD843FB478c5aA9759FeA3f3c98D467e2F136190a', + STATA_TOKEN: '0x57f664882F762FA37903FC864e2B633D384B411A', }, wstETH: { decimals: 18, @@ -104,6 +108,7 @@ export const ASSETS = { INTEREST_RATE_STRATEGY: '0x4cE496f0a390745102540faF041EF92FfD588b44', ORACLE: '0x8Ee42Ba520cA106294163fb8b1ffE9C6Fba35507', STATIC_A_TOKEN: '0xECfD0638175e291BA3F784A58FB9D38a25418904', + STATA_TOKEN: '0x773CDA0CADe2A3d86E6D4e30699d40bB95174ff2', }, GNO: { decimals: 18, @@ -114,6 +119,7 @@ export const ASSETS = { INTEREST_RATE_STRATEGY: '0x4cE496f0a390745102540faF041EF92FfD588b44', ORACLE: '0x22441d81416430A54336aB28765abd31a792Ad37', STATIC_A_TOKEN: '0x2D737e2B0e175f05D0904C208d6C4e40da570f65', + STATA_TOKEN: '0x7c16F0185A26Db0AE7a9377f23BC18ea7ce5d644', }, USDC: { decimals: 6, @@ -164,6 +170,7 @@ export const ASSETS = { INTEREST_RATE_STRATEGY: '0x4cE496f0a390745102540faF041EF92FfD588b44', ORACLE: '0x0a2d05bc646C65A029e602c257DfA14adF8BfAd2', STATIC_A_TOKEN: '0xf0E7eC247b918311afa054E0AEdb99d74c31b809', + STATA_TOKEN: '0x51350d88c1bd32Cc6A79368c9Fb70373Fb71F375', }, } as const; export const E_MODES = { diff --git a/tests/cache/verified.json b/tests/cache/verified.json index 20a96a47..d7b6a45d 100644 --- a/tests/cache/verified.json +++ b/tests/cache/verified.json @@ -2300,6 +2300,30 @@ }, "0xA1c93D2687f7014Aaf588c764E3Ce80aF016229b": { "name": "GnosisSafeProxy" + }, + "0xCb0b5cA20b6C5C02A9A3B2cE433650768eD2974F": { + "name": "TransparentUpgradeableProxy" + }, + "0x0bfc9d54Fc184518A81162F8fB99c2eACa081202": { + "name": "TransparentUpgradeableProxy" + }, + "0xD4fa2D31b7968E448877f69A96DE69f5de8cD23E": { + "name": "TransparentUpgradeableProxy" + }, + "0x7Bc3485026Ac48b6cf9BaF0A377477Fff5703Af8": { + "name": "TransparentUpgradeableProxy" + }, + "0x347C75d19718a05148687E13dca259aD016aB411": { + "name": "TransparentUpgradeableProxy" + }, + "0x0FE906e030a44eF24CA8c7dC7B7c53A6C4F00ce9": { + "name": "TransparentUpgradeableProxy" + }, + "0x775F661b0bD1739349b9A2A3EF60be277c5d2D29": { + "name": "TransparentUpgradeableProxy" + }, + "0xb80B3215EA8183a064073f9892eb64236160a4dF": { + "name": "TransparentUpgradeableProxy" } }, "10": { @@ -3389,6 +3413,21 @@ }, "0x8b8bf083fD1837486c141681E10Ea61D0f3cD692": { "name": "TransparentProxyFactory" + }, + "0x33992721c565dA3248bd3af80524e054F5F05b42": { + "name": "TransparentUpgradeableProxy" + }, + "0x57f664882F762FA37903FC864e2B633D384B411A": { + "name": "TransparentUpgradeableProxy" + }, + "0x773CDA0CADe2A3d86E6D4e30699d40bB95174ff2": { + "name": "TransparentUpgradeableProxy" + }, + "0x7c16F0185A26Db0AE7a9377f23BC18ea7ce5d644": { + "name": "TransparentUpgradeableProxy" + }, + "0x51350d88c1bd32Cc6A79368c9Fb70373Fb71F375": { + "name": "TransparentUpgradeableProxy" } }, "137": { diff --git a/tokenlist.json b/tokenlist.json index e0f3ab26..0a65fd42 100644 --- a/tokenlist.json +++ b/tokenlist.json @@ -1821,6 +1821,20 @@ "underlyingAToken": "0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8" } }, + { + "chainId": 1, + "address": "0x0bfc9d54Fc184518A81162F8fB99c2eACa081202", + "name": "Wrapped Aave Ethereum WETH", + "decimals": 18, + "symbol": "waEthWETH", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/stataweth.svg", + "extensions": { + "pool": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", + "underlying": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + "underlyingAToken": "0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8" + } + }, { "chainId": 1, "address": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0", @@ -1911,6 +1925,20 @@ "underlyingAToken": "0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c" } }, + { + "chainId": 1, + "address": "0xD4fa2D31b7968E448877f69A96DE69f5de8cD23E", + "name": "Wrapped Aave Ethereum USDC", + "decimals": 6, + "symbol": "waEthUSDC", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statausdc.svg", + "extensions": { + "pool": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", + "underlying": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "underlyingAToken": "0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c" + } + }, { "chainId": 1, "address": "0x018008bfb33d285247A21d44E50697654f754e63", @@ -2055,6 +2083,20 @@ "underlyingAToken": "0x23878914EFE38d27C4D67Ab83ed1b93A74D4086a" } }, + { + "chainId": 1, + "address": "0x7Bc3485026Ac48b6cf9BaF0A377477Fff5703Af8", + "name": "Wrapped Aave Ethereum USDT", + "decimals": 6, + "symbol": "waEthUSDT", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statausdt.svg", + "extensions": { + "pool": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", + "underlying": "0xdAC17F958D2ee523a2206206994597C13D831ec7", + "underlyingAToken": "0x23878914EFE38d27C4D67Ab83ed1b93A74D4086a" + } + }, { "chainId": 1, "address": "0xae78736Cd615f374D3085123A210448E74Fc6393", @@ -2820,6 +2862,20 @@ "underlying": "0xdC035D45d973E3EC169d2276DDab16f1e407384F" } }, + { + "chainId": 1, + "address": "0xb80B3215EA8183a064073f9892eb64236160a4dF", + "name": "Wrapped Aave Ethereum USDS", + "decimals": 18, + "symbol": "waEthUSDS", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statausds.svg", + "extensions": { + "pool": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", + "underlying": "0xdC035D45d973E3EC169d2276DDab16f1e407384F", + "underlyingAToken": "0x32a6268f9Ba3642Dda7892aDd74f1D34469A4259" + } + }, { "chainId": 1, "address": "0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7", @@ -4322,6 +4378,20 @@ "underlyingAToken": "0xa818F1B57c201E092C4A2017A91815034326Efd1" } }, + { + "chainId": 100, + "address": "0x57f664882F762FA37903FC864e2B633D384B411A", + "name": "Wrapped Aave Gnosis WETH", + "decimals": 18, + "symbol": "waGnoWETH", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/stataweth.svg", + "extensions": { + "pool": "0xb50201558B00496A145fE76f7424749556E326D8", + "underlying": "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1", + "underlyingAToken": "0xa818F1B57c201E092C4A2017A91815034326Efd1" + } + }, { "chainId": 100, "address": "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6", @@ -4358,6 +4428,20 @@ "underlyingAToken": "0x23e4E76D01B2002BE436CE8d6044b0aA2f68B68a" } }, + { + "chainId": 100, + "address": "0x773CDA0CADe2A3d86E6D4e30699d40bB95174ff2", + "name": "Wrapped Aave Gnosis wstETH", + "decimals": 18, + "symbol": "waGnowstETH", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statawsteth.svg", + "extensions": { + "pool": "0xb50201558B00496A145fE76f7424749556E326D8", + "underlying": "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6", + "underlyingAToken": "0x23e4E76D01B2002BE436CE8d6044b0aA2f68B68a" + } + }, { "chainId": 100, "address": "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb", @@ -4394,6 +4478,20 @@ "underlyingAToken": "0xA1Fa064A85266E2Ca82DEe5C5CcEC84DF445760e" } }, + { + "chainId": 100, + "address": "0x7c16F0185A26Db0AE7a9377f23BC18ea7ce5d644", + "name": "Wrapped Aave Gnosis GNO", + "decimals": 18, + "symbol": "waGnoGNO", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statagno.svg", + "extensions": { + "pool": "0xb50201558B00496A145fE76f7424749556E326D8", + "underlying": "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb", + "underlyingAToken": "0xA1Fa064A85266E2Ca82DEe5C5CcEC84DF445760e" + } + }, { "chainId": 100, "address": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83", @@ -4574,6 +4672,20 @@ "underlyingAToken": "0xC0333cb85B59a788d8C7CAe5e1Fd6E229A3E5a65" } }, + { + "chainId": 100, + "address": "0x51350d88c1bd32Cc6A79368c9Fb70373Fb71F375", + "name": "Wrapped Aave Gnosis USDCe", + "decimals": 6, + "symbol": "waGnoUSDCe", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statausdc.svg", + "extensions": { + "pool": "0xb50201558B00496A145fE76f7424749556E326D8", + "underlying": "0x2a22f9c3b484c3629090FeED35F17Ff8F88f76F0", + "underlyingAToken": "0xC0333cb85B59a788d8C7CAe5e1Fd6E229A3E5a65" + } + }, { "chainId": 56, "address": "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82", @@ -6597,6 +6709,20 @@ "underlying": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" } }, + { + "chainId": 1, + "address": "0x775F661b0bD1739349b9A2A3EF60be277c5d2D29", + "name": "Wrapped Aave Ethereum Lido wstETH", + "decimals": 18, + "symbol": "waEthLidowstETH", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statawsteth.svg", + "extensions": { + "pool": "0x4e033931ad43597d96D6bcc25c280717730B58B1", + "underlying": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0", + "underlyingAToken": "0xC035a7cf15375cE2706766804551791aD035E0C2" + } + }, { "chainId": 1, "address": "0xfA1fDbBD71B0aA16162D76914d69cD8CB3Ef92da", @@ -6610,6 +6736,20 @@ "underlying": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" } }, + { + "chainId": 1, + "address": "0x0FE906e030a44eF24CA8c7dC7B7c53A6C4F00ce9", + "name": "Wrapped Aave Ethereum Lido WETH", + "decimals": 18, + "symbol": "waEthLidoWETH", + "tags": ["aaveV3", "stataToken"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/stataweth.svg", + "extensions": { + "pool": "0x4e033931ad43597d96D6bcc25c280717730B58B1", + "underlying": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + "underlyingAToken": "0xfA1fDbBD71B0aA16162D76914d69cD8CB3Ef92da" + } + }, { "chainId": 1, "address": "0x09AA30b182488f769a9824F15E6Ce58591Da4781", @@ -6724,6 +6864,6 @@ } } ], - "version": { "major": 3, "minor": 0, "patch": 61 }, - "timestamp": "2024-11-22T09:58:33.514Z" + "version": { "major": 3, "minor": 0, "patch": 63 }, + "timestamp": "2024-11-28T10:58:50.316Z" }