Skip to content

Commit

Permalink
fix: symbol (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite authored Jan 31, 2025
1 parent 98a92f7 commit 13bf5f4
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 8 deletions.
1 change: 1 addition & 0 deletions safe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,7 @@ address,name,chainId
0x1fFD28689DA7d0148ff0fCB669e9f9f0Fc13a219,AaveV3Arbitrum ASSETS ezETH V_TOKEN,42161
0x429F16dBA3B9e1900087Cbaa7b50D38Bc60fB73F,AaveV3Arbitrum ASSETS ezETH INTEREST_RATE_STRATEGY,42161
0x8Ed37B72300683c0482A595bfa80fFb793874b15,AaveV3Arbitrum ASSETS ezETH ORACLE,42161
0x4ff50C17df0D1b788d021ACd85039810a1aA68A1,AaveV3Arbitrum ASSETS ezETH STATA_TOKEN,42161
0xADf86b537eF08591c2777E144322E8b0Ca7E82a7,AaveV3Arbitrum CAPS_PLUS_RISK_STEWARD,42161
0x053D55f9B5AF8694c503EB288a1B7E552f590710,AaveV3Arbitrum COLLECTOR,42161
0x5EcF74eb2feC38fe80F8f20f7eb302F276635fff,AaveV3Arbitrum CONFIG_ENGINE,42161
Expand Down
2 changes: 1 addition & 1 deletion scripts/generator/assetsLibraryGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function fixSymbol(symbol: string, _underlying: string) {
case '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359': // polygon
return 'USDCn';
}
return symbol.replace('-', '_').replace('.', '').replace(' ', '_').replace('1', 'ONE_');
return symbol.replace('-', '_').replace('.', '').replace(' ', '_').replace('1', 'ONE_').replace('USD₮0', 'USDT');
}

export function generateAssetsLibrary(
Expand Down
3 changes: 3 additions & 0 deletions src/AaveV3Arbitrum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,9 @@ library AaveV3ArbitrumAssets {
// https://arbiscan.io/address/0x429F16dBA3B9e1900087Cbaa7b50D38Bc60fB73F
address internal constant ezETH_INTEREST_RATE_STRATEGY =
0x429F16dBA3B9e1900087Cbaa7b50D38Bc60fB73F;

// https://arbiscan.io/address/0x4ff50C17df0D1b788d021ACd85039810a1aA68A1
address internal constant ezETH_STATA_TOKEN = 0x4ff50C17df0D1b788d021ACd85039810a1aA68A1;
}
library AaveV3ArbitrumEModes {
uint8 internal constant NONE = 0;
Expand Down
1 change: 1 addition & 0 deletions src/ts/AaveV3Arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export const ASSETS = {
V_TOKEN: '0x1fFD28689DA7d0148ff0fCB669e9f9f0Fc13a219',
INTEREST_RATE_STRATEGY: '0x429F16dBA3B9e1900087Cbaa7b50D38Bc60fB73F',
ORACLE: '0x8Ed37B72300683c0482A595bfa80fFb793874b15',
STATA_TOKEN: '0x4ff50C17df0D1b788d021ACd85039810a1aA68A1',
},
} as const;
export const E_MODES = {
Expand Down
12 changes: 12 additions & 0 deletions tests/__snapshots__/verification.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,17 @@ exports[`verification > should have all contracts verified except for the known
"value": "0xD089B4cb88Dacf4e27be869A00e9f7e2E3C18193",
},
},
{
"item": {
"chainId": 42161,
"path": [
"AaveV3Arbitrum",
"ASSETS",
"ezETH",
"STATA_TOKEN",
],
"value": "0x4ff50C17df0D1b788d021ACd85039810a1aA68A1",
},
},
]
`;
24 changes: 17 additions & 7 deletions tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -5450,8 +5450,7 @@
"name": "Tether USD",
"decimals": 6,
"symbol": "USDT",
"tags": ["underlying"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/usdt.svg"
"tags": ["underlying"]
},
{
"chainId": 42161,
Expand All @@ -5460,7 +5459,6 @@
"decimals": 6,
"symbol": "aArbUSDT",
"tags": ["aTokenV3", "aaveV3"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/ausdt.svg",
"extensions": {
"pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD",
"underlying": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"
Expand All @@ -5473,7 +5471,6 @@
"decimals": 6,
"symbol": "stataArbUSDT",
"tags": ["aaveV3", "staticAT"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statausdt.svg",
"extensions": {
"pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD",
"underlying": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
Expand All @@ -5487,7 +5484,6 @@
"decimals": 6,
"symbol": "waArbUSDT",
"tags": ["aaveV3", "stataToken"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/statausdt.svg",
"extensions": {
"pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD",
"underlying": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
Expand Down Expand Up @@ -5982,6 +5978,20 @@
"underlying": "0x2416092f143378750bb29b79eD961ab195CcEea5"
}
},
{
"chainId": 42161,
"address": "0x4ff50C17df0D1b788d021ACd85039810a1aA68A1",
"name": "Wrapped Aave Arbitrum ezETH",
"decimals": 18,
"symbol": "waArbezETH",
"tags": ["aaveV3", "stataToken"],
"logoURI": "https://raw.githubusercontent.com/bgd-labs/web3-icons/main/icons/full/stataezeth.svg",
"extensions": {
"pool": "0x794a61358D6845594F94dc1DB02A252b5b4814aD",
"underlying": "0x2416092f143378750bb29b79eD961ab195CcEea5",
"underlyingAToken": "0xEA1132120ddcDDA2F119e99Fa7A27a0d036F7Ac9"
}
},
{
"chainId": 10,
"address": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
Expand Down Expand Up @@ -7394,6 +7404,6 @@
}
}
],
"version": { "major": 3, "minor": 0, "patch": 79 },
"timestamp": "2025-01-27T11:16:20.221Z"
"version": { "major": 3, "minor": 0, "patch": 80 },
"timestamp": "2025-01-30T12:01:43.440Z"
}

0 comments on commit 13bf5f4

Please sign in to comment.