Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cache): automated cache update - updated addresses #581

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions safe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,30 @@ address,name,chainId
0x8Cb4b66f7B13F2Ae4D3c91338fC007dbF8C14208,AaveV3EthereumEtherFi AAVE_PROTOCOL_DATA_PROVIDER,1
0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A,AaveV3EthereumEtherFi ACL_ADMIN,1
0x3cE8E2eb6501d4705477643E96881B1bef6A2DB3,AaveV3EthereumEtherFi ACL_MANAGER,1
0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee,AaveV3EthereumEtherFi ASSETS weETH UNDERLYING,1
0xbe1F842e7e0afd2c2322aae5d34bA899544b29db,AaveV3EthereumEtherFi ASSETS weETH A_TOKEN,1
0x57A994227592652D58BBF3D52e34261dF8b354D0,AaveV3EthereumEtherFi ASSETS weETH S_TOKEN,1
0x16264412CB72F0d16A446f7D928Dd0D822810048,AaveV3EthereumEtherFi ASSETS weETH V_TOKEN,1
0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2,AaveV3EthereumEtherFi ASSETS weETH INTEREST_RATE_STRATEGY,1
0xf112aF6F0A332B815fbEf3Ff932c057E570b62d3,AaveV3EthereumEtherFi ASSETS weETH ORACLE,1
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,AaveV3EthereumEtherFi ASSETS USDC UNDERLYING,1
0x7380c583cDe4409eFF5DD3320D93a45D96B80E2e,AaveV3EthereumEtherFi ASSETS USDC A_TOKEN,1
0x7157fD098fd11fD9BB8C0a39d8a3Eb57e3f8F079,AaveV3EthereumEtherFi ASSETS USDC S_TOKEN,1
0x9355032d747f1e08F8720CD01950E652eE15cdB7,AaveV3EthereumEtherFi ASSETS USDC V_TOKEN,1
0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2,AaveV3EthereumEtherFi ASSETS USDC INTEREST_RATE_STRATEGY,1
0x736bF902680e68989886e9807CD7Db4B3E015d3C,AaveV3EthereumEtherFi ASSETS USDC ORACLE,1
0x6c3ea9036406852006290770BEdFcAbA0e23A0e8,AaveV3EthereumEtherFi ASSETS PYUSD UNDERLYING,1
0xdF7f48892244C6106EA784609f7de10AB36F9c7e,AaveV3EthereumEtherFi ASSETS PYUSD A_TOKEN,1
0xba47EDC94d060040ed17fB5c5503DD227CE207AE,AaveV3EthereumEtherFi ASSETS PYUSD S_TOKEN,1
0xD2cf07dEE40d3D530D15b88d689f5cd97A31FC3D,AaveV3EthereumEtherFi ASSETS PYUSD V_TOKEN,1
0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2,AaveV3EthereumEtherFi ASSETS PYUSD INTEREST_RATE_STRATEGY,1
0x150bAe7Ce224555D39AfdBc6Cb4B8204E594E022,AaveV3EthereumEtherFi ASSETS PYUSD ORACLE,1
0x853d955aCEf822Db058eb8505911ED77F175b99e,AaveV3EthereumEtherFi ASSETS FRAX UNDERLYING,1
0x6914ECCf50837dC61b43ee478a9BD9B439648956,AaveV3EthereumEtherFi ASSETS FRAX A_TOKEN,1
0x6789a5d8103f63b3702F779217F0a7D262F18331,AaveV3EthereumEtherFi ASSETS FRAX S_TOKEN,1
0xfd3aDA5AAbdc6531C7C2AC46c00eBf870f5a0E6B,AaveV3EthereumEtherFi ASSETS FRAX V_TOKEN,1
0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2,AaveV3EthereumEtherFi ASSETS FRAX INTEREST_RATE_STRATEGY,1
0x45D270263BBee500CF8adcf2AbC0aC227097b036,AaveV3EthereumEtherFi ASSETS FRAX ORACLE,1
0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA,AaveV3EthereumEtherFi CAPS_PLUS_RISK_STEWARD,1
0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c,AaveV3EthereumEtherFi COLLECTOR,1
0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed,AaveV3EthereumEtherFi CONFIG_ENGINE,1
Expand Down
86 changes: 85 additions & 1 deletion src/AaveV3EthereumEtherFi.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,91 @@ library AaveV3EthereumEtherFi {
address internal constant RISK_STEWARD = 0x7FbBCCFB548c110226fEF5BEc816Ea04B5170EA3;
}

