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

Commit

Permalink
fix(pancakeswap): Update Syrup pools label (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwele committed Jun 27, 2022
1 parent ceb020c commit 3d2216d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -6,6 +6,7 @@ import { BigNumber } from 'ethers';
import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface';
import { Register } from '~app-toolkit/decorators';
import { RewardRateUnit } from '~app-toolkit/helpers/master-chef/master-chef.contract-position-helper';
import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present';
import { PositionFetcher } from '~position/position-fetcher.interface';
import { ContractPosition } from '~position/position.interface';
import { Network } from '~types/network.interface';
Expand Down Expand Up @@ -52,6 +53,7 @@ export class BinanceSmartChainPancakeswapSyrupCakeContractPositionFetcher implem
const rewardPerBlock = poolShare * Number(cakePerBlock);
return rewardPerBlock;
},
resolveLabel: ({ rewardTokens }) => `Earn ${getLabelFromToken(rewardTokens[0])}`,
});
}
}
Expand Up @@ -4,6 +4,7 @@ import { BigNumber } from 'ethers';
import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface';
import { Register } from '~app-toolkit/decorators';
import { RewardRateUnit } from '~app-toolkit/helpers/master-chef/master-chef.contract-position-helper';
import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present';
import { PositionFetcher } from '~position/position-fetcher.interface';
import { ContractPosition } from '~position/position.interface';
import { Network } from '~types/network.interface';
Expand Down Expand Up @@ -350,6 +351,7 @@ export class BinanceSmartChainPancakeswapSyrupStakingContractPositionFetcher
return multicall.wrap(contract).rewardPerBlock();
},
}),
resolveLabel: ({ rewardTokens }) => `Earn ${getLabelFromToken(rewardTokens[0])}`,
});
}
}

0 comments on commit 3d2216d

Please sign in to comment.