Skip to content

Commit

Permalink
feat: add underlying to tokenlist
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Feb 8, 2024
1 parent 2eb1729 commit e094e34
Show file tree
Hide file tree
Showing 2 changed files with 1,771 additions and 418 deletions.
5 changes: 3 additions & 2 deletions scripts/generator/generateTokenList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export async function generateTokenList(pools: TokenListParams) {
address: token,
client: CHAIN_ID_CLIENT_MAP[chainId],
});
console.log(token, poolName);
const [name, symbol] =
token == '0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2'
? ['Maker', 'MKR']
Expand All @@ -70,14 +69,16 @@ export async function generateTokenList(pools: TokenListParams) {
await addToken(
reserve.A_TOKEN,
/V2/.test(poolName) ? [TAGS.aTokenV2, TAGS.aaveV2] : [TAGS.aTokenV3, TAGS.aaveV3],
{pool: poolName},
{pool: poolName, underlying: reserve.UNDERLYING},
);
if (reserve.STATA_TOKEN && reserve.STATA_TOKEN != zeroAddress)
await addToken(
reserve.STATA_TOKEN,
[/V2/.test(poolName) ? TAGS.aaveV3 : TAGS.aaveV3, TAGS.stataToken],
{
pool: poolName,
underlying: reserve.UNDERLYING,
underlyingAToken: reserve.A_TOKEN,
},
);
}
Expand Down
Loading

0 comments on commit e094e34

Please sign in to comment.