Skip to content

Commit

Permalink
chore: add uni btc farm (#10668)
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 support for a new token `uniBTC` on the
BSC network and integrate it into various configurations such as gauges
and farms.

### Detailed summary
- Added `uniBTC` token with address and metadata
- Added `uniBTC-BTCB` pair configuration for a gauge
- Integrated `uniBTC` into BSC farm configuration

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

<!-- end pr-codex -->
  • Loading branch information
ChefBingbong authored Sep 11, 2024
1 parent f34d352 commit d546ea9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/farms/src/farms/bsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ const pinnedFarmConfig: UniversalFarmConfig[] = [

export const bscFarmConfig: UniversalFarmConfig[] = [
...pinnedFarmConfig,
{
pid: 184,
chainId: ChainId.BSC,
protocol: Protocol.V3,
lpAddress: Pool.getAddress(bscTokens.uniBtc, bscTokens.btcb, FeeAmount.LOW),
token0: bscTokens.uniBtc,
token1: bscTokens.btcb,
feeAmount: FeeAmount.LOW,
},
{
pid: 183,
chainId: ChainId.BSC,
Expand Down
10 changes: 10 additions & 0 deletions packages/gauges/src/constants/config/prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5257,4 +5257,14 @@ export const CONFIG_PROD: GaugeConfig[] = [
token1Address: polygonZkEvmTokens.matic.address,
feeTier: FeeAmount.LOWEST,
},
{
gid: 531,
address: '0x24853895C8864135E77f3b13CF735966f7636f39',
pairName: 'uniBTC-BTCB',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.uniBtc.address,
token1Address: bscTokens.btcb.address,
feeTier: FeeAmount.LOW,
},
]
8 changes: 8 additions & 0 deletions packages/tokens/src/constants/bsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3309,4 +3309,12 @@ export const bscTokens = {
'Poolz Finance',
'https://www.poolz.finance',
),
uniBtc: new ERC20Token(
ChainId.BSC,
'0x6B2a01A5f79dEb4c2f3c0eDa7b01DF456FbD726a',
8,
'uniBTC',
'uniBTC',
'https://www.bedrock.technology/',
),
}

0 comments on commit d546ea9

Please sign in to comment.