library AaveV3EthereumEtherFiAssets {}
library AaveV3EthereumEtherFiAssets {
// https://etherscan.io/address/0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee
address internal constant weETH_UNDERLYING = 0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee;

uint8 internal constant weETH_DECIMALS = 18;

// https://etherscan.io/address/0xbe1F842e7e0afd2c2322aae5d34bA899544b29db
address internal constant weETH_A_TOKEN = 0xbe1F842e7e0afd2c2322aae5d34bA899544b29db;

// https://etherscan.io/address/0x16264412CB72F0d16A446f7D928Dd0D822810048
address internal constant weETH_V_TOKEN = 0x16264412CB72F0d16A446f7D928Dd0D822810048;

// https://etherscan.io/address/0x57A994227592652D58BBF3D52e34261dF8b354D0
address internal constant weETH_S_TOKEN = 0x57A994227592652D58BBF3D52e34261dF8b354D0;

// https://etherscan.io/address/0xf112aF6F0A332B815fbEf3Ff932c057E570b62d3
address internal constant weETH_ORACLE = 0xf112aF6F0A332B815fbEf3Ff932c057E570b62d3;

// https://etherscan.io/address/0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2
address internal constant weETH_INTEREST_RATE_STRATEGY =
0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2;

// https://etherscan.io/address/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
address internal constant USDC_UNDERLYING = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;

uint8 internal constant USDC_DECIMALS = 6;

// https://etherscan.io/address/0x7380c583cDe4409eFF5DD3320D93a45D96B80E2e
address internal constant USDC_A_TOKEN = 0x7380c583cDe4409eFF5DD3320D93a45D96B80E2e;

// https://etherscan.io/address/0x9355032d747f1e08F8720CD01950E652eE15cdB7
address internal constant USDC_V_TOKEN = 0x9355032d747f1e08F8720CD01950E652eE15cdB7;

// https://etherscan.io/address/0x7157fD098fd11fD9BB8C0a39d8a3Eb57e3f8F079
address internal constant USDC_S_TOKEN = 0x7157fD098fd11fD9BB8C0a39d8a3Eb57e3f8F079;

// https://etherscan.io/address/0x736bF902680e68989886e9807CD7Db4B3E015d3C
address internal constant USDC_ORACLE = 0x736bF902680e68989886e9807CD7Db4B3E015d3C;

// https://etherscan.io/address/0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2
address internal constant USDC_INTEREST_RATE_STRATEGY =
0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2;

// https://etherscan.io/address/0x6c3ea9036406852006290770BEdFcAbA0e23A0e8
address internal constant PYUSD_UNDERLYING = 0x6c3ea9036406852006290770BEdFcAbA0e23A0e8;

uint8 internal constant PYUSD_DECIMALS = 6;

// https://etherscan.io/address/0xdF7f48892244C6106EA784609f7de10AB36F9c7e
address internal constant PYUSD_A_TOKEN = 0xdF7f48892244C6106EA784609f7de10AB36F9c7e;

// https://etherscan.io/address/0xD2cf07dEE40d3D530D15b88d689f5cd97A31FC3D
address internal constant PYUSD_V_TOKEN = 0xD2cf07dEE40d3D530D15b88d689f5cd97A31FC3D;

// https://etherscan.io/address/0xba47EDC94d060040ed17fB5c5503DD227CE207AE
address internal constant PYUSD_S_TOKEN = 0xba47EDC94d060040ed17fB5c5503DD227CE207AE;

// https://etherscan.io/address/0x150bAe7Ce224555D39AfdBc6Cb4B8204E594E022
address internal constant PYUSD_ORACLE = 0x150bAe7Ce224555D39AfdBc6Cb4B8204E594E022;

// https://etherscan.io/address/0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2
address internal constant PYUSD_INTEREST_RATE_STRATEGY =
0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2;

// https://etherscan.io/address/0x853d955aCEf822Db058eb8505911ED77F175b99e
address internal constant FRAX_UNDERLYING = 0x853d955aCEf822Db058eb8505911ED77F175b99e;

uint8 internal constant FRAX_DECIMALS = 18;

// https://etherscan.io/address/0x6914ECCf50837dC61b43ee478a9BD9B439648956
address internal constant FRAX_A_TOKEN = 0x6914ECCf50837dC61b43ee478a9BD9B439648956;

// https://etherscan.io/address/0xfd3aDA5AAbdc6531C7C2AC46c00eBf870f5a0E6B
address internal constant FRAX_V_TOKEN = 0xfd3aDA5AAbdc6531C7C2AC46c00eBf870f5a0E6B;

// https://etherscan.io/address/0x6789a5d8103f63b3702F779217F0a7D262F18331
address internal constant FRAX_S_TOKEN = 0x6789a5d8103f63b3702F779217F0a7D262F18331;

// https://etherscan.io/address/0x45D270263BBee500CF8adcf2AbC0aC227097b036
address internal constant FRAX_ORACLE = 0x45D270263BBee500CF8adcf2AbC0aC227097b036;

// https://etherscan.io/address/0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2
address internal constant FRAX_INTEREST_RATE_STRATEGY =
0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2;
}

