Skip to content

Commit

Permalink
feat(farm/pool): ONE - 1800 (pancakeswap#1675)
Browse files Browse the repository at this point in the history
* feat(farm/pool): ONE

* fix: Farm token

* chore: Update commenting
  • Loading branch information
Chef-Chungus authored Jul 8, 2021
1 parent 4b0d272 commit 6c81f4f
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/__tests__/config/tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import { Token } from 'config/constants/types'
import multicall from 'utils/multicall'

// remove BNB because it's not a Bep20 token
const tokensToTest = omitBy(tokens, (token) => token.symbol.toLowerCase() === 'bnb')
// remove ONE because there are two tokens with the symbol ONE (Harmony ONE and BigONE)
const tokensToTest = omitBy(
tokens,
(token) => token.symbol.toLowerCase() === 'bnb' || token.symbol.toLowerCase() === 'one',
)

describe('Config tokens', () => {
it.each(map(tokensToTest, (token, key) => [key, token]))(
Expand Down
10 changes: 10 additions & 0 deletions src/config/constants/farms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ const farms: FarmConfig[] = [
/**
* V3 by order of release (some may be out of PID order due to multiplier boost)
*/
{
pid: 427,
lpSymbol: 'ONE-BNB LP',
lpAddresses: {
97: '',
56: '0x9d2296e2fe3cdbf2eb3e3e2ca8811bafa42eedff',
},
token: tokens.harmony,
quoteToken: tokens.wbnb,
},
{
pid: 426,
lpSymbol: 'MASK-BNB LP',
Expand Down
13 changes: 13 additions & 0 deletions src/config/constants/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ const pools: PoolConfig[] = [
sortOrder: 1,
isFinished: false,
},
{
sousId: 195,
stakingToken: tokens.cake,
earningToken: tokens.harmony,
contractAddress: {
97: '',
56: '0xe595456846155e23b24cc9cbee910ee97027db6d',
},
poolCategory: PoolCategory.CORE,
harvest: true,
sortOrder: 999,
tokenPerBlock: '3.0092',
},
{
sousId: 194,
stakingToken: tokens.cake,
Expand Down
9 changes: 9 additions & 0 deletions src/config/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ const tokens = {
decimals: 18,
projectLink: 'https://pancakeswap.finance/',
},
harmony: {
symbol: 'ONE',
address: {
56: '0x03fF0ff224f904be3118461335064bB48Df47938',
97: '',
},
decimals: 18,
projectLink: 'https://www.harmony.one/',
},
mask: {
symbol: 'MASK',
address: {
Expand Down

0 comments on commit 6c81f4f

Please sign in to comment.