Skip to content

Commit

Permalink
feat: add new gauges on arbitrum eth and bsc (#8785)
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 new ERC20 tokens and updating farm
configurations.

### Detailed summary:
- Added a new ERC20 token `wrose` with its details.
- Added a new ERC20 token `swETH` with its details.
- Updated the list of tokens in
`packages/farms/constants/common/index.ts`.
- Added new ERC20 tokens `usdplus`, `usdce`, `usdtplus`, and `ethplus`
with their details.
- Updated the farm configurations in `packages/farms/constants/arb.ts`
and `packages/farms/constants/bsc.ts`.
- Added new gauge configurations in
`packages/gauges/src/constants/config/prod.ts`.

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

<!-- end pr-codex -->
  • Loading branch information
ChefBingbong authored Jan 11, 2024
1 parent 4d0f525 commit c09d31f
Show file tree
Hide file tree
Showing 8 changed files with 323 additions and 31 deletions.
28 changes: 28 additions & 0 deletions packages/farms/constants/arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@ import { FeeAmount } from '@pancakeswap/v3-sdk'
import { defineFarmV3Configs } from '../src/defineFarmV3Configs'

export const farmsV3 = defineFarmV3Configs([
{
pid: 36,
lpAddress: '0xdAA80a051E22A7f7b0cfC33Aa29572fbDE65183E',
token0: arbitrumTokens.weth,
token1: arbitrumTokens.ethplus,
feeAmount: FeeAmount.LOWEST,
},
{
pid: 35,
lpAddress: '0xd01075f7314a6436e8B74fc18069848229D0c555',
token0: arbitrumTokens.usdplus,
token1: arbitrumTokens.usdce,
feeAmount: FeeAmount.LOWEST,
},
{
pid: 34,
lpAddress: '0x06c75011479E47280e8B7E72E9e0315C8b3A634d',
token0: arbitrumTokens.ethplus,
token1: arbitrumTokens.usdplus,
feeAmount: FeeAmount.MEDIUM,
},
{
pid: 33,
lpAddress: '0xb9c2d906f94b27bC403Ab76B611D2C4490c2ae3F',
token0: arbitrumTokens.usdtplus,
token1: arbitrumTokens.usdplus,
feeAmount: FeeAmount.LOWEST,
},
{
pid: 32,
lpAddress: '0xf0B860d338E8B5199606322653B83A166d96E417',
Expand Down
71 changes: 70 additions & 1 deletion packages/farms/constants/bsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,76 @@ export const farmsV3 = defineFarmV3Configs([
...v3TopFixedLps,
// new lps should follow after the top fixed lps
// latest first
{
pid: 130,
lpAddress: '0xce44eBE42ABc496eACBd6582b6e14f3937116B23',
token0: bscTokens.usdt,
token1: bscTokens.irl,
feeAmount: FeeAmount.HIGH,
},
{
pid: 129,
lpAddress: '0xf66A930Ed3b004BA16ee11b3A9B142EAf2259b0d',
token0: bscTokens.usdc,
token1: bscTokens.fdusd,
feeAmount: FeeAmount.LOWEST,
},
{
pid: 128,
lpAddress: '0x0f3aDA81A32D8a7233fe9B1D04f0A8231AdB98F0',
token0: bscTokens.bnb,
token1: bscTokens.fdusd,
feeAmount: FeeAmount.LOW,
},
{
pid: 127,
lpAddress: '0xA62439A42fbeC9827a0B0452A5fD619d517F2D83',
token0: bscTokens.cake,
token1: bscTokens.fdusd,
feeAmount: FeeAmount.MEDIUM,
},
{
pid: 126,
lpAddress: '0x63393D036FEf3B187ca613a8E5D917697ade2cD5',
token0: bscTokens.eth,
token1: bscTokens.fdusd,
feeAmount: FeeAmount.LOW,
},
{
pid: 125,
lpAddress: '0x6AA9c4eDA3BF8ac038aD5C243133d6D25aA9cc73',
token0: bscTokens.btcb,
token1: bscTokens.fdusd,
feeAmount: FeeAmount.LOW,
},
{
pid: 124,
lpAddress: '0x06aC8EE32BCdcE6bF2eA82D9Bfb932a84D45BFcb',
token0: bscTokens.insp,
token1: bscTokens.bnb,
feeAmount: FeeAmount.HIGH,
},
{
pid: 123,
lpAddress: '0x5B56eea565dad4E72B8ea6a6567834E144fb7a93',
token0: bscTokens.usdt,
token1: bscTokens.wrose,
feeAmount: FeeAmount.MEDIUM,
},
{
pid: 122,
lpAddress: '0x1E8D7AB96323953faC85ab687f5D38b45344e62d',
token0: bscTokens.usdt,
token1: bscTokens.cgpt,
feeAmount: FeeAmount.LOW,
},
{
pid: 121,
lpAddress: '0x8b626Acfb32CDad0d2F3b493Eb9928BbA1BbBcCa',
token0: bscTokens.ckp,
token1: bscTokens.wbnb,
feeAmount: FeeAmount.MEDIUM,
},
{
pid: 120,
lpAddress: '0x88240a2CA0Af5DD3b181975b9985274274CB3685',
Expand Down Expand Up @@ -944,7 +1014,6 @@ const farms: SerializedFarmConfig[] = [
stableLpFee: 0.0002,
stableLpFeeRateOfTotalFee: 0.5,
},

{
pid: 163,
lpSymbol: 'HAY-USDT LP',
Expand Down
2 changes: 1 addition & 1 deletion packages/farms/constants/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const priceHelperTokens = {
},
[ChainId.ARBITRUM_ONE]: {
chain: 'arbitrum',
list: [arbitrumTokens.weth, arbitrumTokens.usdc, arbitrumTokens.usdt, arbitrumTokens.arb],
list: [arbitrumTokens.weth, arbitrumTokens.usdc, arbitrumTokens.usdt, arbitrumTokens.arb, arbitrumTokens.usdplus],
},
[ChainId.LINEA]: {
chain: 'linea',
Expand Down
7 changes: 7 additions & 0 deletions packages/farms/constants/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ export const farmsV3 = defineFarmV3Configs([
feeAmount: FeeAmount.MEDIUM,
},
// Keep those farms on top
// {
// pid: 52,
// lpAddress: '0x6db0f81Db2C3B2A85a802d511577d8522D0D8C14',
// token0: ethereumTokens.weth,
// token1: ethereumTokens.swETH,
// feeAmount: FeeAmount.LOW,
// },
{
pid: 51,
lpAddress: '0x6Fab6CEdf26f9bF03448Fe835B674be1CFf0E8BB',
Expand Down
197 changes: 168 additions & 29 deletions packages/gauges/src/constants/config/prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,15 +1045,6 @@ export const CONFIG_PROD: GaugeConfig[] = [
feeTier: FeeAmount.MEDIUM,
},

{
gid: 104,
address: '0xb1Da7D2C257c5700612BdE35C8d7187dc80d79f1',
pairName: 'HAY-USDT',
chainId: ChainId.BSC,
type: GaugeType.StableSwap,
tokenAddresses: [bscTokens.hay.address, bscTokens.usdt.address],
},

{
gid: 105,
address: '0x1ac1A8FEaAEa1900C4166dEeed0C11cC10669D36',
Expand Down Expand Up @@ -2061,26 +2052,6 @@ export const CONFIG_PROD: GaugeConfig[] = [
token1Address: bscTokens.wbnb.address,
feeTier: FeeAmount.MEDIUM,
},
{
gid: 206,
pairName: 'ordi-BNB',
address: '0x442EFB99C2727c6000727C3cf672e3d77C9cDEaD',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.ordi.address,
token1Address: bscTokens.wbnb.address,
feeTier: FeeAmount.HIGH,
},
{
gid: 207,
pairName: 'MUBI-BNB',
address: '0x961C19a53e5EA0e43B8F9020553F94623Ce475B6',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.mubi.address,
token1Address: bscTokens.wbnb.address,
feeTier: FeeAmount.HIGH,
},
{
gid: 208,
pairName: 'NFP-USDT',
Expand Down Expand Up @@ -2209,4 +2180,172 @@ export const CONFIG_PROD: GaugeConfig[] = [
token1Address: polygonZkEvmTokens.wbtc.address,
feeTier: FeeAmount.LOW,
},
// {
// gid: 221,
// pairName: 'ETH-swETH',
// address: '0x6db0f81Db2C3B2A85a802d511577d8522D0D8C14',
// chainId: ChainId.ETHEREUM,
// type: GaugeType.V3,
// token0Address: ethereumTokens.weth.address,
// token1Address: ethereumTokens.swETH.address,
// feeTier: FeeAmount.LOW,
// },
{
gid: 222,
pairName: 'HAY-USDT',
address: '0xB2Aa63f363196caba3154D4187949283F085a488',
chainId: ChainId.BSC,
type: GaugeType.StableSwap,
tokenAddresses: [bscTokens.hay.address, bscTokens.usdt.address],
},
{
gid: 223,
pairName: 'USDT-CGPT',
address: '0x1E8D7AB96323953faC85ab687f5D38b45344e62d',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.usdt.address,
token1Address: bscTokens.cgpt.address,
feeTier: FeeAmount.LOW,
},
{
gid: 224,
pairName: 'USDT-wROSE',
address: '0x5B56eea565dad4E72B8ea6a6567834E144fb7a93',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.usdt.address,
token1Address: bscTokens.wrose.address,
feeTier: FeeAmount.MEDIUM,
},
{
gid: 225,
pairName: 'INSP-BNB',
address: '0x06aC8EE32BCdcE6bF2eA82D9Bfb932a84D45BFcb',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.insp.address,
token1Address: bscTokens.wbnb.address,
feeTier: FeeAmount.HIGH,
},
{
gid: 226,
pairName: 'FDUSD-BTC',
address: '0x6AA9c4eDA3BF8ac038aD5C243133d6D25aA9cc73',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.btcb.address,
token1Address: bscTokens.fdusd.address,
feeTier: FeeAmount.LOW,
},
{
gid: 227,
pairName: 'FDUSD-ETH',
address: '0x63393D036FEf3B187ca613a8E5D917697ade2cD5',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.eth.address,
token1Address: bscTokens.fdusd.address,
feeTier: FeeAmount.LOW,
},
{
gid: 228,
pairName: 'FDUSD-CAKE',
address: '0xA62439A42fbeC9827a0B0452A5fD619d517F2D83',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.cake.address,
token1Address: bscTokens.fdusd.address,
feeTier: FeeAmount.MEDIUM,
},
{
gid: 229,
pairName: 'FDUSD-BNB',
address: '0x0f3aDA81A32D8a7233fe9B1D04f0A8231AdB98F0',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.bnb.address,
token1Address: bscTokens.fdusd.address,
feeTier: FeeAmount.LOW,
},
{
gid: 230,
pairName: 'FDUSD-USDC',
address: '0xf66A930Ed3b004BA16ee11b3A9B142EAf2259b0d',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.usdc.address,
token1Address: bscTokens.fdusd.address,
feeTier: FeeAmount.LOWEST,
},
{
gid: 231,
pairName: 'XAI-WETH',
address: '0xf0B860d338E8B5199606322653B83A166d96E417',
chainId: ChainId.ARBITRUM_ONE,
type: GaugeType.V3,
token0Address: arbitrumTokens.xai.address,
token1Address: arbitrumTokens.weth.address,
feeTier: FeeAmount.MEDIUM,
},
{
gid: 232,
pairName: 'USDT+-USD+',
address: '0xb9c2d906f94b27bC403Ab76B611D2C4490c2ae3F',
chainId: ChainId.ARBITRUM_ONE,
type: GaugeType.V3,
token0Address: arbitrumTokens.usdtplus.address,
token1Address: arbitrumTokens.usdplus.address,
feeTier: FeeAmount.LOWEST,
},
{
gid: 233,
pairName: 'USD+-ETH+',
address: '0x06c75011479E47280e8B7E72E9e0315C8b3A634d',
chainId: ChainId.ARBITRUM_ONE,
type: GaugeType.V3,
token0Address: arbitrumTokens.ethplus.address,
token1Address: arbitrumTokens.usdplus.address,
feeTier: FeeAmount.MEDIUM,
},
{
gid: 234,
pairName: 'USD+-USDC.e',
address: '0xd01075f7314a6436e8B74fc18069848229D0c555',
chainId: ChainId.ARBITRUM_ONE,
type: GaugeType.V3,
token0Address: arbitrumTokens.usdplus.address,
token1Address: arbitrumTokens.usdce.address,
feeTier: FeeAmount.LOWEST,
},
{
gid: 235,
pairName: 'WETH-ETH+',
address: '0xdAA80a051E22A7f7b0cfC33Aa29572fbDE65183E',
chainId: ChainId.ARBITRUM_ONE,
type: GaugeType.V3,
token0Address: arbitrumTokens.weth.address,
token1Address: arbitrumTokens.ethplus.address,
feeTier: FeeAmount.LOWEST,
},
{
gid: 236,
pairName: 'CKP-BNB',
address: '0x8b626Acfb32CDad0d2F3b493Eb9928BbA1BbBcCa',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.ckp.address,
token1Address: bscTokens.wbnb.address,
feeTier: FeeAmount.MEDIUM,
},
{
gid: 237,
pairName: 'IRL-USDT',
address: '0xce44eBE42ABc496eACBd6582b6e14f3937116B23',
chainId: ChainId.BSC,
type: GaugeType.V3,
token0Address: bscTokens.usdt.address,
token1Address: bscTokens.irl.address,
feeTier: FeeAmount.HIGH,
},
]
8 changes: 8 additions & 0 deletions packages/tokens/src/1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,12 @@ export const ethereumTokens = {
'AIOZ Network',
'https://aioz.network/',
),
swETH: new ERC20Token(
ChainId.ETHEREUM,
'0xf951E335afb289353dc249e82926178EaC7DEd78',
18,
'swETH',
'swETH',
'https://www.swellnetwork.io/',
),
}
Loading

1 comment on commit c09d31f

@vercel
Copy link

@vercel vercel bot commented on c09d31f Jan 11, 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.