library AaveV3EthereumEtherFiEModes {
uint8 internal constant NONE = 0;
Expand Down
39 changes: 38 additions & 1 deletion src/ts/AaveV3EthereumEtherFi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,44 @@ export const CAPS_PLUS_RISK_STEWARD = '0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58c
export const RISK_STEWARD = '0x7FbBCCFB548c110226fEF5BEc816Ea04B5170EA3';

export const CHAIN_ID = 1;
export const ASSETS = {} as const;
export const ASSETS = {
weETH: {
decimals: 18,
UNDERLYING: '0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee',
A_TOKEN: '0xbe1F842e7e0afd2c2322aae5d34bA899544b29db',
S_TOKEN: '0x57A994227592652D58BBF3D52e34261dF8b354D0',
V_TOKEN: '0x16264412CB72F0d16A446f7D928Dd0D822810048',
INTEREST_RATE_STRATEGY: '0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2',
ORACLE: '0xf112aF6F0A332B815fbEf3Ff932c057E570b62d3',
},
USDC: {
decimals: 6,
UNDERLYING: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
A_TOKEN: '0x7380c583cDe4409eFF5DD3320D93a45D96B80E2e',
S_TOKEN: '0x7157fD098fd11fD9BB8C0a39d8a3Eb57e3f8F079',
V_TOKEN: '0x9355032d747f1e08F8720CD01950E652eE15cdB7',
INTEREST_RATE_STRATEGY: '0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2',
ORACLE: '0x736bF902680e68989886e9807CD7Db4B3E015d3C',
},
PYUSD: {
decimals: 6,
UNDERLYING: '0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
A_TOKEN: '0xdF7f48892244C6106EA784609f7de10AB36F9c7e',
S_TOKEN: '0xba47EDC94d060040ed17fB5c5503DD227CE207AE',
V_TOKEN: '0xD2cf07dEE40d3D530D15b88d689f5cd97A31FC3D',
INTEREST_RATE_STRATEGY: '0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2',
ORACLE: '0x150bAe7Ce224555D39AfdBc6Cb4B8204E594E022',
},
FRAX: {
decimals: 18,
UNDERLYING: '0x853d955aCEf822Db058eb8505911ED77F175b99e',
A_TOKEN: '0x6914ECCf50837dC61b43ee478a9BD9B439648956',
S_TOKEN: '0x6789a5d8103f63b3702F779217F0a7D262F18331',
V_TOKEN: '0xfd3aDA5AAbdc6531C7C2AC46c00eBf870f5a0E6B',
INTEREST_RATE_STRATEGY: '0x5024e947ef81B9184Faf0CfF9b485446f01c8eD2',
ORACLE: '0x45D270263BBee500CF8adcf2AbC0aC227097b036',
},
} as const;
export const E_MODES = {
NONE: 0,
} as const;
Expand Down
56 changes: 54 additions & 2 deletions src/ts/tokenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6406,7 +6406,59 @@ export const tokenlist = {
underlying: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
},
},
{
chainId: 1,
address: '0xbe1F842e7e0afd2c2322aae5d34bA899544b29db',
name: 'Aave Ethereum EtherFi weETH',
decimals: 18,
symbol: 'aEthEtherFiweETH',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/aweeth.svg',
extensions: {
pool: '0x0AA97c284e98396202b6A04024F5E2c65026F3c0',
underlying: '0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee',
},
},
{
chainId: 1,
address: '0x7380c583cDe4409eFF5DD3320D93a45D96B80E2e',
name: 'Aave Ethereum EtherFi USDC',
decimals: 6,
symbol: 'aEthEtherFiUSDC',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/ausdc.svg',
extensions: {
pool: '0x0AA97c284e98396202b6A04024F5E2c65026F3c0',
underlying: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
},
},
{
chainId: 1,
address: '0xdF7f48892244C6106EA784609f7de10AB36F9c7e',
name: 'Aave Ethereum EtherFi PYUSD',
decimals: 6,
symbol: 'aEthEtherFiPYUSD',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/apyusd.svg',
extensions: {
pool: '0x0AA97c284e98396202b6A04024F5E2c65026F3c0',
underlying: '0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
},
},
{
chainId: 1,
address: '0x6914ECCf50837dC61b43ee478a9BD9B439648956',
name: 'Aave Ethereum EtherFi FRAX',
decimals: 18,
symbol: 'aEthEtherFiFRAX',
tags: ['aTokenV3', 'aaveV3'],
logoURI: 'https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/afrax.svg',
extensions: {
pool: '0x0AA97c284e98396202b6A04024F5E2c65026F3c0',
underlying: '0x853d955aCEf822Db058eb8505911ED77F175b99e',
},
},
],
version: {major: 3, minor: 0, patch: 39},
timestamp: '2024-09-04T00:12:26.140Z',
version: {major: 3, minor: 0, patch: 40},
timestamp: '2024-09-10T07:09:53.849Z',
};
56 changes: 54 additions & 2 deletions tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -6313,8 +6313,60 @@
"pool": "0x4e033931ad43597d96D6bcc25c280717730B58B1",
"underlying": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
},
{
"chainId": 1,
"address": "0xbe1F842e7e0afd2c2322aae5d34bA899544b29db",
"name": "Aave Ethereum EtherFi weETH",
"decimals": 18,
"symbol": "aEthEtherFiweETH",
"tags": ["aTokenV3", "aaveV3"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/aweeth.svg",
"extensions": {
"pool": "0x0AA97c284e98396202b6A04024F5E2c65026F3c0",
"underlying": "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee"
}
},
{
"chainId": 1,
"address": "0x7380c583cDe4409eFF5DD3320D93a45D96B80E2e",
"name": "Aave Ethereum EtherFi USDC",
"decimals": 6,
"symbol": "aEthEtherFiUSDC",
"tags": ["aTokenV3", "aaveV3"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/ausdc.svg",
"extensions": {
"pool": "0x0AA97c284e98396202b6A04024F5E2c65026F3c0",
"underlying": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
},
{
"chainId": 1,
"address": "0xdF7f48892244C6106EA784609f7de10AB36F9c7e",
"name": "Aave Ethereum EtherFi PYUSD",
"decimals": 6,
"symbol": "aEthEtherFiPYUSD",
"tags": ["aTokenV3", "aaveV3"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/apyusd.svg",
"extensions": {
"pool": "0x0AA97c284e98396202b6A04024F5E2c65026F3c0",
"underlying": "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8"
}
},
{
"chainId": 1,
"address": "0x6914ECCf50837dC61b43ee478a9BD9B439648956",
"name": "Aave Ethereum EtherFi FRAX",
"decimals": 18,
"symbol": "aEthEtherFiFRAX",
"tags": ["aTokenV3", "aaveV3"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/afrax.svg",
"extensions": {
"pool": "0x0AA97c284e98396202b6A04024F5E2c65026F3c0",
"underlying": "0x853d955aCEf822Db058eb8505911ED77F175b99e"
}
}
],
"version": { "major": 3, "minor": 0, "patch": 39 },
"timestamp": "2024-09-04T00:12:26.140Z"
"version": { "major": 3, "minor": 0, "patch": 40 },
"timestamp": "2024-09-10T07:09:53.849Z"
}
Loading