Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix(beefy): 馃悰 map sGLP to GLP #2184

Merged
merged 1 commit into from Jan 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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