Skip to content

Commit

Permalink
fix(beefy): πŸ› map sGLP to GLP (Zapper-fi#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo authored and 0xdapper committed Feb 28, 2023
1 parent eb9166a commit 91e47c0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/apps/beefy/common/beefy.vault.token-definition-resolver.ts
Expand Up @@ -54,9 +54,20 @@ export class BeefyVaultTokenDefinitionsResolver {
const definitionsData = definitionsDataRaw.filter(x => x.tokenAddress);

const vaultDefinitions = definitionsData.map(t => {
const tokenAddress = t.tokenAddress.toLowerCase();
return {
address: t.earnContractAddress.toLowerCase(),
underlyingAddress: t.tokenAddress.toLowerCase(),
underlyingAddress:
(
{
arbitrum: {
'0x5402b5f40310bded796c7d0f3ff6683f5c0cffdf': '0x4277f8f2c384827b5273592ff7cebd9f2c1ac258', // sGLP
},
avax: {
'0xae64d55a6f09e4263421737397d1fdfa71896a69': '0x01234181085565ed162a948b6a5e88758cd7c7b8', // sGLP
},
} as Record<string, Record<string, string>>
)[t.network]?.[tokenAddress] ?? tokenAddress,
id: t.id,
marketName: t.name,
symbol: t.token,
Expand Down

0 comments on commit 91e47c0

Please sign in to comment.