From 483e27dd761d5ec2b7d4d486c4d0f40433fd5832 Mon Sep 17 00:00:00 2001 From: Lukas Date: Wed, 16 Oct 2024 17:00:51 +0200 Subject: [PATCH] feat(secrets): use `ALCHEMY_API_KEY` if present (#646) * feat: use alchemy * feat: use alchemy * docs: add example env :lipstick: * fix: use alchemy key fix: remove alchemy api key --- .env.example | 1 + .github/workflows/checks.yml | 12 +- README.md | 1 + safe.csv | 98 ++++++- scripts/checks/configEngine.ts | 4 +- scripts/checks/stataFactory.ts | 4 +- scripts/checks/wethGateway.ts | 4 +- scripts/clients.ts | 324 +++++++++------------ scripts/generateSafeCSV.ts | 6 +- scripts/generator/generateTokenList.ts | 6 +- scripts/generator/governanceV3Generator.ts | 8 +- scripts/generator/protocolV2Generator.ts | 4 +- scripts/generator/protocolV3Generator.ts | 4 +- scripts/generator/utils.ts | 6 +- scripts/verifyVerified.ts | 6 +- src/AaveV3Arbitrum.sol | 4 +- src/AaveV3Avalanche.sol | 4 +- src/AaveV3BNB.sol | 4 +- src/AaveV3Base.sol | 4 +- src/AaveV3Ethereum.sol | 4 +- src/AaveV3EthereumEtherFi.sol | 4 +- src/AaveV3EthereumLido.sol | 4 +- src/AaveV3Fantom.sol | 142 ++++----- src/AaveV3Gnosis.sol | 4 +- src/AaveV3Metis.sol | 4 +- src/AaveV3Optimism.sol | 4 +- src/AaveV3Polygon.sol | 4 +- src/AaveV3Scroll.sol | 4 +- src/AaveV3ZkSync.sol | 4 +- src/MiscFantom.sol | 2 +- src/ts/AaveV3Arbitrum.ts | 4 +- src/ts/AaveV3Avalanche.ts | 4 +- src/ts/AaveV3BNB.ts | 4 +- src/ts/AaveV3Base.ts | 4 +- src/ts/AaveV3Ethereum.ts | 4 +- src/ts/AaveV3EthereumEtherFi.ts | 4 +- src/ts/AaveV3EthereumLido.ts | 4 +- src/ts/AaveV3Fantom.ts | 42 +-- src/ts/AaveV3Gnosis.ts | 4 +- src/ts/AaveV3Metis.ts | 4 +- src/ts/AaveV3Optimism.ts | 4 +- src/ts/AaveV3Polygon.ts | 4 +- src/ts/AaveV3Scroll.ts | 4 +- src/ts/AaveV3ZkSync.ts | 4 +- src/ts/MiscFantom.ts | 2 +- tokenlist.json | 224 +++++++++++++- ui/src/utils/getAddresses.ts | 1 - 47 files changed, 611 insertions(+), 394 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..15db10f7 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +ALCHEMY_API_KEY= diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 9f28c4bc..274143dd 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -33,17 +33,7 @@ jobs: - name: verify run: yarn check:sanity env: - RPC_MAINNET: ${{ secrets.RPC_MAINNET }} - RPC_POLYGON: ${{ secrets.RPC_POLYGON }} - RPC_AVALANCHE: ${{ secrets.RPC_AVALANCHE }} - RPC_OPTIMISM: ${{ secrets.RPC_OPTIMISM }} - RPC_ARBITRUM: ${{ secrets.RPC_ARBITRUM }} - RPC_BASE: ${{ secrets.RPC_BASE }} - RPC_GNOSIS: ${{ secrets.RPC_GNOSIS }} - RPC_BNB: ${{ secrets.RPC_BNB }} - RPC_METIS: ${{ secrets.RPC_METIS }} - RPC_SCROLL: ${{ secrets.RPC_SCROLL }} - RPC_FANTOM: ${{ secrets.RPC_FANTOM }} + ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }} verification: runs-on: ubuntu-latest permissions: diff --git a/README.md b/README.md index 91938cfd..ce453a80 100644 --- a/README.md +++ b/README.md @@ -114,3 +114,4 @@ In any case you need to run `yarn generate:addresses` afterwards and commit the This repository will try to use public rpcs. For some networks they are not very reliable though, therefore you can set `RPC_` in your .env to use a private rpc. Check https://github.com/bgd-labs/aave-address-book/blob/main/scripts/clients.ts#L39 for the chain naming convention. +Alternatively you can provide an `ALCHEMY_API_KEY` which will use alchemy as a fallback if no exact RPC is specified. diff --git a/safe.csv b/safe.csv index bae6ee74..e227f313 100644 --- a/safe.csv +++ b/safe.csv @@ -618,7 +618,7 @@ address,name,chainId 0xbaA999AC55EAce41CcAE355c77809e68Bb345170,AaveV3Ethereum POOL_ADDRESSES_PROVIDER_REGISTRY,1 0x64b761D848206f447Fe2dd461b0c635Ec39EbB27,AaveV3Ethereum POOL_CONFIGURATOR,1 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Ethereum POOL_CONFIGURATOR_IMPL,1 -0x1f64488c2C4686771dafA75915274d27878B667a,AaveV3Ethereum POOL_IMPL,1 +0xeF434E4573b90b6ECd4a00f4888381e4D0CC5Ccd,AaveV3Ethereum POOL_IMPL,1 0x35bb522b102326ea3F1141661dF4626C87000e3E,AaveV3Ethereum REPAY_WITH_COLLATERAL_ADAPTER,1 0xF3911922bd054Bf6f4d6A02B8ADAC444921B0c51,AaveV3Ethereum RISK_STEWARD,1 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034,AaveV3Ethereum SAVINGS_DAI_TOKEN_WRAPPER,1 @@ -666,7 +666,7 @@ address,name,chainId 0xbaA999AC55EAce41CcAE355c77809e68Bb345170,AaveV3EthereumEtherFi POOL_ADDRESSES_PROVIDER_REGISTRY,1 0x8438F4D29D895d75C86BDC25360c25eF0607E65d,AaveV3EthereumEtherFi POOL_CONFIGURATOR,1 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3EthereumEtherFi POOL_CONFIGURATOR_IMPL,1 -0x54b63fa80D6D657Bc77a5fbE56EA6bFAfB6E5A5d,AaveV3EthereumEtherFi POOL_IMPL,1 +0x3d881c2Dc90F00e7A52F06155f77FBEC63A779c7,AaveV3EthereumEtherFi POOL_IMPL,1 0x23b282c49C88d9161aae14b5eD777B976A5Ae65D,AaveV3EthereumEtherFi REPAY_WITH_COLLATERAL_ADAPTER,1 0x7FbBCCFB548c110226fEF5BEc816Ea04B5170EA3,AaveV3EthereumEtherFi RISK_STEWARD,1 0x1Ff525426800279843B71C0F818594DeCdC3b522,AaveV3EthereumEtherFi STATIC_A_TOKEN_FACTORY,1 @@ -712,7 +712,7 @@ address,name,chainId 0xC6cAB8D39D93DC0Bd5986E7Ce5Bb956E30103A43,AaveV3EthereumLido POOL_ADDRESSES_PROVIDER_REGISTRY,1 0x342631c6CeFC9cfbf97b2fe4aa242a236e1fd517,AaveV3EthereumLido POOL_CONFIGURATOR,1 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3EthereumLido POOL_CONFIGURATOR_IMPL,1 -0xF96e23D32584536552C70D99664D4B17F373229c,AaveV3EthereumLido POOL_IMPL,1 +0xf5b4664CB6D13189345119c60a948cdc7785d0FE,AaveV3EthereumLido POOL_IMPL,1 0x66E1aBdb06e7363a618D65a910c540dfED23754f,AaveV3EthereumLido REPAY_WITH_COLLATERAL_ADAPTER,1 0x45C4f8b32927eFFdf1dA3cA42498504947dd4d0D,AaveV3EthereumLido RISK_STEWARD,1 0xD0887AA7fEBC8962c622493646195e7c76D94fCE,AaveV3EthereumLido SWAP_COLLATERAL_ADAPTER,1 @@ -871,7 +871,7 @@ address,name,chainId 0x770ef9f4fe897e59daCc474EF11238303F9552b6,AaveV3Optimism POOL_ADDRESSES_PROVIDER_REGISTRY,10 0x8145eddDf43f50276641b55bd3AD95944510021E,AaveV3Optimism POOL_CONFIGURATOR,10 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Optimism POOL_CONFIGURATOR_IMPL,10 -0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4,AaveV3Optimism POOL_IMPL,10 +0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE,AaveV3Optimism POOL_IMPL,10 0xE229d5DE4BD5beEAf12d427B5B57BFe66abD2c3b,AaveV3Optimism PRICE_ORACLE_SENTINEL,10 0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Optimism REPAY_WITH_COLLATERAL_ADAPTER,10 0x9062F78b631f33D24Ed058cBc116A653452ea82A,AaveV3Optimism RISK_STEWARD,10 @@ -957,7 +957,7 @@ address,name,chainId 0x117684358D990E42Eb1649E7e8C4691951dc1E71,AaveV3BNB POOL_ADDRESSES_PROVIDER_REGISTRY,56 0x67bdF23C7fCE7C65fF7415Ba3F2520B45D6f9584,AaveV3BNB POOL_CONFIGURATOR,56 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3BNB POOL_CONFIGURATOR_IMPL,56 -0xE498675A3dd5aB2Cab72986dc7AA9B2AE87Acec4,AaveV3BNB POOL_IMPL,56 +0xB769c2A9259B3Eedaf120d8643C4C7EAe977fd7f,AaveV3BNB POOL_IMPL,56 0x5598BbFA2f4fE8151f45bBA0a3edE1b54B51a0a9,AaveV3BNB REPAY_WITH_COLLATERAL_ADAPTER,56 0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726,AaveV3BNB RISK_STEWARD,56 0x326aB0868bD279382Be2DF5E228Cb8AF38649AB4,AaveV3BNB STATIC_A_TOKEN_FACTORY,56 @@ -1044,7 +1044,7 @@ address,name,chainId 0x1236010CECea55998384e795B59815D871f5f94d,AaveV3Gnosis POOL_ADDRESSES_PROVIDER_REGISTRY,100 0x7304979ec9E4EaA0273b6A037a31c4e9e5A75D16,AaveV3Gnosis POOL_CONFIGURATOR,100 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Gnosis POOL_CONFIGURATOR_IMPL,100 -0x8a48EF9287c402C119c14a5f6897F6dFdc12cb45,AaveV3Gnosis POOL_IMPL,100 +0xF2C312BfAF4CF0429DB4DA15a0cf5F770Ea3E770,AaveV3Gnosis POOL_IMPL,100 0x0b9cA640284cf2636577703f785D5aEEc466BC56,AaveV3Gnosis RISK_STEWARD,100 0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6,AaveV3Gnosis STATIC_A_TOKEN_FACTORY,100 0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Gnosis UI_INCENTIVE_DATA_PROVIDER,100 @@ -1295,7 +1295,7 @@ address,name,chainId 0x770ef9f4fe897e59daCc474EF11238303F9552b6,AaveV3Polygon POOL_ADDRESSES_PROVIDER_REGISTRY,137 0x8145eddDf43f50276641b55bd3AD95944510021E,AaveV3Polygon POOL_CONFIGURATOR,137 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Polygon POOL_CONFIGURATOR_IMPL,137 -0x1f69d4700B34A1D9F92E55235df414FcC02A8306,AaveV3Polygon POOL_IMPL,137 +0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9,AaveV3Polygon POOL_IMPL,137 0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Polygon REPAY_WITH_COLLATERAL_ADAPTER,137 0xfF33BEcB9ECFE4328D4f9C37bE0F07b2CFe976E3,AaveV3Polygon RISK_STEWARD,137 0x397202AB0b4E7C954ac0c493c00749C517210953,AaveV3Polygon STATIC_A_TOKEN_FACTORY,137 @@ -1327,6 +1327,78 @@ address,name,chainId 0xB4e496f70602fE2AC6Ae511D028BA4D194773B29,MiscPolygon TRANSPARENT_PROXY_FACTORY,137 0xdEd6C522d803E35f65318a9a4d7333a22d582199,MiscPolygon stMATIC_RATE_PROVIDER,137 0x3Ea1eC855fBda8bA0396975eC260AD2e9B2Bc01c,MiscPolygon wstETH_stETH_AGGREGATOR,137 +0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654,AaveV3Fantom AAVE_PROTOCOL_DATA_PROVIDER,250 +0x39CB97b105173b56b5a2b4b33AD25d6a50E6c949,AaveV3Fantom ACL_ADMIN,250 +0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B,AaveV3Fantom ACL_MANAGER,250 +0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E,AaveV3Fantom ASSETS DAI UNDERLYING,250 +0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE,AaveV3Fantom ASSETS DAI A_TOKEN,250 +0x8619d80FB0141ba7F184CbF22fd724116D9f7ffC,AaveV3Fantom ASSETS DAI V_TOKEN,250 +0xA9F3C3caE095527061e6d270DBE163693e6fda9D,AaveV3Fantom ASSETS DAI INTEREST_RATE_STRATEGY,250 +0x91d5DEFAFfE2854C7D02F50c80FA1fdc8A721e52,AaveV3Fantom ASSETS DAI ORACLE,250 +0xb3654dc3D10Ea7645f8319668E8F54d2574FBdC8,AaveV3Fantom ASSETS LINK UNDERLYING,250 +0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530,AaveV3Fantom ASSETS LINK A_TOKEN,250 +0x953A573793604aF8d41F306FEb8274190dB4aE0e,AaveV3Fantom ASSETS LINK V_TOKEN,250 +0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521,AaveV3Fantom ASSETS LINK INTEREST_RATE_STRATEGY,250 +0x221C773d8647BC3034e91a0c47062e26D20d97B4,AaveV3Fantom ASSETS LINK ORACLE,250 +0x04068DA6C83AFCFA0e13ba15A6696662335D5B75,AaveV3Fantom ASSETS USDC UNDERLYING,250 +0x625E7708f30cA75bfd92586e17077590C60eb4cD,AaveV3Fantom ASSETS USDC A_TOKEN,250 +0xFCCf3cAbbe80101232d343252614b6A3eE81C989,AaveV3Fantom ASSETS USDC V_TOKEN,250 +0xf4a0039F2d4a2EaD5216AbB6Ae4C4C3AA2dB9b82,AaveV3Fantom ASSETS USDC INTEREST_RATE_STRATEGY,250 +0x2553f4eeb82d5A26427b8d1106C51499CBa5D99c,AaveV3Fantom ASSETS USDC ORACLE,250 +0x321162Cd933E2Be498Cd2267a90534A804051b11,AaveV3Fantom ASSETS BTC UNDERLYING,250 +0x078f358208685046a11C85e8ad32895DED33A249,AaveV3Fantom ASSETS BTC A_TOKEN,250 +0x92b42c66840C7AD907b4BF74879FF3eF7c529473,AaveV3Fantom ASSETS BTC V_TOKEN,250 +0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521,AaveV3Fantom ASSETS BTC INTEREST_RATE_STRATEGY,250 +0x8e94C22142F4A64b99022ccDd994f4e9EC86E4B4,AaveV3Fantom ASSETS BTC ORACLE,250 +0x74b23882a30290451A17c44f4F05243b6b58C76d,AaveV3Fantom ASSETS ETH UNDERLYING,250 +0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8,AaveV3Fantom ASSETS ETH A_TOKEN,250 +0x0c84331e39d6658Cd6e6b9ba04736cC4c4734351,AaveV3Fantom ASSETS ETH V_TOKEN,250 +0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521,AaveV3Fantom ASSETS ETH INTEREST_RATE_STRATEGY,250 +0x11DdD3d147E5b83D01cee7070027092397d63658,AaveV3Fantom ASSETS ETH ORACLE,250 +0x049d68029688eAbF473097a2fC38ef61633A3C7A,AaveV3Fantom ASSETS fUSDT UNDERLYING,250 +0x6ab707Aca953eDAeFBc4fD23bA73294241490620,AaveV3Fantom ASSETS fUSDT A_TOKEN,250 +0xfb00AC187a8Eb5AFAE4eACE434F493Eb62672df7,AaveV3Fantom ASSETS fUSDT V_TOKEN,250 +0xf4a0039F2d4a2EaD5216AbB6Ae4C4C3AA2dB9b82,AaveV3Fantom ASSETS fUSDT INTEREST_RATE_STRATEGY,250 +0xF64b636c5dFe1d3555A847341cDC449f612307d0,AaveV3Fantom ASSETS fUSDT ORACLE,250 +0x6a07A792ab2965C72a5B8088d3a069A7aC3a993B,AaveV3Fantom ASSETS AAVE UNDERLYING,250 +0xf329e36C7bF6E5E86ce2150875a84Ce77f477375,AaveV3Fantom ASSETS AAVE A_TOKEN,250 +0xE80761Ea617F66F96274eA5e8c37f03960ecC679,AaveV3Fantom ASSETS AAVE V_TOKEN,250 +0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521,AaveV3Fantom ASSETS AAVE INTEREST_RATE_STRATEGY,250 +0xE6ecF7d2361B6459cBb3b4fb065E0eF4B175Fe74,AaveV3Fantom ASSETS AAVE ORACLE,250 +0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83,AaveV3Fantom ASSETS WFTM UNDERLYING,250 +0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97,AaveV3Fantom ASSETS WFTM A_TOKEN,250 +0x4a1c3aD6Ed28a636ee1751C69071f6be75DEb8B8,AaveV3Fantom ASSETS WFTM V_TOKEN,250 +0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521,AaveV3Fantom ASSETS WFTM INTEREST_RATE_STRATEGY,250 +0xf4766552D15AE4d256Ad41B6cf2933482B0680dc,AaveV3Fantom ASSETS WFTM ORACLE,250 +0x1E4F97b9f9F913c46F1632781732927B9019C68b,AaveV3Fantom ASSETS CRV UNDERLYING,250 +0x513c7E3a9c69cA3e22550eF58AC1C0088e918FFf,AaveV3Fantom ASSETS CRV A_TOKEN,250 +0x77CA01483f379E58174739308945f044e1a764dc,AaveV3Fantom ASSETS CRV V_TOKEN,250 +0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521,AaveV3Fantom ASSETS CRV INTEREST_RATE_STRATEGY,250 +0xa141D7E3B44594cc65142AE5F2C7844Abea66D2B,AaveV3Fantom ASSETS CRV ORACLE,250 +0xae75A438b2E0cB8Bb01Ec1E1e376De11D44477CC,AaveV3Fantom ASSETS SUSHI UNDERLYING,250 +0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA,AaveV3Fantom ASSETS SUSHI A_TOKEN,250 +0x34e2eD44EF7466D5f9E0b782B5c08b57475e7907,AaveV3Fantom ASSETS SUSHI V_TOKEN,250 +0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521,AaveV3Fantom ASSETS SUSHI INTEREST_RATE_STRATEGY,250 +0xCcc059a1a17577676c8673952Dc02070D29e5a66,AaveV3Fantom ASSETS SUSHI ORACLE,250 +0xBe85413851D195fC6341619cD68BfDc26a25b928,AaveV3Fantom COLLECTOR,250 +0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B,AaveV3Fantom DEFAULT_A_TOKEN_IMPL_REV_1,250 +0x929EC64c34a17401F460460D4B9390518E5B473e,AaveV3Fantom DEFAULT_INCENTIVES_CONTROLLER,250 +0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3,AaveV3Fantom DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,250 +0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73,AaveV3Fantom EMISSION_MANAGER,250 +0xfd6f3c1845604C8AE6c6E402ad17fb9885160754,AaveV3Fantom ORACLE,250 +0x794a61358D6845594F94dc1DB02A252b5b4814aD,AaveV3Fantom POOL,250 +0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb,AaveV3Fantom POOL_ADDRESSES_PROVIDER,250 +0x770ef9f4fe897e59daCc474EF11238303F9552b6,AaveV3Fantom POOL_ADDRESSES_PROVIDER_REGISTRY,250 +0x8145eddDf43f50276641b55bd3AD95944510021E,AaveV3Fantom POOL_CONFIGURATOR,250 +0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade,AaveV3Fantom POOL_CONFIGURATOR_IMPL,250 +0xDF9e4ABdbd94107932265319479643D3B05809dc,AaveV3Fantom POOL_IMPL,250 +0x1408401B2A7E28cB747b3e258D0831Fc926bAC51,AaveV3Fantom REPAY_WITH_COLLATERAL_ADAPTER,250 +0xE387c6053CE8EC9f8C3fa5cE085Af73114a695d3,AaveV3Fantom SWAP_COLLATERAL_ADAPTER,250 +0x67Da261c14fd94cE7fDd77a0A8476E5b244089A9,AaveV3Fantom UI_INCENTIVE_DATA_PROVIDER,250 +0xddf65434502E459C22263BE2ed7cF0f1FaFD44c0,AaveV3Fantom UI_POOL_DATA_PROVIDER,250 +0xBc790382B3686abffE4be14A030A96aC6154023a,AaveV3Fantom WALLET_BALANCE_PROVIDER,250 +0x1DcDA4de2Bf6c7AD9a34788D22aE6b7d55016e1f,AaveV3Fantom WETH_GATEWAY,250 +0x9abf798f5314BFd793A9E57A654BEd35af4A1D60,MiscFantom PARASWAP_FEE_CLAIMER,250 0x5F2A704cE47B373c908fE8A29514249469b52b99,AaveV3ZkSync AAVE_PROTOCOL_DATA_PROVIDER,324 0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020,AaveV3ZkSync ACL_ADMIN,324 0xc6150b63c2F02528d4A969a248710A4658ed7928,AaveV3ZkSync ACL_MANAGER,324 @@ -1367,7 +1439,7 @@ address,name,chainId 0x0753E3637ddC6efc40759D9c347251046644F25F,AaveV3ZkSync POOL_ADDRESSES_PROVIDER_REGISTRY,324 0x0207d31b4377C74bEC37356aaD83E3dCc979F40E,AaveV3ZkSync POOL_CONFIGURATOR,324 0xBc4c49630350F67D7Ec88785E5DF9A57c78a1b7d,AaveV3ZkSync POOL_CONFIGURATOR_IMPL,324 -0x3Db69F17e682a8E6f029a90c8DD04A4689B988b9,AaveV3ZkSync POOL_IMPL,324 +0x79Bef43a562047B8FDF6335b28Fa61820A442fD6,AaveV3ZkSync POOL_IMPL,324 0xDeDee21f34eff4e2902B95A106855834a608e19a,AaveV3ZkSync RISK_STEWARD,324 0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F9,AaveV3ZkSync STATIC_A_TOKEN_FACTORY,324 0x430Ef10d29237a0f061f9F7753fCe1cd1F5cF0e1,AaveV3ZkSync UI_INCENTIVE_DATA_PROVIDER,324 @@ -1431,7 +1503,7 @@ address,name,chainId 0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5,AaveV3Metis POOL_ADDRESSES_PROVIDER_REGISTRY,1088 0x69FEE8F261E004453BE0800BC9039717528645A6,AaveV3Metis POOL_CONFIGURATOR,1088 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Metis POOL_CONFIGURATOR_IMPL,1088 -0xC89fBD2a15e88A72A76428DA00dDBBE47cb4EBB0,AaveV3Metis POOL_IMPL,1088 +0xcA311Dce5b11436c7Bd7b3847E77adE29F829F8e,AaveV3Metis POOL_IMPL,1088 0x2B5EA1604BAbb7B730120950Cb13951f3525828A,AaveV3Metis PRICE_ORACLE_SENTINEL,1088 0xF73F2634b43344d86921DA3391d4EF0d5675Dd63,AaveV3Metis RISK_STEWARD,1088 0x9C62AdC332888F56998542415c38D7CDf3Ff7619,AaveV3Metis STATIC_A_TOKEN_FACTORY,1088 @@ -1517,7 +1589,7 @@ address,name,chainId 0x2f6571d3Eb9a4e350C68C36bCD2afe39530078E2,AaveV3Base POOL_ADDRESSES_PROVIDER_REGISTRY,8453 0x5731a04B1E775f0fdd454Bf70f3335886e9A96be,AaveV3Base POOL_CONFIGURATOR,8453 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Base POOL_CONFIGURATOR_IMPL,8453 -0xDea262629b7D28722Ad4189c515f93c996D2Cd72,AaveV3Base POOL_IMPL,8453 +0x3a9C471F13C9cA1eBDf440cf713C8404e498F9C3,AaveV3Base POOL_IMPL,8453 0x943AcD0c93d7a8Bee7dA5Fd0DC3d0028237074d6,AaveV3Base PRICE_ORACLE_SENTINEL,8453 0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4,AaveV3Base REPAY_WITH_COLLATERAL_ADAPTER,8453 0x963C0b3dFF5C35b171CcC11DAC006a605E42BeD2,AaveV3Base RISK_STEWARD,8453 @@ -1663,7 +1735,7 @@ address,name,chainId 0x770ef9f4fe897e59daCc474EF11238303F9552b6,AaveV3Arbitrum POOL_ADDRESSES_PROVIDER_REGISTRY,42161 0x8145eddDf43f50276641b55bd3AD95944510021E,AaveV3Arbitrum POOL_CONFIGURATOR,42161 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Arbitrum POOL_CONFIGURATOR_IMPL,42161 -0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4,AaveV3Arbitrum POOL_IMPL,42161 +0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE,AaveV3Arbitrum POOL_IMPL,42161 0x7A9ff54A6eE4a21223036890bB8c4ea2D62c686b,AaveV3Arbitrum PRICE_ORACLE_SENTINEL,42161 0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896,AaveV3Arbitrum RATES_FACTORY,42161 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034,AaveV3Arbitrum REPAY_WITH_COLLATERAL_ADAPTER,42161 @@ -1843,7 +1915,7 @@ address,name,chainId 0x770ef9f4fe897e59daCc474EF11238303F9552b6,AaveV3Avalanche POOL_ADDRESSES_PROVIDER_REGISTRY,43114 0x8145eddDf43f50276641b55bd3AD95944510021E,AaveV3Avalanche POOL_CONFIGURATOR,43114 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Avalanche POOL_CONFIGURATOR_IMPL,43114 -0x1f69d4700B34A1D9F92E55235df414FcC02A8306,AaveV3Avalanche POOL_IMPL,43114 +0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9,AaveV3Avalanche POOL_IMPL,43114 0xab22988D93d5F942fC6B6c6Ea285744809D1d9Cc,AaveV3Avalanche PROOF_OF_RESERVE,43114 0x80f2c02224a2E548FC67c0bF705eBFA825dd5439,AaveV3Avalanche PROOF_OF_RESERVE_AGGREGATOR,43114 0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Avalanche REPAY_WITH_COLLATERAL_ADAPTER,43114 @@ -1913,7 +1985,7 @@ address,name,chainId 0xFBedc64AeE24921cb43004312B9eF367a4162b57,AaveV3Scroll POOL_ADDRESSES_PROVIDER_REGISTRY,534352 0x32BCab42a2bb5AC577D24b425D46d8b8e0Df9b7f,AaveV3Scroll POOL_CONFIGURATOR,534352 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Scroll POOL_CONFIGURATOR_IMPL,534352 -0xE8Ba6eD06F0c00885754704108a72A54a5E5b764,AaveV3Scroll POOL_IMPL,534352 +0xcB2107Ace932591C57EB5D07A135F1F3Dd613Dc0,AaveV3Scroll POOL_IMPL,534352 0xfD0Ba55775C1e53f50736FA5528d8aa45FBcA391,AaveV3Scroll PRICE_ORACLE_SENTINEL,534352 0x5E27B8EfDe76814795a07c8a378FcdF09715850b,AaveV3Scroll RISK_STEWARD,534352 0x970b77b96D94966939a8F867c2BfC2aC0310C0e7,AaveV3Scroll STATIC_A_TOKEN_FACTORY,534352 diff --git a/scripts/checks/configEngine.ts b/scripts/checks/configEngine.ts index 21fdccb1..3687b54e 100644 --- a/scripts/checks/configEngine.ts +++ b/scripts/checks/configEngine.ts @@ -1,11 +1,11 @@ import {getContract} from 'viem'; -import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {getClient} from '../clients'; import {IAaveV3ConfigEngine_ABI} from '../../src/ts/abis/IAaveV3ConfigEngine'; export async function check(lib: string, addresses: Record) { // Aave V2 has a different type, being deprecated we don't validate it if (addresses.CONFIG_ENGINE && lib.startsWith('AaveV3')) { - const client = CHAIN_ID_CLIENT_MAP[addresses.CHAIN_ID]; + const client = getClient(addresses.CHAIN_ID); if (!client.chain?.testnet) { const engineContract = getContract({ abi: IAaveV3ConfigEngine_ABI, diff --git a/scripts/checks/stataFactory.ts b/scripts/checks/stataFactory.ts index 66b71d97..8f024bff 100644 --- a/scripts/checks/stataFactory.ts +++ b/scripts/checks/stataFactory.ts @@ -1,9 +1,9 @@ import {getContract} from 'viem'; -import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {getClient} from '../clients'; export async function check(lib: string, addresses: Record) { if (addresses.STATIC_A_TOKEN_FACTORY) { - const client = CHAIN_ID_CLIENT_MAP[addresses.CHAIN_ID]; + const client = getClient(addresses.CHAIN_ID); const factory = getContract({ abi: [ { diff --git a/scripts/checks/wethGateway.ts b/scripts/checks/wethGateway.ts index 8cc8c09a..c5e94041 100644 --- a/scripts/checks/wethGateway.ts +++ b/scripts/checks/wethGateway.ts @@ -1,11 +1,11 @@ import {getContract} from 'viem'; -import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {getClient} from '../clients'; import {IOwnable_ABI} from '../../src/ts/abis/IOwnable'; import {getGovernance} from './utils'; export async function check(lib: string, addresses: Record) { if (addresses.WETH_GATEWAY) { - const client = CHAIN_ID_CLIENT_MAP[addresses.CHAIN_ID]; + const client = getClient(addresses.CHAIN_ID); // on testnets owners are usually not governance if (!client.chain?.testnet) { const gateway = getContract({ diff --git a/scripts/clients.ts b/scripts/clients.ts index 9ee78c2f..a7c64eb6 100644 --- a/scripts/clients.ts +++ b/scripts/clients.ts @@ -1,4 +1,4 @@ -import {HttpTransportConfig, createClient, http} from 'viem'; +import {Chain, HttpTransportConfig, createClient, http} from 'viem'; import { mainnet, arbitrum, @@ -8,18 +8,13 @@ import { base, baseSepolia, sepolia, - goerli, bsc, avalanche, gnosis, polygonZkEvm, scroll, celo, - zkSync, avalancheFuji, - polygonMumbai, - arbitrumGoerli, - optimismGoerli, optimismSepolia, scrollSepolia, arbitrumSepolia, @@ -27,6 +22,7 @@ import { harmonyOne, fantomTestnet, fantom, + zksync, } from 'viem/chains'; import {Client} from 'viem'; import {ChainId} from '@bgd-labs/js-utils'; @@ -34,191 +30,131 @@ import {ChainId} from '@bgd-labs/js-utils'; const commonConfig: HttpTransportConfig = {timeout: 30_000, batch: true}; const batchConfig = {batch: {multicall: true}}; -export const mainnetClient = createClient({ - chain: mainnet, - transport: http(process.env.RPC_MAINNET, commonConfig), - ...batchConfig, -}); - -export const arbitrumClient = createClient({ - chain: arbitrum, - transport: http(process.env.RPC_ARBITRUM, commonConfig), - ...batchConfig, -}); - -export const polygonClient = createClient({ - chain: polygon, - transport: http(process.env.RPC_POLYGON, commonConfig), - ...batchConfig, -}); - -export const optimismClient = createClient({ - chain: optimism, - transport: http(process.env.RPC_OPTIMISM, commonConfig), - ...batchConfig, -}); - -export const metisClient = createClient({ - chain: metis, - transport: http(process.env.RPC_METIS, commonConfig), - ...batchConfig, -}); - -export const baseClient = createClient({ - chain: base, - transport: http(process.env.RPC_BASE, commonConfig), - ...batchConfig, -}); - -export const bnbClient = createClient({ - chain: bsc, - transport: http(process.env.RPC_BNB, commonConfig), - ...batchConfig, -}); - -export const avalancheClient = createClient({ - chain: avalanche, - transport: http(process.env.RPC_AVALANCHE, commonConfig), - ...batchConfig, -}); - -export const gnosisClient = createClient({ - chain: gnosis, - transport: http(process.env.RPC_GNOSIS, commonConfig), - ...batchConfig, -}); - -export const scrollClient = createClient({ - chain: scroll, - transport: http(process.env.RPC_SCROLL, commonConfig), - ...batchConfig, -}); - -export const zkEVMClient = createClient({ - chain: polygonZkEvm, - transport: http(process.env.RPC_ZKEVM, commonConfig), - ...batchConfig, -}); - -export const celoClient = createClient({ - chain: celo, - transport: http(process.env.RPC_CELO, commonConfig), - ...batchConfig, -}); - -export const zkSyncClient = createClient({ - chain: zkSync, - transport: http(process.env.RPC_ZKSYNC, commonConfig), - ...batchConfig, -}); - -// testnets -export const fujiClient = createClient({ - chain: avalancheFuji, - transport: http(process.env.RPC_FUJI, commonConfig), - ...batchConfig, -}); - -export const mumbaiClient = createClient({ - chain: polygonMumbai, - transport: http(process.env.RPC_MUMBAI, commonConfig), - ...batchConfig, -}); - -export const sepoliaClient = createClient({ - chain: sepolia, - transport: http(process.env.RPC_SEPOLIA, commonConfig), - ...batchConfig, -}); - -export const goerliClient = createClient({ - chain: goerli, - transport: http(process.env.RPC_GOERLI, commonConfig), - ...batchConfig, -}); - -export const arbitrumGoerliClient = createClient({ - chain: arbitrumGoerli, - transport: http(process.env.RPC_ARBITRUM_GOERLI, commonConfig), - ...batchConfig, -}); - -export const arbitrumSepoliaClient = createClient({ - chain: arbitrumSepolia, - transport: http(process.env.RPC_ARBITRUM_SEPOLIA, commonConfig), - ...batchConfig, -}); - -export const optimismGoerliClient = createClient({ - chain: optimismGoerli, - transport: http(process.env.RPC_OPTIMISM_GOERLI, commonConfig), - ...batchConfig, -}); - -export const optimismSepoliaClient = createClient({ - chain: optimismSepolia, - transport: http(process.env.RPC_OPTIMISM_SEPOLIA, commonConfig), - ...batchConfig, -}); - -export const scrollSepoliaClient = createClient({ - chain: scrollSepolia, - transport: http(process.env.RPC_SCROLL_SEPOLIA, commonConfig), - ...batchConfig, -}); - -export const baseSepoliaClient = createClient({ - chain: baseSepolia, - transport: http(process.env.RPC_BASE_SEPOLIA, commonConfig), - ...batchConfig, -}); - -// deprecated - -export const fantomTestnetClient = createClient({ - chain: fantomTestnet, - transport: http(process.env.RPC_FANTOM_TESTNET, commonConfig), - ...batchConfig, -}); - -export const fantomClient = createClient({ - chain: fantomTestnet, - transport: http(process.env.RPC_FANTOM, commonConfig), - ...batchConfig, -}); - -export const harmonyClient = createClient({ - chain: harmonyOne, - transport: http(process.env.RPC_HARMONY, commonConfig), - ...batchConfig, -}); - -export const CHAIN_ID_CLIENT_MAP: Record = { - [ChainId.mainnet]: mainnetClient, - [ChainId.arbitrum_one]: arbitrumClient, - [ChainId.arbitrum_goerli]: arbitrumGoerliClient, - [ChainId.arbitrum_sepolia]: arbitrumSepoliaClient, - [ChainId.polygon]: polygonClient, - [ChainId.optimism]: optimismClient, - [ChainId.optimism_goerli]: optimismGoerliClient, - [ChainId.optimism_sepolia]: optimismSepoliaClient, - [ChainId.metis]: metisClient, - [ChainId.base]: baseClient, - [ChainId.base_sepolia]: baseSepoliaClient, - [ChainId.sepolia]: sepoliaClient, - [ChainId.goerli]: goerliClient, - [ChainId.bnb]: bnbClient, - [ChainId.avalanche]: avalancheClient, - [ChainId.gnosis]: gnosisClient, - [ChainId.scroll]: scrollClient, - [ChainId.scroll_sepolia]: scrollSepoliaClient, - [ChainId.zkEVM]: zkEVMClient, - [ChainId.celo]: celoClient, - [ChainId.zkSync]: zkSyncClient, - [ChainId.fuji]: fujiClient, - [ChainId.mumbai]: mumbaiClient, - // deprecated - [ChainId.harmony]: harmonyClient, - [ChainId.fantom]: fantomClient, - [ChainId.fantom_testnet]: fantomTestnetClient, -} as const; +// @notice: fetched from alchemy private trpc api +// const data = await(await fetch('https://app-api.alchemy.com/trpc/config.getNetworkConfig')).json(); +// data.result.data.reduce((acc,val) => { +// acc[val.networkChainId] = val.kebabCaseId; +// return acc; +// },{}) +const alchemyNetworks: Record = { + 1: 'eth-mainnet', + 3: 'eth-ropsten', + 4: 'eth-rinkeby', + 5: 'eth-goerli', + 10: 'opt-mainnet', + 42: 'eth-kovan', + 56: 'bnb-mainnet', + 69: 'opt-kovan', + 97: 'bnb-testnet', + 100: 'gnosis-mainnet', + 137: 'polygon-mainnet', + 204: 'opbnb-mainnet', + 250: 'fantom-mainnet', + 252: 'frax-mainnet', + 300: 'zksync-sepolia', + 324: 'zksync-mainnet', + 420: 'opt-goerli', + 592: 'astar-mainnet', + 747: 'flow-mainnet', + 1088: 'metis-mainnet', + 1101: 'polygonzkevm-mainnet', + 1301: 'unichain-sepolia', + 1442: 'polygonzkevm-testnet', + 1946: 'soneium-minato', + 2442: 'polygonzkevm-cardona', + 2522: 'frax-sepolia', + 4002: 'fantom-testnet', + 5611: 'opbnb-testnet', + 7000: 'zetachain-mainnet', + 7001: 'zetachain-testnet', + 8453: 'base-mainnet', + 10200: 'gnosis-chiado', + 11011: 'shape-sepolia', + 42161: 'arb-mainnet', + 42170: 'arbnova-mainnet', + 43113: 'avax-fuji', + 43114: 'avax-mainnet', + 59141: 'linea-sepolia', + 59144: 'linea-mainnet', + 80001: 'polygon-mumbai', + 80002: 'polygon-amoy', + 80084: 'berachain-bartio', + 81457: 'blast-mainnet', + 84531: 'base-goerli', + 84532: 'base-sepolia', + 421611: 'arb-rinkeby', + 421613: 'arb-goerli', + 421614: 'arb-sepolia', + 534351: 'scroll-sepolia', + 534352: 'scroll-mainnet', + 7777777: 'zora-mainnet', + 11155111: 'eth-sepolia', + 11155420: 'opt-sepolia', + 168587773: 'blast-sepolia', + 999999999: 'zora-sepolia', +}; + +const networkEnv: Record = { + [ChainId.mainnet]: 'RPC_MAINNET', + [ChainId.optimism]: 'RPC_OPTIMISM', + [ChainId.bnb]: 'RPC_BNB', + [ChainId.gnosis]: 'RPC_GNOSIS', + [ChainId.polygon]: 'RPC_POLYGON', + [ChainId.fantom]: 'RPC_FANTOM', + [ChainId.zkSync]: 'RPC_ZKSYNC', + [ChainId.metis]: 'RPC_METIS', + [ChainId.base]: 'RPC_BASE', + [ChainId.arbitrum_one]: 'RPC_ARBITRUM', + [ChainId.avalanche]: 'RPC_AVALANCHE', + [ChainId.scroll]: 'RPC_SCROLL', +}; + +export const CHAIN_ID_CHAIN_MAP: Record = { + [ChainId.mainnet]: mainnet, + [ChainId.sepolia]: sepolia, + [ChainId.optimism]: optimism, + [ChainId.optimism_sepolia]: optimismSepolia, + [ChainId.bnb]: bsc, + [ChainId.gnosis]: gnosis, + [ChainId.polygon]: polygon, + [ChainId.fantom]: fantom, + [ChainId.fantom_testnet]: fantomTestnet, + [ChainId.zkSync]: zksync, + [ChainId.metis]: metis, + [ChainId.base]: base, + [ChainId.base_sepolia]: baseSepolia, + [ChainId.arbitrum_one]: arbitrum, + [ChainId.arbitrum_sepolia]: arbitrumSepolia, + [ChainId.avalanche]: avalanche, + [ChainId.fuji]: avalancheFuji, + [ChainId.scroll]: scroll, + [ChainId.scroll_sepolia]: scrollSepolia, + [ChainId.harmony]: harmonyOne, + [ChainId.zkEVM]: polygonZkEvm, + [ChainId.celo]: celo, +}; + +/** + * Selects a rpc based on a predefined priorization: + * 1. env.RPC_URL_ + * 2. alchemy if available + */ +function getRPCUrl(chainId: number): string | undefined { + if (process.env[networkEnv[chainId]]) return process.env[networkEnv[chainId]]; + if (alchemyNetworks[chainId] && process.env.ALCHEMY_API_KEY) + return `https://${alchemyNetworks[chainId]}.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`; +} + +const clientCache: Record = {}; + +export function getClient(chainId: number) { + console.log(chainId, getRPCUrl(chainId)); + if (!clientCache[chainId]) { + clientCache[chainId] = createClient({ + chain: CHAIN_ID_CHAIN_MAP[chainId], + transport: http(getRPCUrl(chainId), commonConfig), + ...batchConfig, + }); + } + return clientCache[chainId]; +} diff --git a/scripts/generateSafeCSV.ts b/scripts/generateSafeCSV.ts index 4c4fd719..48c84a70 100644 --- a/scripts/generateSafeCSV.ts +++ b/scripts/generateSafeCSV.ts @@ -1,10 +1,8 @@ import {writeFileSync} from 'fs'; import {flattenedAddresses} from '../ui/src/utils/getAddresses'; -import {CHAIN_ID_CLIENT_MAP} from './clients'; +import {CHAIN_ID_CHAIN_MAP} from './clients'; -const addresses = flattenedAddresses.filter( - (item) => !CHAIN_ID_CLIENT_MAP[item.chainId].chain?.testnet, -); +const addresses = flattenedAddresses.filter((item) => !CHAIN_ID_CHAIN_MAP[item.chainId].testnet); const safe = `address,name,chainId\n${addresses .sort((a, b) => a.chainId! - b.chainId!) diff --git a/scripts/generator/generateTokenList.ts b/scripts/generator/generateTokenList.ts index 6a00141e..dc609a2d 100644 --- a/scripts/generator/generateTokenList.ts +++ b/scripts/generator/generateTokenList.ts @@ -10,7 +10,7 @@ import {Address, getContract, Hex, zeroAddress} from 'viem'; import {IERC20Detailed_ABI} from '../../src/ts/abis/IERC20Detailed'; import {fixSymbol} from './assetsLibraryGenerator'; import {getSymbolUri, VARIANT} from './svgUtils'; -import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {CHAIN_ID_CHAIN_MAP, getClient} from '../clients'; const TAGS = { underlying: 'underlying', @@ -41,7 +41,7 @@ export async function generateTokenList(pools: TokenListParams) { const tokens: TokenInfo[] = []; for (const {reservesData, chainId, name: poolName, pool} of pools) { - if (CHAIN_ID_CLIENT_MAP[chainId].chain?.testnet) continue; + if (CHAIN_ID_CHAIN_MAP[chainId].testnet) continue; for (const reserve of reservesData) { async function addToken( token: Address, @@ -56,7 +56,7 @@ export async function generateTokenList(pools: TokenListParams) { const erc20contract = getContract({ abi: IERC20Detailed_ABI, address: token, - client: CHAIN_ID_CLIENT_MAP[chainId], + client: getClient(chainId), }); const [name, symbol] = cache ? [cache.name, cache.symbol] diff --git a/scripts/generator/governanceV3Generator.ts b/scripts/generator/governanceV3Generator.ts index 805a42ab..decc712d 100644 --- a/scripts/generator/governanceV3Generator.ts +++ b/scripts/generator/governanceV3Generator.ts @@ -12,7 +12,7 @@ import {IGovernanceCore_ABI} from '../../src/ts/abis/IGovernanceCore'; import {IPayloadsControllerCore_ABI} from '../../src/ts/abis/IPayloadsControllerCore'; import {IVotingStrategy_ABI} from '../../src/ts/abis/IVotingStrategy'; import {IVotingMachineWithProofs_ABI} from '../../src/ts/abis/IVotingMachineWithProofs'; -import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {getClient} from '../clients'; type ExecutorsV3 = { EXECUTOR_LVL_1: Hex; @@ -76,14 +76,14 @@ async function getGovernanceV3Addresses({CHAIN_ID, ADDRESSES}: GovernanceConfig) if (ADDRESSES.GOVERNANCE) { addresses.GOVERNANCE_POWER_STRATEGY = await getGovernancePowerStrategy( ADDRESSES.GOVERNANCE, - CHAIN_ID_CLIENT_MAP[CHAIN_ID], + getClient(CHAIN_ID), ); addresses.GOVERNANCE = {value: addresses.GOVERNANCE, type: 'IGovernanceCore'}; } if (ADDRESSES.PAYLOADS_CONTROLLER) { const executors = await fetchV3ExecutorAddresses( - CHAIN_ID_CLIENT_MAP[CHAIN_ID], + getClient(CHAIN_ID), ADDRESSES.PAYLOADS_CONTROLLER, ); addresses.PAYLOADS_CONTROLLER = { @@ -95,7 +95,7 @@ async function getGovernanceV3Addresses({CHAIN_ID, ADDRESSES}: GovernanceConfig) if (ADDRESSES.VOTING_MACHINE) { const strategyAndWareHouse = await getVotingStrategyAndWarehouse( ADDRESSES.VOTING_MACHINE, - CHAIN_ID_CLIENT_MAP[CHAIN_ID], + getClient(CHAIN_ID), ); addresses = {...addresses, ...strategyAndWareHouse}; } diff --git a/scripts/generator/protocolV2Generator.ts b/scripts/generator/protocolV2Generator.ts index d7702d6d..012b91ce 100644 --- a/scripts/generator/protocolV2Generator.ts +++ b/scripts/generator/protocolV2Generator.ts @@ -10,7 +10,7 @@ import { } from './utils'; import {generateAssetsLibrary} from './assetsLibraryGenerator'; import {fetchPoolAddresses} from './protocol-v2-generator/fetchPoolAddresses'; -import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {getClient} from '../clients'; import {fetchTokens, inferAdditionalTokenInfo} from './protocol-v2-generator/fetchTokens'; export interface PoolV2Addresses { @@ -32,7 +32,7 @@ export interface PoolV2Addresses { } export async function generateProtocolV2Library(poolConfig: PoolConfig) { - const client = CHAIN_ID_CLIENT_MAP[poolConfig.chainId]; + const client = getClient(poolConfig.chainId); if (!client) { throw new Error(`client for chain not found for chainId: ${poolConfig.chainId}`); } diff --git a/scripts/generator/protocolV3Generator.ts b/scripts/generator/protocolV3Generator.ts index f11617c8..f927ccc7 100644 --- a/scripts/generator/protocolV3Generator.ts +++ b/scripts/generator/protocolV3Generator.ts @@ -10,7 +10,7 @@ import { } from './utils'; import {generateAssetsLibrary} from './assetsLibraryGenerator'; import {fetchPoolAddresses} from './protocol-v3-generator/fetchPoolAddresses'; -import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {getClient} from '../clients'; import {fetchExternalPoolLibraries} from './protocol-v3-generator/fetchExternalPoolLibraries'; import {fetchEModes, generateEmodeLibrary} from './protocol-v3-generator/fetchEModes'; import {fetchTokens, inferAdditionalTokenInfo} from './protocol-v3-generator/fetchTokens'; @@ -53,7 +53,7 @@ function generateExternalLibraries( } export async function generateProtocolV3Library(poolConfig: PoolConfig) { - const client = CHAIN_ID_CLIENT_MAP[poolConfig.chainId]; + const client = getClient(poolConfig.chainId); if (!client) { throw new Error(`client for chain not found for chainId: ${poolConfig.chainId}`); } diff --git a/scripts/generator/utils.ts b/scripts/generator/utils.ts index 1e4a81fe..e03d7619 100644 --- a/scripts/generator/utils.ts +++ b/scripts/generator/utils.ts @@ -1,11 +1,11 @@ import {Client, Hex, getAddress, zeroAddress} from 'viem'; import {AddressInfo, Addresses} from '../configs/types'; import {getStorageAt} from 'viem/actions'; -import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {CHAIN_ID_CHAIN_MAP} from '../clients'; function getExplorerLink(chainId: number, address: Hex) { - const client = CHAIN_ID_CLIENT_MAP[chainId]; - let url = client.chain?.blockExplorers?.default.url; + const chain = CHAIN_ID_CHAIN_MAP[chainId]; + let url = chain.blockExplorers?.default.url; if (url && url.endsWith('/')) { url = url.slice(0, -1); // sanitize explorer url } diff --git a/scripts/verifyVerified.ts b/scripts/verifyVerified.ts index 0051aaa5..d4e3a0dc 100644 --- a/scripts/verifyVerified.ts +++ b/scripts/verifyVerified.ts @@ -2,7 +2,7 @@ import {ChainId} from '@bgd-labs/js-utils'; import {ListItem, flattenedAddresses} from '../ui/src/utils/getAddresses'; import {writeFileSync, readFileSync, existsSync, mkdirSync} from 'fs'; import {Address, zeroAddress} from 'viem'; -import {CHAIN_ID_CLIENT_MAP} from './clients'; +import {CHAIN_ID_CHAIN_MAP} from './clients'; const CHAIN_ID_API_KEY_MAP = { [ChainId.mainnet]: process.env.ETHERSCAN_API_KEY_MAINNET, @@ -23,7 +23,7 @@ const CHAIN_ID_API_KEY_MAP = { function getApiUrl(chainId: number) { if (chainId === ChainId.metis) return `https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api`; - return CHAIN_ID_CLIENT_MAP[chainId]?.chain?.blockExplorers?.default.apiUrl; + return CHAIN_ID_CHAIN_MAP[chainId].blockExplorers?.default.apiUrl; } function sleep(ms) { @@ -113,7 +113,7 @@ async function main() { for (const item of flattenedAddresses.filter( (item) => ![ChainId.harmony, ChainId.fantom].includes(item.chainId as any) && - !CHAIN_ID_CLIENT_MAP[item.chainId].chain?.testnet, + !CHAIN_ID_CHAIN_MAP[item.chainId].testnet, )) { // skip contracts for which we have checked verification before if (cache[item.chainId]?.[item.value]) continue; diff --git a/src/AaveV3Arbitrum.sol b/src/AaveV3Arbitrum.sol index 9ebbdd75..04074a07 100644 --- a/src/AaveV3Arbitrum.sol +++ b/src/AaveV3Arbitrum.sol @@ -34,8 +34,8 @@ library AaveV3Arbitrum { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x7F23D86Ee20D869112572136221e173428DD740B); - // https://arbiscan.io/address/0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4 - address internal constant POOL_IMPL = 0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4; + // https://arbiscan.io/address/0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE + address internal constant POOL_IMPL = 0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE; // https://arbiscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3Avalanche.sol b/src/AaveV3Avalanche.sol index 75a7f12c..61b1f221 100644 --- a/src/AaveV3Avalanche.sol +++ b/src/AaveV3Avalanche.sol @@ -31,8 +31,8 @@ library AaveV3Avalanche { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x7F23D86Ee20D869112572136221e173428DD740B); - // https://snowtrace.io/address/0x1f69d4700B34A1D9F92E55235df414FcC02A8306 - address internal constant POOL_IMPL = 0x1f69d4700B34A1D9F92E55235df414FcC02A8306; + // https://snowtrace.io/address/0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9 + address internal constant POOL_IMPL = 0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9; // https://snowtrace.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3BNB.sol b/src/AaveV3BNB.sol index 6fe65a0e..91113260 100644 --- a/src/AaveV3BNB.sol +++ b/src/AaveV3BNB.sol @@ -31,8 +31,8 @@ library AaveV3BNB { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x23dF2a19384231aFD114b036C14b6b03324D79BC); - // https://bscscan.com/address/0xE498675A3dd5aB2Cab72986dc7AA9B2AE87Acec4 - address internal constant POOL_IMPL = 0xE498675A3dd5aB2Cab72986dc7AA9B2AE87Acec4; + // https://bscscan.com/address/0xB769c2A9259B3Eedaf120d8643C4C7EAe977fd7f + address internal constant POOL_IMPL = 0xB769c2A9259B3Eedaf120d8643C4C7EAe977fd7f; // https://bscscan.com/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3Base.sol b/src/AaveV3Base.sol index aac25b93..28e24823 100644 --- a/src/AaveV3Base.sol +++ b/src/AaveV3Base.sol @@ -34,8 +34,8 @@ library AaveV3Base { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0xd82a47fdebB5bf5329b09441C3DaB4b5df2153Ad); - // https://basescan.org/address/0xDea262629b7D28722Ad4189c515f93c996D2Cd72 - address internal constant POOL_IMPL = 0xDea262629b7D28722Ad4189c515f93c996D2Cd72; + // https://basescan.org/address/0x3a9C471F13C9cA1eBDf440cf713C8404e498F9C3 + address internal constant POOL_IMPL = 0x3a9C471F13C9cA1eBDf440cf713C8404e498F9C3; // https://basescan.org/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3Ethereum.sol b/src/AaveV3Ethereum.sol index db338219..9891cc2d 100644 --- a/src/AaveV3Ethereum.sol +++ b/src/AaveV3Ethereum.sol @@ -31,8 +31,8 @@ library AaveV3Ethereum { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x41393e5e337606dc3821075Af65AeE84D7688CBD); - // https://etherscan.io/address/0x1f64488c2C4686771dafA75915274d27878B667a - address internal constant POOL_IMPL = 0x1f64488c2C4686771dafA75915274d27878B667a; + // https://etherscan.io/address/0xeF434E4573b90b6ECd4a00f4888381e4D0CC5Ccd + address internal constant POOL_IMPL = 0xeF434E4573b90b6ECd4a00f4888381e4D0CC5Ccd; // https://etherscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3EthereumEtherFi.sol b/src/AaveV3EthereumEtherFi.sol index 616bedc9..dc52d5e2 100644 --- a/src/AaveV3EthereumEtherFi.sol +++ b/src/AaveV3EthereumEtherFi.sol @@ -31,8 +31,8 @@ library AaveV3EthereumEtherFi { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0xE7d490885A68f00d9886508DF281D67263ed5758); - // https://etherscan.io/address/0x54b63fa80D6D657Bc77a5fbE56EA6bFAfB6E5A5d - address internal constant POOL_IMPL = 0x54b63fa80D6D657Bc77a5fbE56EA6bFAfB6E5A5d; + // https://etherscan.io/address/0x3d881c2Dc90F00e7A52F06155f77FBEC63A779c7 + address internal constant POOL_IMPL = 0x3d881c2Dc90F00e7A52F06155f77FBEC63A779c7; // https://etherscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3EthereumLido.sol b/src/AaveV3EthereumLido.sol index df1347f2..ea4ef4ee 100644 --- a/src/AaveV3EthereumLido.sol +++ b/src/AaveV3EthereumLido.sol @@ -31,8 +31,8 @@ library AaveV3EthereumLido { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x08795CFE08C7a81dCDFf482BbAAF474B240f31cD); - // https://etherscan.io/address/0xF96e23D32584536552C70D99664D4B17F373229c - address internal constant POOL_IMPL = 0xF96e23D32584536552C70D99664D4B17F373229c; + // https://etherscan.io/address/0xf5b4664CB6D13189345119c60a948cdc7785d0FE + address internal constant POOL_IMPL = 0xf5b4664CB6D13189345119c60a948cdc7785d0FE; // https://etherscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3Fantom.sol b/src/AaveV3Fantom.sol index 69b8cec5..1811d1f7 100644 --- a/src/AaveV3Fantom.sol +++ b/src/AaveV3Fantom.sol @@ -6,252 +6,252 @@ import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolData import {ICollector} from './common/ICollector.sol'; library AaveV3Fantom { - // https://testnet.ftmscan.com/address/0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb + // https://ftmscan.com/address/0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER = IPoolAddressesProvider(0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb); - // https://testnet.ftmscan.com/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD + // https://ftmscan.com/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD IPool internal constant POOL = IPool(0x794a61358D6845594F94dc1DB02A252b5b4814aD); - // https://testnet.ftmscan.com/address/0x8145eddDf43f50276641b55bd3AD95944510021E + // https://ftmscan.com/address/0x8145eddDf43f50276641b55bd3AD95944510021E IPoolConfigurator internal constant POOL_CONFIGURATOR = IPoolConfigurator(0x8145eddDf43f50276641b55bd3AD95944510021E); - // https://testnet.ftmscan.com/address/0xfd6f3c1845604C8AE6c6E402ad17fb9885160754 + // https://ftmscan.com/address/0xfd6f3c1845604C8AE6c6E402ad17fb9885160754 IAaveOracle internal constant ORACLE = IAaveOracle(0xfd6f3c1845604C8AE6c6E402ad17fb9885160754); - // https://testnet.ftmscan.com/address/0x39CB97b105173b56b5a2b4b33AD25d6a50E6c949 + // https://ftmscan.com/address/0x39CB97b105173b56b5a2b4b33AD25d6a50E6c949 address internal constant ACL_ADMIN = 0x39CB97b105173b56b5a2b4b33AD25d6a50E6c949; - // https://testnet.ftmscan.com/address/0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B + // https://ftmscan.com/address/0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B IACLManager internal constant ACL_MANAGER = IACLManager(0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B); - // https://testnet.ftmscan.com/address/0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654 + // https://ftmscan.com/address/0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654 IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654); - // https://testnet.ftmscan.com/address/0xDF9e4ABdbd94107932265319479643D3B05809dc + // https://ftmscan.com/address/0xDF9e4ABdbd94107932265319479643D3B05809dc address internal constant POOL_IMPL = 0xDF9e4ABdbd94107932265319479643D3B05809dc; - // https://testnet.ftmscan.com/address/0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade + // https://ftmscan.com/address/0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade address internal constant POOL_CONFIGURATOR_IMPL = 0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade; - // https://testnet.ftmscan.com/address/0x929EC64c34a17401F460460D4B9390518E5B473e + // https://ftmscan.com/address/0x929EC64c34a17401F460460D4B9390518E5B473e address internal constant DEFAULT_INCENTIVES_CONTROLLER = 0x929EC64c34a17401F460460D4B9390518E5B473e; - // https://testnet.ftmscan.com/address/0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73 + // https://ftmscan.com/address/0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73 address internal constant EMISSION_MANAGER = 0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73; - // https://testnet.ftmscan.com/address/0xBe85413851D195fC6341619cD68BfDc26a25b928 + // https://ftmscan.com/address/0xBe85413851D195fC6341619cD68BfDc26a25b928 ICollector internal constant COLLECTOR = ICollector(0xBe85413851D195fC6341619cD68BfDc26a25b928); - // https://testnet.ftmscan.com/address/0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B + // https://ftmscan.com/address/0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B address internal constant DEFAULT_A_TOKEN_IMPL_REV_1 = 0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B; - // https://testnet.ftmscan.com/address/0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3 + // https://ftmscan.com/address/0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3 address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = 0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3; - // https://testnet.ftmscan.com/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 + // https://ftmscan.com/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = 0x770ef9f4fe897e59daCc474EF11238303F9552b6; - // https://testnet.ftmscan.com/address/0x1408401B2A7E28cB747b3e258D0831Fc926bAC51 + // https://ftmscan.com/address/0x1408401B2A7E28cB747b3e258D0831Fc926bAC51 address internal constant REPAY_WITH_COLLATERAL_ADAPTER = 0x1408401B2A7E28cB747b3e258D0831Fc926bAC51; - // https://testnet.ftmscan.com/address/0xE387c6053CE8EC9f8C3fa5cE085Af73114a695d3 + // https://ftmscan.com/address/0xE387c6053CE8EC9f8C3fa5cE085Af73114a695d3 address internal constant SWAP_COLLATERAL_ADAPTER = 0xE387c6053CE8EC9f8C3fa5cE085Af73114a695d3; - // https://testnet.ftmscan.com/address/0x67Da261c14fd94cE7fDd77a0A8476E5b244089A9 + // https://ftmscan.com/address/0x67Da261c14fd94cE7fDd77a0A8476E5b244089A9 address internal constant UI_INCENTIVE_DATA_PROVIDER = 0x67Da261c14fd94cE7fDd77a0A8476E5b244089A9; - // https://testnet.ftmscan.com/address/0xddf65434502E459C22263BE2ed7cF0f1FaFD44c0 + // https://ftmscan.com/address/0xddf65434502E459C22263BE2ed7cF0f1FaFD44c0 address internal constant UI_POOL_DATA_PROVIDER = 0xddf65434502E459C22263BE2ed7cF0f1FaFD44c0; - // https://testnet.ftmscan.com/address/0xBc790382B3686abffE4be14A030A96aC6154023a + // https://ftmscan.com/address/0xBc790382B3686abffE4be14A030A96aC6154023a address internal constant WALLET_BALANCE_PROVIDER = 0xBc790382B3686abffE4be14A030A96aC6154023a; - // https://testnet.ftmscan.com/address/0x1DcDA4de2Bf6c7AD9a34788D22aE6b7d55016e1f + // https://ftmscan.com/address/0x1DcDA4de2Bf6c7AD9a34788D22aE6b7d55016e1f address internal constant WETH_GATEWAY = 0x1DcDA4de2Bf6c7AD9a34788D22aE6b7d55016e1f; } library AaveV3FantomAssets { - // https://testnet.ftmscan.com/address/0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E + // https://ftmscan.com/address/0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E address internal constant DAI_UNDERLYING = 0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E; uint8 internal constant DAI_DECIMALS = 18; - // https://testnet.ftmscan.com/address/0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE + // https://ftmscan.com/address/0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE address internal constant DAI_A_TOKEN = 0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE; - // https://testnet.ftmscan.com/address/0x8619d80FB0141ba7F184CbF22fd724116D9f7ffC + // https://ftmscan.com/address/0x8619d80FB0141ba7F184CbF22fd724116D9f7ffC address internal constant DAI_V_TOKEN = 0x8619d80FB0141ba7F184CbF22fd724116D9f7ffC; - // https://testnet.ftmscan.com/address/0x91d5DEFAFfE2854C7D02F50c80FA1fdc8A721e52 + // https://ftmscan.com/address/0x91d5DEFAFfE2854C7D02F50c80FA1fdc8A721e52 address internal constant DAI_ORACLE = 0x91d5DEFAFfE2854C7D02F50c80FA1fdc8A721e52; - // https://testnet.ftmscan.com/address/0xA9F3C3caE095527061e6d270DBE163693e6fda9D + // https://ftmscan.com/address/0xA9F3C3caE095527061e6d270DBE163693e6fda9D address internal constant DAI_INTEREST_RATE_STRATEGY = 0xA9F3C3caE095527061e6d270DBE163693e6fda9D; - // https://testnet.ftmscan.com/address/0xb3654dc3D10Ea7645f8319668E8F54d2574FBdC8 + // https://ftmscan.com/address/0xb3654dc3D10Ea7645f8319668E8F54d2574FBdC8 address internal constant LINK_UNDERLYING = 0xb3654dc3D10Ea7645f8319668E8F54d2574FBdC8; uint8 internal constant LINK_DECIMALS = 18; - // https://testnet.ftmscan.com/address/0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530 + // https://ftmscan.com/address/0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530 address internal constant LINK_A_TOKEN = 0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530; - // https://testnet.ftmscan.com/address/0x953A573793604aF8d41F306FEb8274190dB4aE0e + // https://ftmscan.com/address/0x953A573793604aF8d41F306FEb8274190dB4aE0e address internal constant LINK_V_TOKEN = 0x953A573793604aF8d41F306FEb8274190dB4aE0e; - // https://testnet.ftmscan.com/address/0x221C773d8647BC3034e91a0c47062e26D20d97B4 + // https://ftmscan.com/address/0x221C773d8647BC3034e91a0c47062e26D20d97B4 address internal constant LINK_ORACLE = 0x221C773d8647BC3034e91a0c47062e26D20d97B4; - // https://testnet.ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 + // https://ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 address internal constant LINK_INTEREST_RATE_STRATEGY = 0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521; - // https://testnet.ftmscan.com/address/0x04068DA6C83AFCFA0e13ba15A6696662335D5B75 + // https://ftmscan.com/address/0x04068DA6C83AFCFA0e13ba15A6696662335D5B75 address internal constant USDC_UNDERLYING = 0x04068DA6C83AFCFA0e13ba15A6696662335D5B75; uint8 internal constant USDC_DECIMALS = 6; - // https://testnet.ftmscan.com/address/0x625E7708f30cA75bfd92586e17077590C60eb4cD + // https://ftmscan.com/address/0x625E7708f30cA75bfd92586e17077590C60eb4cD address internal constant USDC_A_TOKEN = 0x625E7708f30cA75bfd92586e17077590C60eb4cD; - // https://testnet.ftmscan.com/address/0xFCCf3cAbbe80101232d343252614b6A3eE81C989 + // https://ftmscan.com/address/0xFCCf3cAbbe80101232d343252614b6A3eE81C989 address internal constant USDC_V_TOKEN = 0xFCCf3cAbbe80101232d343252614b6A3eE81C989; - // https://testnet.ftmscan.com/address/0x2553f4eeb82d5A26427b8d1106C51499CBa5D99c + // https://ftmscan.com/address/0x2553f4eeb82d5A26427b8d1106C51499CBa5D99c address internal constant USDC_ORACLE = 0x2553f4eeb82d5A26427b8d1106C51499CBa5D99c; - // https://testnet.ftmscan.com/address/0xf4a0039F2d4a2EaD5216AbB6Ae4C4C3AA2dB9b82 + // https://ftmscan.com/address/0xf4a0039F2d4a2EaD5216AbB6Ae4C4C3AA2dB9b82 address internal constant USDC_INTEREST_RATE_STRATEGY = 0xf4a0039F2d4a2EaD5216AbB6Ae4C4C3AA2dB9b82; - // https://testnet.ftmscan.com/address/0x321162Cd933E2Be498Cd2267a90534A804051b11 + // https://ftmscan.com/address/0x321162Cd933E2Be498Cd2267a90534A804051b11 address internal constant BTC_UNDERLYING = 0x321162Cd933E2Be498Cd2267a90534A804051b11; uint8 internal constant BTC_DECIMALS = 8; - // https://testnet.ftmscan.com/address/0x078f358208685046a11C85e8ad32895DED33A249 + // https://ftmscan.com/address/0x078f358208685046a11C85e8ad32895DED33A249 address internal constant BTC_A_TOKEN = 0x078f358208685046a11C85e8ad32895DED33A249; - // https://testnet.ftmscan.com/address/0x92b42c66840C7AD907b4BF74879FF3eF7c529473 + // https://ftmscan.com/address/0x92b42c66840C7AD907b4BF74879FF3eF7c529473 address internal constant BTC_V_TOKEN = 0x92b42c66840C7AD907b4BF74879FF3eF7c529473; - // https://testnet.ftmscan.com/address/0x8e94C22142F4A64b99022ccDd994f4e9EC86E4B4 + // https://ftmscan.com/address/0x8e94C22142F4A64b99022ccDd994f4e9EC86E4B4 address internal constant BTC_ORACLE = 0x8e94C22142F4A64b99022ccDd994f4e9EC86E4B4; - // https://testnet.ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 + // https://ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 address internal constant BTC_INTEREST_RATE_STRATEGY = 0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521; - // https://testnet.ftmscan.com/address/0x74b23882a30290451A17c44f4F05243b6b58C76d + // https://ftmscan.com/address/0x74b23882a30290451A17c44f4F05243b6b58C76d address internal constant ETH_UNDERLYING = 0x74b23882a30290451A17c44f4F05243b6b58C76d; uint8 internal constant ETH_DECIMALS = 18; - // https://testnet.ftmscan.com/address/0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8 + // https://ftmscan.com/address/0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8 address internal constant ETH_A_TOKEN = 0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8; - // https://testnet.ftmscan.com/address/0x0c84331e39d6658Cd6e6b9ba04736cC4c4734351 + // https://ftmscan.com/address/0x0c84331e39d6658Cd6e6b9ba04736cC4c4734351 address internal constant ETH_V_TOKEN = 0x0c84331e39d6658Cd6e6b9ba04736cC4c4734351; - // https://testnet.ftmscan.com/address/0x11DdD3d147E5b83D01cee7070027092397d63658 + // https://ftmscan.com/address/0x11DdD3d147E5b83D01cee7070027092397d63658 address internal constant ETH_ORACLE = 0x11DdD3d147E5b83D01cee7070027092397d63658; - // https://testnet.ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 + // https://ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 address internal constant ETH_INTEREST_RATE_STRATEGY = 0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521; - // https://testnet.ftmscan.com/address/0x049d68029688eAbF473097a2fC38ef61633A3C7A + // https://ftmscan.com/address/0x049d68029688eAbF473097a2fC38ef61633A3C7A address internal constant fUSDT_UNDERLYING = 0x049d68029688eAbF473097a2fC38ef61633A3C7A; uint8 internal constant fUSDT_DECIMALS = 6; - // https://testnet.ftmscan.com/address/0x6ab707Aca953eDAeFBc4fD23bA73294241490620 + // https://ftmscan.com/address/0x6ab707Aca953eDAeFBc4fD23bA73294241490620 address internal constant fUSDT_A_TOKEN = 0x6ab707Aca953eDAeFBc4fD23bA73294241490620; - // https://testnet.ftmscan.com/address/0xfb00AC187a8Eb5AFAE4eACE434F493Eb62672df7 + // https://ftmscan.com/address/0xfb00AC187a8Eb5AFAE4eACE434F493Eb62672df7 address internal constant fUSDT_V_TOKEN = 0xfb00AC187a8Eb5AFAE4eACE434F493Eb62672df7; - // https://testnet.ftmscan.com/address/0xF64b636c5dFe1d3555A847341cDC449f612307d0 + // https://ftmscan.com/address/0xF64b636c5dFe1d3555A847341cDC449f612307d0 address internal constant fUSDT_ORACLE = 0xF64b636c5dFe1d3555A847341cDC449f612307d0; - // https://testnet.ftmscan.com/address/0xf4a0039F2d4a2EaD5216AbB6Ae4C4C3AA2dB9b82 + // https://ftmscan.com/address/0xf4a0039F2d4a2EaD5216AbB6Ae4C4C3AA2dB9b82 address internal constant fUSDT_INTEREST_RATE_STRATEGY = 0xf4a0039F2d4a2EaD5216AbB6Ae4C4C3AA2dB9b82; - // https://testnet.ftmscan.com/address/0x6a07A792ab2965C72a5B8088d3a069A7aC3a993B + // https://ftmscan.com/address/0x6a07A792ab2965C72a5B8088d3a069A7aC3a993B address internal constant AAVE_UNDERLYING = 0x6a07A792ab2965C72a5B8088d3a069A7aC3a993B; uint8 internal constant AAVE_DECIMALS = 18; - // https://testnet.ftmscan.com/address/0xf329e36C7bF6E5E86ce2150875a84Ce77f477375 + // https://ftmscan.com/address/0xf329e36C7bF6E5E86ce2150875a84Ce77f477375 address internal constant AAVE_A_TOKEN = 0xf329e36C7bF6E5E86ce2150875a84Ce77f477375; - // https://testnet.ftmscan.com/address/0xE80761Ea617F66F96274eA5e8c37f03960ecC679 + // https://ftmscan.com/address/0xE80761Ea617F66F96274eA5e8c37f03960ecC679 address internal constant AAVE_V_TOKEN = 0xE80761Ea617F66F96274eA5e8c37f03960ecC679; - // https://testnet.ftmscan.com/address/0xE6ecF7d2361B6459cBb3b4fb065E0eF4B175Fe74 + // https://ftmscan.com/address/0xE6ecF7d2361B6459cBb3b4fb065E0eF4B175Fe74 address internal constant AAVE_ORACLE = 0xE6ecF7d2361B6459cBb3b4fb065E0eF4B175Fe74; - // https://testnet.ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 + // https://ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 address internal constant AAVE_INTEREST_RATE_STRATEGY = 0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521; - // https://testnet.ftmscan.com/address/0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83 + // https://ftmscan.com/address/0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83 address internal constant WFTM_UNDERLYING = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83; uint8 internal constant WFTM_DECIMALS = 18; - // https://testnet.ftmscan.com/address/0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97 + // https://ftmscan.com/address/0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97 address internal constant WFTM_A_TOKEN = 0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97; - // https://testnet.ftmscan.com/address/0x4a1c3aD6Ed28a636ee1751C69071f6be75DEb8B8 + // https://ftmscan.com/address/0x4a1c3aD6Ed28a636ee1751C69071f6be75DEb8B8 address internal constant WFTM_V_TOKEN = 0x4a1c3aD6Ed28a636ee1751C69071f6be75DEb8B8; - // https://testnet.ftmscan.com/address/0xf4766552D15AE4d256Ad41B6cf2933482B0680dc + // https://ftmscan.com/address/0xf4766552D15AE4d256Ad41B6cf2933482B0680dc address internal constant WFTM_ORACLE = 0xf4766552D15AE4d256Ad41B6cf2933482B0680dc; - // https://testnet.ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 + // https://ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 address internal constant WFTM_INTEREST_RATE_STRATEGY = 0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521; - // https://testnet.ftmscan.com/address/0x1E4F97b9f9F913c46F1632781732927B9019C68b + // https://ftmscan.com/address/0x1E4F97b9f9F913c46F1632781732927B9019C68b address internal constant CRV_UNDERLYING = 0x1E4F97b9f9F913c46F1632781732927B9019C68b; uint8 internal constant CRV_DECIMALS = 18; - // https://testnet.ftmscan.com/address/0x513c7E3a9c69cA3e22550eF58AC1C0088e918FFf + // https://ftmscan.com/address/0x513c7E3a9c69cA3e22550eF58AC1C0088e918FFf address internal constant CRV_A_TOKEN = 0x513c7E3a9c69cA3e22550eF58AC1C0088e918FFf; - // https://testnet.ftmscan.com/address/0x77CA01483f379E58174739308945f044e1a764dc + // https://ftmscan.com/address/0x77CA01483f379E58174739308945f044e1a764dc address internal constant CRV_V_TOKEN = 0x77CA01483f379E58174739308945f044e1a764dc; - // https://testnet.ftmscan.com/address/0xa141D7E3B44594cc65142AE5F2C7844Abea66D2B + // https://ftmscan.com/address/0xa141D7E3B44594cc65142AE5F2C7844Abea66D2B address internal constant CRV_ORACLE = 0xa141D7E3B44594cc65142AE5F2C7844Abea66D2B; - // https://testnet.ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 + // https://ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 address internal constant CRV_INTEREST_RATE_STRATEGY = 0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521; - // https://testnet.ftmscan.com/address/0xae75A438b2E0cB8Bb01Ec1E1e376De11D44477CC + // https://ftmscan.com/address/0xae75A438b2E0cB8Bb01Ec1E1e376De11D44477CC address internal constant SUSHI_UNDERLYING = 0xae75A438b2E0cB8Bb01Ec1E1e376De11D44477CC; uint8 internal constant SUSHI_DECIMALS = 18; - // https://testnet.ftmscan.com/address/0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA + // https://ftmscan.com/address/0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA address internal constant SUSHI_A_TOKEN = 0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA; - // https://testnet.ftmscan.com/address/0x34e2eD44EF7466D5f9E0b782B5c08b57475e7907 + // https://ftmscan.com/address/0x34e2eD44EF7466D5f9E0b782B5c08b57475e7907 address internal constant SUSHI_V_TOKEN = 0x34e2eD44EF7466D5f9E0b782B5c08b57475e7907; - // https://testnet.ftmscan.com/address/0xCcc059a1a17577676c8673952Dc02070D29e5a66 + // https://ftmscan.com/address/0xCcc059a1a17577676c8673952Dc02070D29e5a66 address internal constant SUSHI_ORACLE = 0xCcc059a1a17577676c8673952Dc02070D29e5a66; - // https://testnet.ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 + // https://ftmscan.com/address/0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521 address internal constant SUSHI_INTEREST_RATE_STRATEGY = 0x4aa694e6c06D6162d95BE98a2Df6a521d5A7b521; } diff --git a/src/AaveV3Gnosis.sol b/src/AaveV3Gnosis.sol index c24bb780..0927a8f4 100644 --- a/src/AaveV3Gnosis.sol +++ b/src/AaveV3Gnosis.sol @@ -31,8 +31,8 @@ library AaveV3Gnosis { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x57038C3e3Fe0a170BB72DE2fD56E98e4d1a69717); - // https://gnosisscan.io/address/0x8a48EF9287c402C119c14a5f6897F6dFdc12cb45 - address internal constant POOL_IMPL = 0x8a48EF9287c402C119c14a5f6897F6dFdc12cb45; + // https://gnosisscan.io/address/0xF2C312BfAF4CF0429DB4DA15a0cf5F770Ea3E770 + address internal constant POOL_IMPL = 0xF2C312BfAF4CF0429DB4DA15a0cf5F770Ea3E770; // https://gnosisscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3Metis.sol b/src/AaveV3Metis.sol index 06419c32..e12f8aa9 100644 --- a/src/AaveV3Metis.sol +++ b/src/AaveV3Metis.sol @@ -34,8 +34,8 @@ library AaveV3Metis { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0xC01372469A17b6716A38F00c277533917B6859c0); - // https://explorer.metis.io/address/0xC89fBD2a15e88A72A76428DA00dDBBE47cb4EBB0 - address internal constant POOL_IMPL = 0xC89fBD2a15e88A72A76428DA00dDBBE47cb4EBB0; + // https://explorer.metis.io/address/0xcA311Dce5b11436c7Bd7b3847E77adE29F829F8e + address internal constant POOL_IMPL = 0xcA311Dce5b11436c7Bd7b3847E77adE29F829F8e; // https://explorer.metis.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3Optimism.sol b/src/AaveV3Optimism.sol index 6bd4f82c..f1c2e650 100644 --- a/src/AaveV3Optimism.sol +++ b/src/AaveV3Optimism.sol @@ -34,8 +34,8 @@ library AaveV3Optimism { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x7F23D86Ee20D869112572136221e173428DD740B); - // https://optimistic.etherscan.io/address/0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4 - address internal constant POOL_IMPL = 0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4; + // https://optimistic.etherscan.io/address/0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE + address internal constant POOL_IMPL = 0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE; // https://optimistic.etherscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3Polygon.sol b/src/AaveV3Polygon.sol index 11422f38..614b73ee 100644 --- a/src/AaveV3Polygon.sol +++ b/src/AaveV3Polygon.sol @@ -31,8 +31,8 @@ library AaveV3Polygon { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x7F23D86Ee20D869112572136221e173428DD740B); - // https://polygonscan.com/address/0x1f69d4700B34A1D9F92E55235df414FcC02A8306 - address internal constant POOL_IMPL = 0x1f69d4700B34A1D9F92E55235df414FcC02A8306; + // https://polygonscan.com/address/0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9 + address internal constant POOL_IMPL = 0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9; // https://polygonscan.com/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3Scroll.sol b/src/AaveV3Scroll.sol index a904ef16..ad448305 100644 --- a/src/AaveV3Scroll.sol +++ b/src/AaveV3Scroll.sol @@ -34,8 +34,8 @@ library AaveV3Scroll { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0xe2108b60623C6Dcf7bBd535bD15a451fd0811f7b); - // https://scrollscan.com/address/0xE8Ba6eD06F0c00885754704108a72A54a5E5b764 - address internal constant POOL_IMPL = 0xE8Ba6eD06F0c00885754704108a72A54a5E5b764; + // https://scrollscan.com/address/0xcB2107Ace932591C57EB5D07A135F1F3Dd613Dc0 + address internal constant POOL_IMPL = 0xcB2107Ace932591C57EB5D07A135F1F3Dd613Dc0; // https://scrollscan.com/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e address internal constant POOL_CONFIGURATOR_IMPL = 0x4816b2C2895f97fB918f1aE7Da403750a0eE372e; diff --git a/src/AaveV3ZkSync.sol b/src/AaveV3ZkSync.sol index b0f99b54..1b217730 100644 --- a/src/AaveV3ZkSync.sol +++ b/src/AaveV3ZkSync.sol @@ -31,8 +31,8 @@ library AaveV3ZkSync { IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = IPoolDataProvider(0x5F2A704cE47B373c908fE8A29514249469b52b99); - // https://era.zksync.network/address/0x3Db69F17e682a8E6f029a90c8DD04A4689B988b9 - address internal constant POOL_IMPL = 0x3Db69F17e682a8E6f029a90c8DD04A4689B988b9; + // https://era.zksync.network/address/0x79Bef43a562047B8FDF6335b28Fa61820A442fD6 + address internal constant POOL_IMPL = 0x79Bef43a562047B8FDF6335b28Fa61820A442fD6; // https://era.zksync.network/address/0xBc4c49630350F67D7Ec88785E5DF9A57c78a1b7d address internal constant POOL_CONFIGURATOR_IMPL = 0xBc4c49630350F67D7Ec88785E5DF9A57c78a1b7d; diff --git a/src/MiscFantom.sol b/src/MiscFantom.sol index 16e8fad8..04de3a16 100644 --- a/src/MiscFantom.sol +++ b/src/MiscFantom.sol @@ -3,6 +3,6 @@ pragma solidity >=0.6.0; library MiscFantom { - // https://testnet.ftmscan.com/address/0x9abf798f5314BFd793A9E57A654BEd35af4A1D60 + // https://ftmscan.com/address/0x9abf798f5314BFd793A9E57A654BEd35af4A1D60 address internal constant PARASWAP_FEE_CLAIMER = 0x9abf798f5314BFd793A9E57A654BEd35af4A1D60; } diff --git a/src/ts/AaveV3Arbitrum.ts b/src/ts/AaveV3Arbitrum.ts index 82f9f5c1..0e138782 100644 --- a/src/ts/AaveV3Arbitrum.ts +++ b/src/ts/AaveV3Arbitrum.ts @@ -23,8 +23,8 @@ export const ACL_MANAGER = '0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B'; // IPoolDataProvider https://arbiscan.io/address/0x7F23D86Ee20D869112572136221e173428DD740B export const AAVE_PROTOCOL_DATA_PROVIDER = '0x7F23D86Ee20D869112572136221e173428DD740B'; -// https://arbiscan.io/address/0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4 -export const POOL_IMPL = '0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4'; +// https://arbiscan.io/address/0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE +export const POOL_IMPL = '0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE'; // https://arbiscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3Avalanche.ts b/src/ts/AaveV3Avalanche.ts index d11b1e50..4b3ad7a4 100644 --- a/src/ts/AaveV3Avalanche.ts +++ b/src/ts/AaveV3Avalanche.ts @@ -20,8 +20,8 @@ export const ACL_MANAGER = '0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B'; // IPoolDataProvider https://snowtrace.io/address/0x7F23D86Ee20D869112572136221e173428DD740B export const AAVE_PROTOCOL_DATA_PROVIDER = '0x7F23D86Ee20D869112572136221e173428DD740B'; -// https://snowtrace.io/address/0x1f69d4700B34A1D9F92E55235df414FcC02A8306 -export const POOL_IMPL = '0x1f69d4700B34A1D9F92E55235df414FcC02A8306'; +// https://snowtrace.io/address/0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9 +export const POOL_IMPL = '0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9'; // https://snowtrace.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3BNB.ts b/src/ts/AaveV3BNB.ts index 67ffb4e3..c1d37669 100644 --- a/src/ts/AaveV3BNB.ts +++ b/src/ts/AaveV3BNB.ts @@ -20,8 +20,8 @@ export const ACL_MANAGER = '0x2D97F8FA96886Fd923c065F5457F9DDd494e3877'; // IPoolDataProvider https://bscscan.com/address/0x23dF2a19384231aFD114b036C14b6b03324D79BC export const AAVE_PROTOCOL_DATA_PROVIDER = '0x23dF2a19384231aFD114b036C14b6b03324D79BC'; -// https://bscscan.com/address/0xE498675A3dd5aB2Cab72986dc7AA9B2AE87Acec4 -export const POOL_IMPL = '0xE498675A3dd5aB2Cab72986dc7AA9B2AE87Acec4'; +// https://bscscan.com/address/0xB769c2A9259B3Eedaf120d8643C4C7EAe977fd7f +export const POOL_IMPL = '0xB769c2A9259B3Eedaf120d8643C4C7EAe977fd7f'; // https://bscscan.com/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3Base.ts b/src/ts/AaveV3Base.ts index 6351f3e7..8c9f4d95 100644 --- a/src/ts/AaveV3Base.ts +++ b/src/ts/AaveV3Base.ts @@ -23,8 +23,8 @@ export const ACL_MANAGER = '0x43955b0899Ab7232E3a454cf84AedD22Ad46FD33'; // IPoolDataProvider https://basescan.org/address/0xd82a47fdebB5bf5329b09441C3DaB4b5df2153Ad export const AAVE_PROTOCOL_DATA_PROVIDER = '0xd82a47fdebB5bf5329b09441C3DaB4b5df2153Ad'; -// https://basescan.org/address/0xDea262629b7D28722Ad4189c515f93c996D2Cd72 -export const POOL_IMPL = '0xDea262629b7D28722Ad4189c515f93c996D2Cd72'; +// https://basescan.org/address/0x3a9C471F13C9cA1eBDf440cf713C8404e498F9C3 +export const POOL_IMPL = '0x3a9C471F13C9cA1eBDf440cf713C8404e498F9C3'; // https://basescan.org/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3Ethereum.ts b/src/ts/AaveV3Ethereum.ts index 4aec8b8c..2c04f7a3 100644 --- a/src/ts/AaveV3Ethereum.ts +++ b/src/ts/AaveV3Ethereum.ts @@ -20,8 +20,8 @@ export const ACL_MANAGER = '0xc2aaCf6553D20d1e9d78E365AAba8032af9c85b0'; // IPoolDataProvider https://etherscan.io/address/0x41393e5e337606dc3821075Af65AeE84D7688CBD export const AAVE_PROTOCOL_DATA_PROVIDER = '0x41393e5e337606dc3821075Af65AeE84D7688CBD'; -// https://etherscan.io/address/0x1f64488c2C4686771dafA75915274d27878B667a -export const POOL_IMPL = '0x1f64488c2C4686771dafA75915274d27878B667a'; +// https://etherscan.io/address/0xeF434E4573b90b6ECd4a00f4888381e4D0CC5Ccd +export const POOL_IMPL = '0xeF434E4573b90b6ECd4a00f4888381e4D0CC5Ccd'; // https://etherscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3EthereumEtherFi.ts b/src/ts/AaveV3EthereumEtherFi.ts index 86174216..5c85d729 100644 --- a/src/ts/AaveV3EthereumEtherFi.ts +++ b/src/ts/AaveV3EthereumEtherFi.ts @@ -20,8 +20,8 @@ export const ACL_MANAGER = '0x3cE8E2eb6501d4705477643E96881B1bef6A2DB3'; // IPoolDataProvider https://etherscan.io/address/0xE7d490885A68f00d9886508DF281D67263ed5758 export const AAVE_PROTOCOL_DATA_PROVIDER = '0xE7d490885A68f00d9886508DF281D67263ed5758'; -// https://etherscan.io/address/0x54b63fa80D6D657Bc77a5fbE56EA6bFAfB6E5A5d -export const POOL_IMPL = '0x54b63fa80D6D657Bc77a5fbE56EA6bFAfB6E5A5d'; +// https://etherscan.io/address/0x3d881c2Dc90F00e7A52F06155f77FBEC63A779c7 +export const POOL_IMPL = '0x3d881c2Dc90F00e7A52F06155f77FBEC63A779c7'; // https://etherscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3EthereumLido.ts b/src/ts/AaveV3EthereumLido.ts index a879ab66..ff961122 100644 --- a/src/ts/AaveV3EthereumLido.ts +++ b/src/ts/AaveV3EthereumLido.ts @@ -20,8 +20,8 @@ export const ACL_MANAGER = '0x013E2C7567b6231e865BB9273F8c7656103611c0'; // IPoolDataProvider https://etherscan.io/address/0x08795CFE08C7a81dCDFf482BbAAF474B240f31cD export const AAVE_PROTOCOL_DATA_PROVIDER = '0x08795CFE08C7a81dCDFf482BbAAF474B240f31cD'; -// https://etherscan.io/address/0xF96e23D32584536552C70D99664D4B17F373229c -export const POOL_IMPL = '0xF96e23D32584536552C70D99664D4B17F373229c'; +// https://etherscan.io/address/0xf5b4664CB6D13189345119c60a948cdc7785d0FE +export const POOL_IMPL = '0xf5b4664CB6D13189345119c60a948cdc7785d0FE'; // https://etherscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3Fantom.ts b/src/ts/AaveV3Fantom.ts index d54f2e77..8b0fcda9 100644 --- a/src/ts/AaveV3Fantom.ts +++ b/src/ts/AaveV3Fantom.ts @@ -1,65 +1,65 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR -// IPoolAddressesProvider https://testnet.ftmscan.com/address/0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb +// IPoolAddressesProvider https://ftmscan.com/address/0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb export const POOL_ADDRESSES_PROVIDER = '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb'; -// IPool https://testnet.ftmscan.com/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD +// IPool https://ftmscan.com/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD export const POOL = '0x794a61358D6845594F94dc1DB02A252b5b4814aD'; -// IPoolConfigurator https://testnet.ftmscan.com/address/0x8145eddDf43f50276641b55bd3AD95944510021E +// IPoolConfigurator https://ftmscan.com/address/0x8145eddDf43f50276641b55bd3AD95944510021E export const POOL_CONFIGURATOR = '0x8145eddDf43f50276641b55bd3AD95944510021E'; -// IAaveOracle https://testnet.ftmscan.com/address/0xfd6f3c1845604C8AE6c6E402ad17fb9885160754 +// IAaveOracle https://ftmscan.com/address/0xfd6f3c1845604C8AE6c6E402ad17fb9885160754 export const ORACLE = '0xfd6f3c1845604C8AE6c6E402ad17fb9885160754'; -// https://testnet.ftmscan.com/address/0x39CB97b105173b56b5a2b4b33AD25d6a50E6c949 +// https://ftmscan.com/address/0x39CB97b105173b56b5a2b4b33AD25d6a50E6c949 export const ACL_ADMIN = '0x39CB97b105173b56b5a2b4b33AD25d6a50E6c949'; -// IACLManager https://testnet.ftmscan.com/address/0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B +// IACLManager https://ftmscan.com/address/0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B export const ACL_MANAGER = '0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B'; -// IPoolDataProvider https://testnet.ftmscan.com/address/0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654 +// IPoolDataProvider https://ftmscan.com/address/0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654 export const AAVE_PROTOCOL_DATA_PROVIDER = '0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654'; -// https://testnet.ftmscan.com/address/0xDF9e4ABdbd94107932265319479643D3B05809dc +// https://ftmscan.com/address/0xDF9e4ABdbd94107932265319479643D3B05809dc export const POOL_IMPL = '0xDF9e4ABdbd94107932265319479643D3B05809dc'; -// https://testnet.ftmscan.com/address/0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade +// https://ftmscan.com/address/0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade export const POOL_CONFIGURATOR_IMPL = '0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade'; -// https://testnet.ftmscan.com/address/0x929EC64c34a17401F460460D4B9390518E5B473e +// https://ftmscan.com/address/0x929EC64c34a17401F460460D4B9390518E5B473e export const DEFAULT_INCENTIVES_CONTROLLER = '0x929EC64c34a17401F460460D4B9390518E5B473e'; -// https://testnet.ftmscan.com/address/0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73 +// https://ftmscan.com/address/0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73 export const EMISSION_MANAGER = '0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73'; -// ICollector https://testnet.ftmscan.com/address/0xBe85413851D195fC6341619cD68BfDc26a25b928 +// ICollector https://ftmscan.com/address/0xBe85413851D195fC6341619cD68BfDc26a25b928 export const COLLECTOR = '0xBe85413851D195fC6341619cD68BfDc26a25b928'; -// https://testnet.ftmscan.com/address/0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B +// https://ftmscan.com/address/0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B export const DEFAULT_A_TOKEN_IMPL_REV_1 = '0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B'; -// https://testnet.ftmscan.com/address/0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3 +// https://ftmscan.com/address/0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3 export const DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = '0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3'; -// https://testnet.ftmscan.com/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 +// https://ftmscan.com/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6'; -// https://testnet.ftmscan.com/address/0x1408401B2A7E28cB747b3e258D0831Fc926bAC51 +// https://ftmscan.com/address/0x1408401B2A7E28cB747b3e258D0831Fc926bAC51 export const REPAY_WITH_COLLATERAL_ADAPTER = '0x1408401B2A7E28cB747b3e258D0831Fc926bAC51'; -// https://testnet.ftmscan.com/address/0xE387c6053CE8EC9f8C3fa5cE085Af73114a695d3 +// https://ftmscan.com/address/0xE387c6053CE8EC9f8C3fa5cE085Af73114a695d3 export const SWAP_COLLATERAL_ADAPTER = '0xE387c6053CE8EC9f8C3fa5cE085Af73114a695d3'; -// https://testnet.ftmscan.com/address/0x67Da261c14fd94cE7fDd77a0A8476E5b244089A9 +// https://ftmscan.com/address/0x67Da261c14fd94cE7fDd77a0A8476E5b244089A9 export const UI_INCENTIVE_DATA_PROVIDER = '0x67Da261c14fd94cE7fDd77a0A8476E5b244089A9'; -// https://testnet.ftmscan.com/address/0xddf65434502E459C22263BE2ed7cF0f1FaFD44c0 +// https://ftmscan.com/address/0xddf65434502E459C22263BE2ed7cF0f1FaFD44c0 export const UI_POOL_DATA_PROVIDER = '0xddf65434502E459C22263BE2ed7cF0f1FaFD44c0'; -// https://testnet.ftmscan.com/address/0xBc790382B3686abffE4be14A030A96aC6154023a +// https://ftmscan.com/address/0xBc790382B3686abffE4be14A030A96aC6154023a export const WALLET_BALANCE_PROVIDER = '0xBc790382B3686abffE4be14A030A96aC6154023a'; -// https://testnet.ftmscan.com/address/0x1DcDA4de2Bf6c7AD9a34788D22aE6b7d55016e1f +// https://ftmscan.com/address/0x1DcDA4de2Bf6c7AD9a34788D22aE6b7d55016e1f export const WETH_GATEWAY = '0x1DcDA4de2Bf6c7AD9a34788D22aE6b7d55016e1f'; export const CHAIN_ID = 250; diff --git a/src/ts/AaveV3Gnosis.ts b/src/ts/AaveV3Gnosis.ts index c192137c..72acd048 100644 --- a/src/ts/AaveV3Gnosis.ts +++ b/src/ts/AaveV3Gnosis.ts @@ -20,8 +20,8 @@ export const ACL_MANAGER = '0xEc710f59005f48703908bC519D552Df5B8472614'; // IPoolDataProvider https://gnosisscan.io/address/0x57038C3e3Fe0a170BB72DE2fD56E98e4d1a69717 export const AAVE_PROTOCOL_DATA_PROVIDER = '0x57038C3e3Fe0a170BB72DE2fD56E98e4d1a69717'; -// https://gnosisscan.io/address/0x8a48EF9287c402C119c14a5f6897F6dFdc12cb45 -export const POOL_IMPL = '0x8a48EF9287c402C119c14a5f6897F6dFdc12cb45'; +// https://gnosisscan.io/address/0xF2C312BfAF4CF0429DB4DA15a0cf5F770Ea3E770 +export const POOL_IMPL = '0xF2C312BfAF4CF0429DB4DA15a0cf5F770Ea3E770'; // https://gnosisscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3Metis.ts b/src/ts/AaveV3Metis.ts index 6717c24c..1afd63c9 100644 --- a/src/ts/AaveV3Metis.ts +++ b/src/ts/AaveV3Metis.ts @@ -23,8 +23,8 @@ export const ACL_MANAGER = '0xcDCb65fc657B701a5100a12eFB663978E7e8fFB8'; // IPoolDataProvider https://explorer.metis.io/address/0xC01372469A17b6716A38F00c277533917B6859c0 export const AAVE_PROTOCOL_DATA_PROVIDER = '0xC01372469A17b6716A38F00c277533917B6859c0'; -// https://explorer.metis.io/address/0xC89fBD2a15e88A72A76428DA00dDBBE47cb4EBB0 -export const POOL_IMPL = '0xC89fBD2a15e88A72A76428DA00dDBBE47cb4EBB0'; +// https://explorer.metis.io/address/0xcA311Dce5b11436c7Bd7b3847E77adE29F829F8e +export const POOL_IMPL = '0xcA311Dce5b11436c7Bd7b3847E77adE29F829F8e'; // https://explorer.metis.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3Optimism.ts b/src/ts/AaveV3Optimism.ts index bbfef5ae..453abf39 100644 --- a/src/ts/AaveV3Optimism.ts +++ b/src/ts/AaveV3Optimism.ts @@ -23,8 +23,8 @@ export const ACL_MANAGER = '0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B'; // IPoolDataProvider https://optimistic.etherscan.io/address/0x7F23D86Ee20D869112572136221e173428DD740B export const AAVE_PROTOCOL_DATA_PROVIDER = '0x7F23D86Ee20D869112572136221e173428DD740B'; -// https://optimistic.etherscan.io/address/0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4 -export const POOL_IMPL = '0xb7F64c31f1c9c2c0a4b1a7fDA9Ce0Aed487DF9F4'; +// https://optimistic.etherscan.io/address/0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE +export const POOL_IMPL = '0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE'; // https://optimistic.etherscan.io/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3Polygon.ts b/src/ts/AaveV3Polygon.ts index b7c75d2b..6d514644 100644 --- a/src/ts/AaveV3Polygon.ts +++ b/src/ts/AaveV3Polygon.ts @@ -20,8 +20,8 @@ export const ACL_MANAGER = '0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B'; // IPoolDataProvider https://polygonscan.com/address/0x7F23D86Ee20D869112572136221e173428DD740B export const AAVE_PROTOCOL_DATA_PROVIDER = '0x7F23D86Ee20D869112572136221e173428DD740B'; -// https://polygonscan.com/address/0x1f69d4700B34A1D9F92E55235df414FcC02A8306 -export const POOL_IMPL = '0x1f69d4700B34A1D9F92E55235df414FcC02A8306'; +// https://polygonscan.com/address/0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9 +export const POOL_IMPL = '0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9'; // https://polygonscan.com/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3Scroll.ts b/src/ts/AaveV3Scroll.ts index 1410234d..d7dda09a 100644 --- a/src/ts/AaveV3Scroll.ts +++ b/src/ts/AaveV3Scroll.ts @@ -23,8 +23,8 @@ export const ACL_MANAGER = '0x7633F981D87dC6307227de9383D2ce7243158081'; // IPoolDataProvider https://scrollscan.com/address/0xe2108b60623C6Dcf7bBd535bD15a451fd0811f7b export const AAVE_PROTOCOL_DATA_PROVIDER = '0xe2108b60623C6Dcf7bBd535bD15a451fd0811f7b'; -// https://scrollscan.com/address/0xE8Ba6eD06F0c00885754704108a72A54a5E5b764 -export const POOL_IMPL = '0xE8Ba6eD06F0c00885754704108a72A54a5E5b764'; +// https://scrollscan.com/address/0xcB2107Ace932591C57EB5D07A135F1F3Dd613Dc0 +export const POOL_IMPL = '0xcB2107Ace932591C57EB5D07A135F1F3Dd613Dc0'; // https://scrollscan.com/address/0x4816b2C2895f97fB918f1aE7Da403750a0eE372e export const POOL_CONFIGURATOR_IMPL = '0x4816b2C2895f97fB918f1aE7Da403750a0eE372e'; diff --git a/src/ts/AaveV3ZkSync.ts b/src/ts/AaveV3ZkSync.ts index e8b92cc2..9beb860e 100644 --- a/src/ts/AaveV3ZkSync.ts +++ b/src/ts/AaveV3ZkSync.ts @@ -20,8 +20,8 @@ export const ACL_MANAGER = '0xc6150b63c2F02528d4A969a248710A4658ed7928'; // IPoolDataProvider https://era.zksync.network/address/0x5F2A704cE47B373c908fE8A29514249469b52b99 export const AAVE_PROTOCOL_DATA_PROVIDER = '0x5F2A704cE47B373c908fE8A29514249469b52b99'; -// https://era.zksync.network/address/0x3Db69F17e682a8E6f029a90c8DD04A4689B988b9 -export const POOL_IMPL = '0x3Db69F17e682a8E6f029a90c8DD04A4689B988b9'; +// https://era.zksync.network/address/0x79Bef43a562047B8FDF6335b28Fa61820A442fD6 +export const POOL_IMPL = '0x79Bef43a562047B8FDF6335b28Fa61820A442fD6'; // https://era.zksync.network/address/0xBc4c49630350F67D7Ec88785E5DF9A57c78a1b7d export const POOL_CONFIGURATOR_IMPL = '0xBc4c49630350F67D7Ec88785E5DF9A57c78a1b7d'; diff --git a/src/ts/MiscFantom.ts b/src/ts/MiscFantom.ts index 619cf341..e4e66bd0 100644 --- a/src/ts/MiscFantom.ts +++ b/src/ts/MiscFantom.ts @@ -1,5 +1,5 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR -// https://testnet.ftmscan.com/address/0x9abf798f5314BFd793A9E57A654BEd35af4A1D60 +// https://ftmscan.com/address/0x9abf798f5314BFd793A9E57A654BEd35af4A1D60 export const PARASWAP_FEE_CLAIMER = '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60'; export const CHAIN_ID = 250; diff --git a/tokenlist.json b/tokenlist.json index 7f9eb8c9..47c16b36 100644 --- a/tokenlist.json +++ b/tokenlist.json @@ -6146,6 +6146,226 @@ "underlying": "0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E" } }, + { + "chainId": 250, + "address": "0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", + "name": "Dai Stablecoin", + "decimals": 18, + "symbol": "DAI", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/dai.svg" + }, + { + "chainId": 250, + "address": "0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE", + "name": "Aave Fantom DAI", + "decimals": 18, + "symbol": "aFanDAI", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/adai.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E" + } + }, + { + "chainId": 250, + "address": "0xb3654dc3D10Ea7645f8319668E8F54d2574FBdC8", + "name": "ChainLink", + "decimals": 18, + "symbol": "LINK", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/link.svg" + }, + { + "chainId": 250, + "address": "0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530", + "name": "Aave Fantom LINK", + "decimals": 18, + "symbol": "aFanLINK", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/alink.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0xb3654dc3D10Ea7645f8319668E8F54d2574FBdC8" + } + }, + { + "chainId": 250, + "address": "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75", + "name": "USD Coin", + "decimals": 6, + "symbol": "USDC", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/usdc.svg" + }, + { + "chainId": 250, + "address": "0x625E7708f30cA75bfd92586e17077590C60eb4cD", + "name": "Aave Fantom USDC", + "decimals": 6, + "symbol": "aFanUSDC", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/ausdc.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75" + } + }, + { + "chainId": 250, + "address": "0x321162Cd933E2Be498Cd2267a90534A804051b11", + "name": "Bitcoin", + "decimals": 8, + "symbol": "BTC", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/btc.svg" + }, + { + "chainId": 250, + "address": "0x078f358208685046a11C85e8ad32895DED33A249", + "name": "Aave Fantom WBTC", + "decimals": 8, + "symbol": "aFanWBTC", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/abtc.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0x321162Cd933E2Be498Cd2267a90534A804051b11" + } + }, + { + "chainId": 250, + "address": "0x74b23882a30290451A17c44f4F05243b6b58C76d", + "name": "Ethereum", + "decimals": 18, + "symbol": "ETH", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/eth.svg" + }, + { + "chainId": 250, + "address": "0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8", + "name": "Aave Fantom WETH", + "decimals": 18, + "symbol": "aFanWETH", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/aeth.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0x74b23882a30290451A17c44f4F05243b6b58C76d" + } + }, + { + "chainId": 250, + "address": "0x049d68029688eAbF473097a2fC38ef61633A3C7A", + "name": "Frapped USDT", + "decimals": 6, + "symbol": "fUSDT", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/usdt.svg" + }, + { + "chainId": 250, + "address": "0x6ab707Aca953eDAeFBc4fD23bA73294241490620", + "name": "Aave Fantom USDT", + "decimals": 6, + "symbol": "aFanUSDT", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/ausdt.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0x049d68029688eAbF473097a2fC38ef61633A3C7A" + } + }, + { + "chainId": 250, + "address": "0x6a07A792ab2965C72a5B8088d3a069A7aC3a993B", + "name": "Aave", + "decimals": 18, + "symbol": "AAVE", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/aave.svg" + }, + { + "chainId": 250, + "address": "0xf329e36C7bF6E5E86ce2150875a84Ce77f477375", + "name": "Aave Fantom AAVE", + "decimals": 18, + "symbol": "aFanAAVE", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/aaave.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0x6a07A792ab2965C72a5B8088d3a069A7aC3a993B" + } + }, + { + "chainId": 250, + "address": "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", + "name": "Wrapped Fantom", + "decimals": 18, + "symbol": "WFTM", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/wftm.svg" + }, + { + "chainId": 250, + "address": "0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97", + "name": "Aave Fantom WFTM", + "decimals": 18, + "symbol": "aFanWFTM", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/awftm.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83" + } + }, + { + "chainId": 250, + "address": "0x1E4F97b9f9F913c46F1632781732927B9019C68b", + "name": "Curve DAO", + "decimals": 18, + "symbol": "CRV", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/crv.svg" + }, + { + "chainId": 250, + "address": "0x513c7E3a9c69cA3e22550eF58AC1C0088e918FFf", + "name": "Aave Fantom CRV", + "decimals": 18, + "symbol": "aFanCRV", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/acrv.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0x1E4F97b9f9F913c46F1632781732927B9019C68b" + } + }, + { + "chainId": 250, + "address": "0xae75A438b2E0cB8Bb01Ec1E1e376De11D44477CC", + "name": "Sushi", + "decimals": 18, + "symbol": "SUSHI", + "tags": ["underlying"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/sushi.svg" + }, + { + "chainId": 250, + "address": "0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA", + "name": "Aave Fantom SUSHI", + "decimals": 18, + "symbol": "aFanSUSHI", + "tags": ["aTokenV3", "aaveV3"], + "logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/asushi.svg", + "extensions": { + "pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", + "underlying": "0xae75A438b2E0cB8Bb01Ec1E1e376De11D44477CC" + } + }, { "chainId": 1666600000, "address": "0xEf977d2f931C1978Db5F6747666fa1eACB0d0339", @@ -6427,6 +6647,6 @@ } } ], - "version": { "major": 3, "minor": 0, "patch": 54 }, - "timestamp": "2024-10-09T07:36:59.289Z" + "version": { "major": 3, "minor": 0, "patch": 55 }, + "timestamp": "2024-10-16T14:02:42.858Z" } diff --git a/ui/src/utils/getAddresses.ts b/ui/src/utils/getAddresses.ts index 0141d158..0be29028 100644 --- a/ui/src/utils/getAddresses.ts +++ b/ui/src/utils/getAddresses.ts @@ -1,6 +1,5 @@ import * as addressBook from '../../../src/ts/AaveAddressBook'; import { isAddress, Address, zeroAddress } from 'viem'; -import { CHAIN_ID_CLIENT_MAP } from '@bgd-labs/js-utils'; export type ListItem = { path: string[];