Skip to content

Commit

Permalink
feat: List Defi pool (#9075)
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
### Focus of the PR:
This PR focuses on adding a new DeFi token and updating pool constants.

### Detailed summary:
- Added a new DeFi token to the `bsc.ts` file.
- Added a new pool with the DeFi token in the `56.ts` file.
- Updated the `livePools` array in the `56.ts` file to include the new
pool.
- Added a finished pool to the `finishedPools` array in the `56.ts`
file.

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

<!-- end pr-codex -->

---------

Co-authored-by: ChefJoJo <94336009+chef-jojo@users.noreply.github.com>
  • Loading branch information
ChefMomota and 0xjojoex authored Feb 16, 2024
1 parent 48a5366 commit 6157db8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/strange-garlics-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pancakeswap/tokens': patch
---

add defi
27 changes: 18 additions & 9 deletions packages/pools/src/constants/pools/56.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ export const livePools: SerializedPool[] = [
tokenPerBlock: '10',
isFinished: false,
},
{
sousId: 370,
stakingToken: bscTokens.cake,
earningToken: bscTokens.defi,
contractAddress: '0x887b8E18cb4aE23A4db11B365cc20fD0Cf00FEe0',
poolCategory: PoolCategory.CORE,
tokenPerBlock: '0.01736',
version: 3,
},
{
sousId: 369,
stakingToken: bscTokens.cake,
Expand Down Expand Up @@ -59,15 +68,6 @@ export const livePools: SerializedPool[] = [
isFinished: false,
version: 3,
},
{
sousId: 364,
stakingToken: bscTokens.cake,
earningToken: bscTokens.csix,
contractAddress: '0x692dF8297495f02f31a24A93D10Bd77D072840d7',
poolCategory: PoolCategory.CORE,
tokenPerBlock: '0.5131',
version: 3,
},
].map((p) => ({
...p,
contractAddress: getAddress(p.contractAddress),
Expand All @@ -77,6 +77,15 @@ export const livePools: SerializedPool[] = [

// known finished pools
const finishedPools = [
{
sousId: 364,
stakingToken: bscTokens.cake,
earningToken: bscTokens.csix,
contractAddress: '0x692dF8297495f02f31a24A93D10Bd77D072840d7',
poolCategory: PoolCategory.CORE,
tokenPerBlock: '0.5131',
version: 3,
},
{
sousId: 363,
stakingToken: bscTokens.cake,
Expand Down
1 change: 1 addition & 0 deletions packages/tokens/src/constants/bsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3004,4 +3004,5 @@ export const bscTokens = {
'Dmail Network',
'https://dmail.ai/',
),
defi: new ERC20Token(ChainId.BSC, '0x6d106C0B8d2f47c5465bdBD58D1Be253762cBBC1', 18, 'DEFI', 'DeFi', 'https://de.fi/'),
}

0 comments on commit 6157db8

Please sign in to comment.