Skip to content

Commit

Permalink
chore: add-new-syrup-pool (#10659)
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
The focus of this PR is to add a new pool for the Polygon ecosystem
token (POL) and update pool details.

### Detailed summary
- Added a new pool with POL token for Polygon ecosystem
- Updated livePools with new pool details
- Serialized staking and earning tokens for the new pool

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

<!-- end pr-codex -->
  • Loading branch information
ChefBingbong authored Sep 10, 2024
1 parent 82333b9 commit 9f78a99
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
22 changes: 20 additions & 2 deletions packages/pools/src/constants/pools/1101.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
import { SerializedPool } from '../../types'
import { polygonZkEvmTokens } from '@pancakeswap/tokens'
import { getAddress } from 'viem'
import { PoolCategory, SerializedPool } from '../../types'

export const livePools: SerializedPool[] = []
export const livePools: SerializedPool[] = [
{
sousId: 1,
stakingToken: polygonZkEvmTokens.cake,
earningToken: polygonZkEvmTokens.pol,
contractAddress: '0x3BF2521A44502eDC06efA069be66694ec4d3AB65',
poolCategory: PoolCategory.CORE,
tokenPerSecond: '0.0055',
version: 3,
},
].map((p) => ({
...p,
isFinished: false,
contractAddress: getAddress(p.contractAddress),
stakingToken: p.stakingToken.serialize,
earningToken: p.earningToken.serialize,
}))

// known finished pools
export const finishedPools: SerializedPool[] = []
Expand Down
8 changes: 8 additions & 0 deletions packages/tokens/src/constants/polygonZkEVM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,12 @@ export const polygonZkEvmTokens = {
'Dai Stablecoin',
'https://makerdao.com/',
),
pol: new ERC20Token(
ChainId.POLYGON_ZKEVM,
'0x22B21BedDef74FE62F031D2c5c8F7a9F8a4b304D',
18,
'POL',
'Polygon Ecosystem Token',
'https://polygon.technology/pol-token',
),
}

0 comments on commit 9f78a99

Please sign in to comment.