Skip to content

Commit

Permalink
feat: add eur aggregators and pyUSd (#360)
Browse files Browse the repository at this point in the history
* add eur aggregators and pyUSd

* revert AaveGovernanceV2 change

* update EUR_USD address

Co-authored-by: Andrey <[email protected]>

* update EUR_USD feed address

---------

Co-authored-by: Andrey <[email protected]>
  • Loading branch information
rustboyar and kyzia551 authored Feb 14, 2024
1 parent 1596c20 commit 4050131
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 3 deletions.
6 changes: 6 additions & 0 deletions scripts/configs/networks/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const ethereumAddresses: NetworkAddresses<{
GSM_USDC: Hex;
GSM_USDT: Hex;
sDAI_POT: Hex;
stEUR: Hex;
agEUR_EUR_AGGREGATOR: Hex;
EUR_USD_AGGREGATOR: Hex;
}> = {
name: 'Ethereum',
chainId: ChainId.mainnet,
Expand All @@ -37,6 +40,9 @@ export const ethereumAddresses: NetworkAddresses<{
GSM_USDC: '0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578',
GSM_USDT: '0x686F8D21520f4ecEc7ba577be08354F4d1EB8262',
sDAI_POT: '0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7',
stEUR: '0x004626A008B1aCdC4c74ab51644093b155e59A23',
agEUR_EUR_AGGREGATOR: '0xb4d5289C58CE36080b0748B47F859D8F50dFAACb',
EUR_USD_AGGREGATOR: '0xb49f677943BC038e9857d61E7d053CaA2C1734C1',
},
};

Expand Down
21 changes: 21 additions & 0 deletions src/AaveV3Ethereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,27 @@ library AaveV3EthereumAssets {

// https://etherscan.io/address/0x848107491E029AFDe0AC543779c7790382f15929
address internal constant crvUSD_STATA_TOKEN = 0x848107491E029AFDe0AC543779c7790382f15929;

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

uint8 internal constant PYUSD_DECIMALS = 6;

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

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

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

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

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

library AaveV3EthereumEModes {
Expand Down
9 changes: 9 additions & 0 deletions src/MiscEthereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,13 @@ library MiscEthereum {

// https://etherscan.io/address/0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7
address internal constant sDAI_POT = 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7;

// https://etherscan.io/address/0x004626A008B1aCdC4c74ab51644093b155e59A23
address internal constant stEUR = 0x004626A008B1aCdC4c74ab51644093b155e59A23;

// https://etherscan.io/address/0xb4d5289C58CE36080b0748B47F859D8F50dFAACb
address internal constant agEUR_EUR_AGGREGATOR = 0xb4d5289C58CE36080b0748B47F859D8F50dFAACb;

// https://etherscan.io/address/0xb49f677943BC038e9857d61E7d053CaA2C1734C1
address internal constant EUR_USD_AGGREGATOR = 0xb49f677943BC038e9857d61E7d053CaA2C1734C1;
}
2 changes: 1 addition & 1 deletion src/ts/AaveGovernanceV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export const CROSSCHAIN_FORWARDER_METIS = '0x2fE52eF191F0BE1D98459BdaD2F1d316033
// https://etherscan.io/address/0x3215225538da1546FE0DA88ee13019f402078942
export const CROSSCHAIN_FORWARDER_BASE = '0x3215225538da1546FE0DA88ee13019f402078942';

export const CHAIN_ID = 1;
export const CHAIN_ID = 1;
10 changes: 10 additions & 0 deletions src/ts/AaveV3Ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,16 @@ export const ASSETS = {
ORACLE: '0xEEf0C605546958c1f899b6fB336C20671f9cD49F',
STATA_TOKEN: '0x848107491E029AFDe0AC543779c7790382f15929',
},
PYUSD: {
decimals: 6,
UNDERLYING: '0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
A_TOKEN: '0x0C0d01AbF3e6aDfcA0989eBbA9d6e85dD58EaB1E',
S_TOKEN: '0x5B393DB4c72B1Bd82CE2834F6485d61b137Bc7aC',
V_TOKEN: '0x57B67e4DE077085Fd0AF2174e9c14871BE664546',
INTEREST_RATE_STRATEGY: '0xAC4f9019608f3A359Ba6a576DC4deC9561D2e514',
ORACLE: '0x8f1dF6D7F2db73eECE86a18b4381F4707b918FB1',
STATA_TOKEN: '0x0000000000000000000000000000000000000000',
},
} as const;
export const E_MODES = {
NONE: 0,
Expand Down
9 changes: 9 additions & 0 deletions src/ts/MiscEthereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,13 @@ export const GSM_USDT = '0x686F8D21520f4ecEc7ba577be08354F4d1EB8262';
// https://etherscan.io/address/0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7
export const sDAI_POT = '0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7';

// https://etherscan.io/address/0x004626A008B1aCdC4c74ab51644093b155e59A23
export const stEUR = '0x004626A008B1aCdC4c74ab51644093b155e59A23';

// https://etherscan.io/address/0xb4d5289C58CE36080b0748B47F859D8F50dFAACb
export const agEUR_EUR_AGGREGATOR = '0xb4d5289C58CE36080b0748B47F859D8F50dFAACb';

// https://etherscan.io/address/0xb49f677943BC038e9857d61E7d053CaA2C1734C1
export const EUR_USD_AGGREGATOR = '0xb49f677943BC038e9857d61E7d053CaA2C1734C1';

export const CHAIN_ID = 1;
24 changes: 22 additions & 2 deletions tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"description": "Tokens that are wrapped into a 4626 Vault"
}
},
"timestamp": "2024-02-10T00:45:27.953Z",
"version": { "major": 3, "minor": 0, "patch": 1 },
"timestamp": "2024-02-14T08:04:11.845Z",
"version": { "major": 3, "minor": 0, "patch": 2 },
"tokens": [
{
"chainId": 1,
Expand Down Expand Up @@ -2741,6 +2741,26 @@
"underlyingAToken": "0xb82fa9f31612989525992FCfBB09AB22Eff5c85A"
}
},
{
"chainId": 1,
"address": "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8",
"name": "PayPal USD",
"decimals": 6,
"symbol": "PYUSD",
"tags": ["underlying"]
},
{
"chainId": 1,
"address": "0x0C0d01AbF3e6aDfcA0989eBbA9d6e85dD58EaB1E",
"name": "Aave Ethereum PYUSD",
"decimals": 6,
"symbol": "aEthPYUSD",
"tags": ["aTokenV3", "aaveV3"],
"extensions": {
"pool": "AaveV3Ethereum",
"underlying": "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8"
}
},
{
"chainId": 11155111,
"address": "0xFF34B3d4Aee8ddCd6F9AFFFB6Fe49bD371b8a357",
Expand Down

0 comments on commit 4050131

Please sign in to comment.