Skip to content

Commit

Permalink
feat: new vault and syrup pool (#8804)
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
### Detailed summary
- Added `ASCEND` as a new strategy in the `types.ts` file.
- Updated the `strategy.ts` file to include a translation for the
`ASCEND` strategy.
- Added the translation for `Ascend` in the `translations.json` file.
- Added a new pool configuration with `ASCEND` strategy in the
`pools/56.ts` file.
- Added a new vault configuration with `ASCEND` strategy in the
`vaults/eth.ts` file.

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

<!-- end pr-codex -->
  • Loading branch information
ChefBingbong authored Jan 12, 2024
1 parent f83fa9f commit 5342b53
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/web/src/views/PositionManagers/utils/strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export function getStrategyName(t: TranslateFunction, strategy: Strategy) {
return t('Pegged')
case Strategy.ALO:
return t('Automated Liquidity Optimization')
case Strategy.ASCEND:
return t('Ascend')
default:
return ''
}
Expand Down
3 changes: 2 additions & 1 deletion packages/localization/src/config/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -3121,5 +3121,6 @@
"Converted": "Converted",
"Update Positions": "Update Positions",
"Increase Liquidity": "Increase Liquidity",
"Migrate Liquidity": "Migrate Liquidity"
"Migrate Liquidity": "Migrate Liquidity",
"Ascend": "Ascend"
}
10 changes: 9 additions & 1 deletion packages/pools/src/constants/pools/56.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@ export const livePools: SerializedPool[] = [
tokenPerBlock: '10',
isFinished: false,
},
{
sousId: 367,
stakingToken: bscTokens.cake,
earningToken: bscTokens.irl,
contractAddress: '0x41cD0Fad28F8531De22617959bc943F1B3E12Bd8',
poolCategory: PoolCategory.CORE,
tokenPerBlock: '0.0694444444444445',
version: 3,
},
{
sousId: 366,
stakingToken: bscTokens.cake,
earningToken: bscTokens.ckp,
contractAddress: '0x87f0210c658c81e854e6022315cD68804944acaE',
poolCategory: PoolCategory.CORE,
tokenPerBlock: '0.001929',
isFinished: false,
version: 3,
},
{
Expand Down
19 changes: 19 additions & 0 deletions packages/position-managers/src/constants/vaults/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@ import { Strategy, VaultConfig } from '../../types'
import { MANAGER } from '../managers'

export const vaults: VaultConfig[] = [
{
id: 5,
idByManager: 2,
name: 'BRIL',
address: '0xDd030FDCe5Da3Ad598Df003399d240fC60306355',
adapterAddress: '0x0891CFCDDdA2D07eb312337Ae6EdE0Bbd185B2FD',
currencyA: ethereumTokens.weth,
currencyB: ethereumTokens.swETH,
earningToken: ethereumTokens.cake,
feeTier: FeeAmount.LOW,
strategy: Strategy.ASCEND,
manager: MANAGER.BRIL,
isSingleDepositToken: true,
allowDepositToken0: true,
allowDepositToken1: false,
managerInfoUrl: 'https://www.bril.finance/',
strategyInfoUrl: 'https://docs.bril.finance/ascend/overview',
learnMoreAboutUrl: 'https://docs.bril.finance/yield-iq/faqs',
},
{
id: 4,
idByManager: 1,
Expand Down
1 change: 1 addition & 0 deletions packages/position-managers/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export enum Strategy {
PASSIVE,
PEGGED,
ALO,
ASCEND,
}

export interface OnChainActionResponse {
Expand Down

2 comments on commit 5342b53

@vercel
Copy link

@vercel vercel bot commented on 5342b53 Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

uikit – ./packages/uikit

uikit.pancake.run
uikit-git-develop.pancake.run

@vercel
Copy link

@vercel vercel bot commented on 5342b53 Jan 12, 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.