Skip to content

Commit

Permalink
fix(cache): automated cache update - updated addresses (#598)
Browse files Browse the repository at this point in the history
Co-authored-by: Cache-bot <noreply@github.com>
  • Loading branch information
github-actions[bot] and web-flow authored Sep 21, 2024
1 parent 42247e9 commit fba3d8f
Show file tree
Hide file tree
Showing 5 changed files with 409 additions and 6 deletions.
30 changes: 30 additions & 0 deletions safe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,36 @@ address,name,chainId
0x48B96565291d1B23a014bb9f68E07F4B2bb3Cd6D,AaveV3ZkSync AAVE_PROTOCOL_DATA_PROVIDER,324
0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020,AaveV3ZkSync ACL_ADMIN,324
0xc6150b63c2F02528d4A969a248710A4658ed7928,AaveV3ZkSync ACL_MANAGER,324
0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4,AaveV3ZkSync ASSETS USDC UNDERLYING,324
0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb,AaveV3ZkSync ASSETS USDC A_TOKEN,324
0x4b57579C895cb5Cd2E7bf6e94888fc6289F3AE95,AaveV3ZkSync ASSETS USDC S_TOKEN,324
0x0049250D15A8550c5a14Baa5AF5B662a93a525B9,AaveV3ZkSync ASSETS USDC V_TOKEN,324
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1,AaveV3ZkSync ASSETS USDC INTEREST_RATE_STRATEGY,324
0x22A46593A7f93Aaec788bE3e27C1838E15781222,AaveV3ZkSync ASSETS USDC ORACLE,324
0x493257fD37EDB34451f62EDf8D2a0C418852bA4C,AaveV3ZkSync ASSETS USDT UNDERLYING,324
0xC48574bc5358c967d9447e7Df70230Fdb469e4E7,AaveV3ZkSync ASSETS USDT A_TOKEN,324
0xA406410F5b618E6b6DC35345A077174F46727963,AaveV3ZkSync ASSETS USDT S_TOKEN,324
0x8992DB58077fe8C7B80c1B3a738eAe8A7BdDbA34,AaveV3ZkSync ASSETS USDT V_TOKEN,324
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1,AaveV3ZkSync ASSETS USDT INTEREST_RATE_STRATEGY,324
0xE8D6d2dffCFfFc6b1f3606b7552e80319D01A8E9,AaveV3ZkSync ASSETS USDT ORACLE,324
0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91,AaveV3ZkSync ASSETS WETH UNDERLYING,324
0xb7b93bCf82519bB757Fd18b23A389245Dbd8ca64,AaveV3ZkSync ASSETS WETH A_TOKEN,324
0x57A0f03198db96A1Fecc84D82aB457BA2Db3edF8,AaveV3ZkSync ASSETS WETH S_TOKEN,324
0x98dC737eA0E9bCb254c3F98510a71c5E11F74238,AaveV3ZkSync ASSETS WETH V_TOKEN,324
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1,AaveV3ZkSync ASSETS WETH INTEREST_RATE_STRATEGY,324
0x6D41d1dc818112880b40e26BD6FD347E41008eDA,AaveV3ZkSync ASSETS WETH ORACLE,324
0x703b52F2b28fEbcB60E1372858AF5b18849FE867,AaveV3ZkSync ASSETS wstETH UNDERLYING,324
0xd4e607633F3d984633E946aEA4eb71f92564c1c9,AaveV3ZkSync ASSETS wstETH A_TOKEN,324
0xaB16478ca66b7825641ecd06AAF1Cd37BE618567,AaveV3ZkSync ASSETS wstETH S_TOKEN,324
0x6aD279F6523f6421fD5B0324a97D8F62eeCD80c8,AaveV3ZkSync ASSETS wstETH V_TOKEN,324
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1,AaveV3ZkSync ASSETS wstETH INTEREST_RATE_STRATEGY,324
0xdea7DE07B8275564Af6135F7E9340411246EB7A2,AaveV3ZkSync ASSETS wstETH ORACLE,324
0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E,AaveV3ZkSync ASSETS ZK UNDERLYING,324
0xd6cD2c0fC55936498726CacC497832052A9B2D1B,AaveV3ZkSync ASSETS ZK A_TOKEN,324
0xf347c35223796C88741004da9099Fbd671856317,AaveV3ZkSync ASSETS ZK S_TOKEN,324
0x6450fd7F877B5bB726F7Bc6Bf0e6ffAbd48d72ad,AaveV3ZkSync ASSETS ZK V_TOKEN,324
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1,AaveV3ZkSync ASSETS ZK INTEREST_RATE_STRATEGY,324
0xD1ce60dc8AE060DDD17cA8716C96f193bC88DD13,AaveV3ZkSync ASSETS ZK ORACLE,324
0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b,AaveV3ZkSync COLLECTOR,324
0x93E5E329FaCf7d85118b49f0eb250E9c767CA177,AaveV3ZkSync CONFIG_ENGINE,324
0x34be365Fd01ac224F21490aaC6dFd65D25434bbB,AaveV3ZkSync DEFAULT_A_TOKEN_IMPL_REV_1,324
Expand Down
108 changes: 107 additions & 1 deletion src/AaveV3ZkSync.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,116 @@ library AaveV3ZkSync {
address internal constant RISK_STEWARD = 0xDeDee21f34eff4e2902B95A106855834a608e19a;
}

library AaveV3ZkSyncAssets {}
library AaveV3ZkSyncAssets {
// https://era.zksync.network/address/0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4
address internal constant USDC_UNDERLYING = 0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4;

uint8 internal constant USDC_DECIMALS = 6;

// https://era.zksync.network/address/0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb
address internal constant USDC_A_TOKEN = 0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb;

// https://era.zksync.network/address/0x0049250D15A8550c5a14Baa5AF5B662a93a525B9
address internal constant USDC_V_TOKEN = 0x0049250D15A8550c5a14Baa5AF5B662a93a525B9;

// https://era.zksync.network/address/0x4b57579C895cb5Cd2E7bf6e94888fc6289F3AE95
address internal constant USDC_S_TOKEN = 0x4b57579C895cb5Cd2E7bf6e94888fc6289F3AE95;

// https://era.zksync.network/address/0x22A46593A7f93Aaec788bE3e27C1838E15781222
address internal constant USDC_ORACLE = 0x22A46593A7f93Aaec788bE3e27C1838E15781222;

// https://era.zksync.network/address/0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1
address internal constant USDC_INTEREST_RATE_STRATEGY =
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1;

// https://era.zksync.network/address/0x493257fD37EDB34451f62EDf8D2a0C418852bA4C
address internal constant USDT_UNDERLYING = 0x493257fD37EDB34451f62EDf8D2a0C418852bA4C;

uint8 internal constant USDT_DECIMALS = 6;

// https://era.zksync.network/address/0xC48574bc5358c967d9447e7Df70230Fdb469e4E7
address internal constant USDT_A_TOKEN = 0xC48574bc5358c967d9447e7Df70230Fdb469e4E7;

// https://era.zksync.network/address/0x8992DB58077fe8C7B80c1B3a738eAe8A7BdDbA34
address internal constant USDT_V_TOKEN = 0x8992DB58077fe8C7B80c1B3a738eAe8A7BdDbA34;

// https://era.zksync.network/address/0xA406410F5b618E6b6DC35345A077174F46727963
address internal constant USDT_S_TOKEN = 0xA406410F5b618E6b6DC35345A077174F46727963;

// https://era.zksync.network/address/0xE8D6d2dffCFfFc6b1f3606b7552e80319D01A8E9
address internal constant USDT_ORACLE = 0xE8D6d2dffCFfFc6b1f3606b7552e80319D01A8E9;

// https://era.zksync.network/address/0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1
address internal constant USDT_INTEREST_RATE_STRATEGY =
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1;

// https://era.zksync.network/address/0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91
address internal constant WETH_UNDERLYING = 0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91;

uint8 internal constant WETH_DECIMALS = 18;

// https://era.zksync.network/address/0xb7b93bCf82519bB757Fd18b23A389245Dbd8ca64
address internal constant WETH_A_TOKEN = 0xb7b93bCf82519bB757Fd18b23A389245Dbd8ca64;

// https://era.zksync.network/address/0x98dC737eA0E9bCb254c3F98510a71c5E11F74238
address internal constant WETH_V_TOKEN = 0x98dC737eA0E9bCb254c3F98510a71c5E11F74238;

// https://era.zksync.network/address/0x57A0f03198db96A1Fecc84D82aB457BA2Db3edF8
address internal constant WETH_S_TOKEN = 0x57A0f03198db96A1Fecc84D82aB457BA2Db3edF8;

// https://era.zksync.network/address/0x6D41d1dc818112880b40e26BD6FD347E41008eDA
address internal constant WETH_ORACLE = 0x6D41d1dc818112880b40e26BD6FD347E41008eDA;

// https://era.zksync.network/address/0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1
address internal constant WETH_INTEREST_RATE_STRATEGY =
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1;

// https://era.zksync.network/address/0x703b52F2b28fEbcB60E1372858AF5b18849FE867
address internal constant wstETH_UNDERLYING = 0x703b52F2b28fEbcB60E1372858AF5b18849FE867;

uint8 internal constant wstETH_DECIMALS = 18;

// https://era.zksync.network/address/0xd4e607633F3d984633E946aEA4eb71f92564c1c9
address internal constant wstETH_A_TOKEN = 0xd4e607633F3d984633E946aEA4eb71f92564c1c9;

// https://era.zksync.network/address/0x6aD279F6523f6421fD5B0324a97D8F62eeCD80c8
address internal constant wstETH_V_TOKEN = 0x6aD279F6523f6421fD5B0324a97D8F62eeCD80c8;

// https://era.zksync.network/address/0xaB16478ca66b7825641ecd06AAF1Cd37BE618567
address internal constant wstETH_S_TOKEN = 0xaB16478ca66b7825641ecd06AAF1Cd37BE618567;

// https://era.zksync.network/address/0xdea7DE07B8275564Af6135F7E9340411246EB7A2
address internal constant wstETH_ORACLE = 0xdea7DE07B8275564Af6135F7E9340411246EB7A2;

// https://era.zksync.network/address/0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1
address internal constant wstETH_INTEREST_RATE_STRATEGY =
0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1;

// https://era.zksync.network/address/0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E
address internal constant ZK_UNDERLYING = 0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E;

uint8 internal constant ZK_DECIMALS = 18;

// https://era.zksync.network/address/0xd6cD2c0fC55936498726CacC497832052A9B2D1B
address internal constant ZK_A_TOKEN = 0xd6cD2c0fC55936498726CacC497832052A9B2D1B;

// https://era.zksync.network/address/0x6450fd7F877B5bB726F7Bc6Bf0e6ffAbd48d72ad
address internal constant ZK_V_TOKEN = 0x6450fd7F877B5bB726F7Bc6Bf0e6ffAbd48d72ad;

// https://era.zksync.network/address/0xf347c35223796C88741004da9099Fbd671856317
address internal constant ZK_S_TOKEN = 0xf347c35223796C88741004da9099Fbd671856317;

// https://era.zksync.network/address/0xD1ce60dc8AE060DDD17cA8716C96f193bC88DD13
address internal constant ZK_ORACLE = 0xD1ce60dc8AE060DDD17cA8716C96f193bC88DD13;

// https://era.zksync.network/address/0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1
address internal constant ZK_INTEREST_RATE_STRATEGY = 0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1;
}

library AaveV3ZkSyncEModes {
uint8 internal constant NONE = 0;

uint8 internal constant ETH_CORRELATED = 1;
}

library AaveV3ZkSyncExternalLibraries {
Expand Down
49 changes: 48 additions & 1 deletion src/ts/AaveV3ZkSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,56 @@ export const STATIC_A_TOKEN_FACTORY = '0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F
export const RISK_STEWARD = '0xDeDee21f34eff4e2902B95A106855834a608e19a';

export const CHAIN_ID = 324;
export const ASSETS = {} as const;
export const ASSETS = {
USDC: {
decimals: 6,
UNDERLYING: '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4',
A_TOKEN: '0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb',
S_TOKEN: '0x4b57579C895cb5Cd2E7bf6e94888fc6289F3AE95',
V_TOKEN: '0x0049250D15A8550c5a14Baa5AF5B662a93a525B9',
INTEREST_RATE_STRATEGY: '0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1',
ORACLE: '0x22A46593A7f93Aaec788bE3e27C1838E15781222',
},
USDT: {
decimals: 6,
UNDERLYING: '0x493257fD37EDB34451f62EDf8D2a0C418852bA4C',
A_TOKEN: '0xC48574bc5358c967d9447e7Df70230Fdb469e4E7',
S_TOKEN: '0xA406410F5b618E6b6DC35345A077174F46727963',
V_TOKEN: '0x8992DB58077fe8C7B80c1B3a738eAe8A7BdDbA34',
INTEREST_RATE_STRATEGY: '0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1',
ORACLE: '0xE8D6d2dffCFfFc6b1f3606b7552e80319D01A8E9',
},
WETH: {
decimals: 18,
UNDERLYING: '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91',
A_TOKEN: '0xb7b93bCf82519bB757Fd18b23A389245Dbd8ca64',
S_TOKEN: '0x57A0f03198db96A1Fecc84D82aB457BA2Db3edF8',
V_TOKEN: '0x98dC737eA0E9bCb254c3F98510a71c5E11F74238',
INTEREST_RATE_STRATEGY: '0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1',
ORACLE: '0x6D41d1dc818112880b40e26BD6FD347E41008eDA',
},
wstETH: {
decimals: 18,
UNDERLYING: '0x703b52F2b28fEbcB60E1372858AF5b18849FE867',
A_TOKEN: '0xd4e607633F3d984633E946aEA4eb71f92564c1c9',
S_TOKEN: '0xaB16478ca66b7825641ecd06AAF1Cd37BE618567',
V_TOKEN: '0x6aD279F6523f6421fD5B0324a97D8F62eeCD80c8',
INTEREST_RATE_STRATEGY: '0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1',
ORACLE: '0xdea7DE07B8275564Af6135F7E9340411246EB7A2',
},
ZK: {
decimals: 18,
UNDERLYING: '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E',
A_TOKEN: '0xd6cD2c0fC55936498726CacC497832052A9B2D1B',
S_TOKEN: '0xf347c35223796C88741004da9099Fbd671856317',
V_TOKEN: '0x6450fd7F877B5bB726F7Bc6Bf0e6ffAbd48d72ad',
INTEREST_RATE_STRATEGY: '0x73E2D854e809504b8e6d4e29ddae4ac5b40d5be1',
ORACLE: '0xD1ce60dc8AE060DDD17cA8716C96f193bC88DD13',
},
} as const;
export const E_MODES = {
NONE: 0,
ETH_CORRELATED: 1,
} as const;
export const EXTERNAL_LIBRARIES = {
FLASHLOAN_LOGIC: '0x8B9AeE8BdE378e4f2ebdE95432b7547EF4FcD569',
Expand Down
114 changes: 112 additions & 2 deletions src/ts/tokenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5984,6 +5984,116 @@ export const tokenlist = {
underlying: '0x01f0a31698C4d065659b9bdC21B3610292a1c506',
},
},
{
chainId: 324,
address: '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4',
name: 'USDC',
decimals: 6,
symbol: 'USDC',
tags: ['underlying'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/usdc.svg',
},
{
chainId: 324,
address: '0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb',
name: 'Aave ZkSync USDC',
decimals: 6,
symbol: 'aZksUSDC',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/ausdc.svg',
extensions: {
pool: '0x78e30497a3c7527d953c6B1E3541b021A98Ac43c',
underlying: '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4',
},
},
{
chainId: 324,
address: '0x493257fD37EDB34451f62EDf8D2a0C418852bA4C',
name: 'Tether USD',
decimals: 6,
symbol: 'USDT',
tags: ['underlying'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/usdt.svg',
},
{
chainId: 324,
address: '0xC48574bc5358c967d9447e7Df70230Fdb469e4E7',
name: 'Aave ZkSync USDT',
decimals: 6,
symbol: 'aZksUSDT',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/ausdt.svg',
extensions: {
pool: '0x78e30497a3c7527d953c6B1E3541b021A98Ac43c',
underlying: '0x493257fD37EDB34451f62EDf8D2a0C418852bA4C',
},
},
{
chainId: 324,
address: '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91',
name: 'Wrapped Ether',
decimals: 18,
symbol: 'WETH',
tags: ['underlying'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/weth.svg',
},
{
chainId: 324,
address: '0xb7b93bCf82519bB757Fd18b23A389245Dbd8ca64',
name: 'Aave ZkSync WETH',
decimals: 18,
symbol: 'aZksWETH',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/aweth.svg',
extensions: {
pool: '0x78e30497a3c7527d953c6B1E3541b021A98Ac43c',
underlying: '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91',
},
},
{
chainId: 324,
address: '0x703b52F2b28fEbcB60E1372858AF5b18849FE867',
name: 'Wrapped liquid staked Ether 2.0',
decimals: 18,
symbol: 'wstETH',
tags: ['underlying'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/wsteth.svg',
},
{
chainId: 324,
address: '0xd4e607633F3d984633E946aEA4eb71f92564c1c9',
name: 'Aave ZkSync wstETH',
decimals: 18,
symbol: 'aZkswstETH',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/awsteth.svg',
extensions: {
pool: '0x78e30497a3c7527d953c6B1E3541b021A98Ac43c',
underlying: '0x703b52F2b28fEbcB60E1372858AF5b18849FE867',
},
},
{
chainId: 324,
address: '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E',
name: 'ZKsync',
decimals: 18,
symbol: 'ZK',
tags: ['underlying'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/zk.svg',
},
{
chainId: 324,
address: '0xd6cD2c0fC55936498726CacC497832052A9B2D1B',
name: 'Aave ZkSync ZK',
decimals: 18,
symbol: 'aZksZK',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/azk.svg',
extensions: {
pool: '0x78e30497a3c7527d953c6B1E3541b021A98Ac43c',
underlying: '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E',
},
},
{
chainId: 250,
address: '0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E',
Expand Down Expand Up @@ -6459,6 +6569,6 @@ export const tokenlist = {
},
},
],
version: {major: 3, minor: 0, patch: 40},
timestamp: '2024-09-10T07:09:53.849Z',
version: {major: 3, minor: 0, patch: 41},
timestamp: '2024-09-21T00:12:26.510Z',
};
Loading

0 comments on commit fba3d8f

Please sign in to comment.