Skip to content

Commit

Permalink
feat: added Wrapper to wrapped lps
Browse files Browse the repository at this point in the history
  • Loading branch information
n0mbr3al3at0r10 committed Jan 8, 2025
1 parent 421c0c8 commit 2a055af
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
12 changes: 12 additions & 0 deletions config/bills.json
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@
"liquidityDex": {
"8453": "UniswapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"getLpUrl": {
"8453": "https://app.ichi.org/vault/token/0x1986cc18d8ec757447254310d2604f85741aa732/"
Expand Down Expand Up @@ -810,6 +811,7 @@
"liquidityDex": {
"8453": "UniswapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"getLpUrl": {
"8453": "https://app.ichi.org/vault/token/0x1986cc18d8ec757447254310d2604f85741aa732/"
Expand Down Expand Up @@ -2783,6 +2785,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Lynex",
"liquidityDex": {
"59144": "Algebra"
Expand Down Expand Up @@ -3565,6 +3568,7 @@
"liquidityDex": {
"56": "PancakeSwapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "PancakeSwap",
"getLpUrl": {
"56": "https://pancakeswap.finance/position-managers"
Expand Down Expand Up @@ -3673,6 +3677,7 @@
"liquidityDex": {
"56": "Algebra"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Thena",
"getLpUrl": {
"56": "https://thena.fi/pools/0x87a4276eaed3b46cb77ec41d6f6b9fc98b159725"
Expand Down Expand Up @@ -5658,6 +5663,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"liquidityDex": {
"56": "Algebra"
Expand Down Expand Up @@ -15084,6 +15090,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"getLpUrl": {
"137": "https://app.ichi.org/vault/token/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270/"
Expand Down Expand Up @@ -15142,6 +15149,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "QuickSwap"
},
"earnToken": {
Expand Down Expand Up @@ -15309,6 +15317,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "QuickSwap"
},
"earnToken": {
Expand Down Expand Up @@ -15942,6 +15951,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "QuickSwap"
},
"earnToken": {
Expand Down Expand Up @@ -19256,6 +19266,7 @@
"liquidityDex": {
"42161": "UniswapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"active": true,
"lpToken": true
Expand Down Expand Up @@ -19414,6 +19425,7 @@
"liquidityDex": {
"42161": "UniswapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"active": true,
"lpToken": true
Expand Down
11 changes: 11 additions & 0 deletions config/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Lynex",
"liquidityDex": {
"59144": "Algebra"
Expand Down Expand Up @@ -4428,6 +4429,7 @@
"liquidityDex": {
"42161": "UniswapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"active": true,
"lpToken": true
Expand All @@ -4443,6 +4445,7 @@
"liquidityDex": {
"42161": "UniswapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"active": true,
"lpToken": true
Expand Down Expand Up @@ -5440,6 +5443,7 @@
"liquidityDex": {
"56": "Algebra"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Thena",
"getLpUrl": {
"56": "https://thena.fi/pools/0x87a4276eaed3b46cb77ec41d6f6b9fc98b159725"
Expand All @@ -5458,6 +5462,7 @@
"liquidityDex": {
"56": "PancakeSwapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "PancakeSwap",
"getLpUrl": {
"56": "https://pancakeswap.finance/position-managers"
Expand Down Expand Up @@ -5571,6 +5576,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"liquidityDex": {
"56": "Algebra"
Expand Down Expand Up @@ -6174,6 +6180,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "QuickSwap"
},
"polEth_Ichi": {
Expand Down Expand Up @@ -6206,6 +6213,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "QuickSwap"
},
"usdtVda_Ichi": {
Expand All @@ -6221,6 +6229,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "QuickSwap"
},
"polRum_Ichi": {
Expand All @@ -6236,6 +6245,7 @@
},
"active": true,
"lpToken": true,
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"getLpUrl": {
"137": "https://app.ichi.org/vault/token/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270/"
Expand Down Expand Up @@ -6570,6 +6580,7 @@
"liquidityDex": {
"8453": "UniswapV3"
},
"liquidityWrapper": 1,
"ichiUnderlyingDex": "Uniswap V3",
"getLpUrl": {
"8453": "https://app.ichi.org/vault/token/0x1986cc18d8ec757447254310d2604f85741aa732/"
Expand Down
13 changes: 12 additions & 1 deletion src/constants/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChainId, IchiSupportedDex, LiquidityDex, Token } from '../types'
import { ChainId, IchiSupportedDex, LiquidityDex, Token, Wrappers } from '../types'

const tokens: Record<string, Token> = {
// BANANA should always be first token for GNANA calculation
Expand Down Expand Up @@ -555,6 +555,7 @@ const tokens: Record<string, Token> = {
decimals: { [ChainId.LINEA]: 18 },
active: true,
lpToken: true,
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.Lynex,
liquidityDex: {
[ChainId.LINEA]: LiquidityDex.Algebra,
Expand Down Expand Up @@ -4274,6 +4275,7 @@ const tokens: Record<string, Token> = {
liquidityDex: {
[ChainId.ARBITRUM]: LiquidityDex.UniswapV3,
},
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.UniswapV3,
active: true,
lpToken: true,
Expand All @@ -4289,6 +4291,7 @@ const tokens: Record<string, Token> = {
liquidityDex: {
[ChainId.ARBITRUM]: LiquidityDex.UniswapV3,
},
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.UniswapV3,
active: true,
lpToken: true,
Expand Down Expand Up @@ -5279,6 +5282,7 @@ const tokens: Record<string, Token> = {
liquidityDex: {
[ChainId.BSC]: LiquidityDex.Algebra,
},
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.Thena,
getLpUrl: {
[ChainId.BSC]: 'https://thena.fi/pools/0x87a4276eaed3b46cb77ec41d6f6b9fc98b159725',
Expand All @@ -5295,6 +5299,7 @@ const tokens: Record<string, Token> = {
liquidityDex: {
[ChainId.BSC]: LiquidityDex.PancakeSwapV3,
},
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.Pancakeswap,
getLpUrl: {
[ChainId.BSC]: 'https://pancakeswap.finance/position-managers',
Expand Down Expand Up @@ -5395,6 +5400,7 @@ const tokens: Record<string, Token> = {
decimals: { [ChainId.BSC]: 18 },
active: true,
lpToken: true,
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.UniswapV3,
liquidityDex: {
[ChainId.BSC]: LiquidityDex.Algebra,
Expand Down Expand Up @@ -5957,6 +5963,7 @@ const tokens: Record<string, Token> = {
},
active: true,
lpToken: true,
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.Quickswap,
},
polEth_Ichi: {
Expand Down Expand Up @@ -5989,6 +5996,7 @@ const tokens: Record<string, Token> = {
},
active: true,
lpToken: true,
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.Quickswap,
},
usdtVda_Ichi: {
Expand All @@ -6004,6 +6012,7 @@ const tokens: Record<string, Token> = {
},
active: true,
lpToken: true,
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.Quickswap,
},
polRum_Ichi: {
Expand All @@ -6019,6 +6028,7 @@ const tokens: Record<string, Token> = {
},
active: true,
lpToken: true,
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.UniswapV3,
getLpUrl: {
[ChainId.MATIC]: 'https://app.ichi.org/vault/token/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270/',
Expand Down Expand Up @@ -6346,6 +6356,7 @@ const tokens: Record<string, Token> = {
liquidityDex: {
[ChainId.BASE]: LiquidityDex.UniswapV3,
},
liquidityWrapper: Wrappers.Ichi,
ichiUnderlyingDex: IchiSupportedDex.UniswapV3,
getLpUrl: {
[ChainId.BASE]: 'https://app.ichi.org/vault/token/0x1986cc18d8ec757447254310d2604f85741aa732/',
Expand Down
7 changes: 7 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ export enum Protocols {
Curve = 9,
}

export enum Wrappers {
Gamma,
Ichi,
Steer,
}

export interface FarmStyles {
deprecated: string
warning: string
Expand All @@ -155,6 +161,7 @@ export interface Token {
liquidityDex?: Partial<Record<ChainId, LiquidityDex>> // the dex type where most liquidity/actual lp is
getLpUrl?: Partial<Record<ChainId, string>> //Needed for ZapVersion.External
ichiUnderlyingDex?: IchiSupportedDex // The dex ichi is wrapping. only necessary for Ichi Zap
liquidityWrapper?: Wrappers // The wrapper used to wrap the liquidity and make it erc20
}

// Interfaces used in Vaults
Expand Down

0 comments on commit 2a055af

Please sign in to comment.