Skip to content

Commit

Permalink
fix: Address helper (pancakeswap#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbitDoge authored Feb 8, 2021
1 parent 66a4716 commit ebdb1b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/addressHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export const getRabbitMintingFarmAddress = () => {
return getAddress(addresses.rabbitMintingFarm)
}
export const getClaimRefundAddress = () => {
return addresses.claimRefund[chainId]
return getAddress(addresses.claimRefund)
}
4 changes: 2 additions & 2 deletions src/views/Home/components/EarnAssetCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const CardMidContent = styled(Heading).attrs({ size: 'xl' })`
line-height: 44px;
`
const EarnAssetCard = () => {
const activePools = pools.filter((pool) => !pool.isFinished)
const latestPools: Pool[] = orderBy(activePools, ['sortOrder', 'pid'], ['desc', 'desc']).slice(0, 3)
const activePools = pools.filter((pool) => !pool.isFinished)
const latestPools: Pool[] = orderBy(activePools, ['sortOrder', 'pid'], ['desc', 'desc']).slice(0, 3)
// Always include CAKE
const assets = ['CAKE', ...latestPools.map((pool) => pool.tokenName)].join(', ')

Expand Down

0 comments on commit ebdb1b9

Please sign in to comment.