Skip to content

Commit

Permalink
feat: List opBNB Farm (#8924)
Browse files Browse the repository at this point in the history
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->


<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on adding two new ERC20 tokens, ETH and FDUSD, to the
opBNB token list and configuring two new farms using these tokens.

### Detailed summary
- Added ETH token with address, decimals, symbol, name, and website.
- Added FDUSD token with address, decimals, symbol, name, and website.
- Configured a new farm with LP address, tokens (opBnb and ETH), and fee
amount.
- Configured another new farm with LP address, tokens (opBnb and FDUSD),
and fee amount.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
ChefMomota authored Jan 26, 2024
1 parent 902aa40 commit 7bfa449
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/farms/constants/opBNB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ import { FeeAmount } from '@pancakeswap/v3-sdk'
import { defineFarmV3Configs } from '../src/defineFarmV3Configs'

export const farmsV3 = defineFarmV3Configs([
{
pid: 3,
lpAddress: '0xFf00F4E09820dbbe8582F771800732DaE7F002bD',
token0: opBnbTokens.wbnb,
token1: opBnbTokens.eth,
feeAmount: FeeAmount.MEDIUM,
},
{
pid: 2,
lpAddress: '0xD9004241D34392e9Ae0C84d5aCDF76941a27D8D1',
token0: opBnbTokens.fdusd,
token1: opBnbTokens.usdt,
feeAmount: FeeAmount.LOWEST,
},
{
pid: 1,
lpAddress: '0xc4f981189558682F15F60513158B699354B30204',
Expand Down
16 changes: 16 additions & 0 deletions packages/tokens/src/opBNB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,20 @@ export const opBnbTokens = {
'ApolloX LP',
'https://www.apollox.finance/en',
),
eth: new ERC20Token(
ChainId.OPBNB,
'0xE7798f023fC62146e8Aa1b36Da45fb70855a77Ea',
18,
'ETH',
'Ethereum',
'https://opbnb.bnbchain.org/en',
),
fdusd: new ERC20Token(
ChainId.OPBNB,
'0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb',
18,
'FDUSD',
'First Digital USD',
'https://firstdigitallabs.com/',
),
}

1 comment on commit 7bfa449

@vercel
Copy link

@vercel vercel bot commented on 7bfa449 Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.