From 6157db8a4676d27dcc2d6fbee6a1e941baf8cadd Mon Sep 17 00:00:00 2001 From: ChefMomota <98292246+ChefMomota@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:15:36 +0800 Subject: [PATCH] feat: List Defi pool (#9075) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## 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}` --------- Co-authored-by: ChefJoJo <94336009+chef-jojo@users.noreply.github.com> --- .changeset/strange-garlics-end.md | 5 +++++ packages/pools/src/constants/pools/56.ts | 27 ++++++++++++++++-------- packages/tokens/src/constants/bsc.ts | 1 + 3 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 .changeset/strange-garlics-end.md diff --git a/.changeset/strange-garlics-end.md b/.changeset/strange-garlics-end.md new file mode 100644 index 0000000000000..35a01a5dcd975 --- /dev/null +++ b/.changeset/strange-garlics-end.md @@ -0,0 +1,5 @@ +--- +'@pancakeswap/tokens': patch +--- + +add defi diff --git a/packages/pools/src/constants/pools/56.ts b/packages/pools/src/constants/pools/56.ts index e4fe16de38687..276108e2882ea 100644 --- a/packages/pools/src/constants/pools/56.ts +++ b/packages/pools/src/constants/pools/56.ts @@ -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, @@ -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), @@ -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, diff --git a/packages/tokens/src/constants/bsc.ts b/packages/tokens/src/constants/bsc.ts index 30ac78ccbd76b..e3a545fd80942 100644 --- a/packages/tokens/src/constants/bsc.ts +++ b/packages/tokens/src/constants/bsc.ts @@ -3004,4 +3004,5 @@ export const bscTokens = { 'Dmail Network', 'https://dmail.ai/', ), + defi: new ERC20Token(ChainId.BSC, '0x6d106C0B8d2f47c5465bdBD58D1Be253762cBBC1', 18, 'DEFI', 'DeFi', 'https://de.fi/'), }