Skip to content

Commit

Permalink
Fix axlLqdr
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatyana Stemkovski committed Apr 22, 2024
1 parent 2783e44 commit a45d7ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,14 @@ export const TOKENS: TokenMapping = {
[TokenName.AXLLQDR]: {
[ChainId.Polygon]: {
tokenName: TokenName.AXLLQDR,
tableName: TokenName.AXLLQDR,
tableName: tokenNameWithChainPrefix(TokenName.AXLLQDR, ChainId.Polygon),
address: '0x0294D8eB7857D43FEb1210Db72456d41481f9Ede',
decimals: 18,
displayName: 'axlLQDR',
symbol: 'axlLQDR',
fullName: 'Axelar Wrapped Lqdr',
isOneToken: false,
atCoingecko: false
atCoingecko: true,
}
},
[TokenName.AXLUSDC]: {
Expand Down Expand Up @@ -539,7 +539,7 @@ export const TOKENS: TokenMapping = {
symbol: 'CASH',
fullName: 'CASH',
isOneToken: false,
atCoingecko: false
atCoingecko: true,
}
},
[TokenName.CEL]: {
Expand Down
15 changes: 0 additions & 15 deletions src/utils/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ export async function getTokenMetrics(
case TokenName.USDC:
case TokenName.USDC2:
case TokenName.DAI:
case TokenName.CASH:
case TokenName.HOME:
case TokenName.CUSD:
price = 1;
Expand Down Expand Up @@ -692,20 +691,6 @@ export async function getTokenMetrics(
throw new Error(`Could not lookup token prices for ${token.symbol}`);
}
break;
case TokenName.AXLLQDR:
polygonProvider = await getProvider(ChainId.Polygon);
if (!polygonProvider) {
throw new Error('Could not establish Polygon provider');
}

price = await getTokenPriceFromVault(
VaultName.RETRO_CASH_AXLLQDR,
polygonProvider,
ChainId.Polygon,
TokenName.AXLLQDR,
1 // CASH price = 1
)
break;
case TokenName.HBR:
const bscProvider = await getProvider(ChainId.Bsc);
if (!bscProvider) {
Expand Down

0 comments on commit a45d7ba

Please sign in to comment.