Skip to content

Commit

Permalink
Add Thena pools
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-monk committed Dec 5, 2024
1 parent 78b2aff commit f41fc69
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 9 deletions.
29 changes: 29 additions & 0 deletions packages/address-book/src/address-book/bsc/tokens/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,35 @@ export const tokens = {
description: "liveTHE is LiquidDriver's liquid locker, built for THENA's governance token.",
risks: ['NO_TIMELOCK'],
},
mPENDLE: {
name: 'mPENDLE',
symbol: 'mPENDLE',
oracleId: 'mPENDLE',
address: '0x0465aad9da170798433F4aB7fa7Ec8b9b9bf0Bb1',
chainId: 56,
decimals: 18,
logoURI: '',
website: 'https://www.pendle.magpiexyz.io/stake',
description:
'mPENDLE refers to "Magpie PENDLE", is a liquid version of vePENDLE that allows users to earn rewards for their active user engagement on Penpie. PENDLE holders can convert tokens into mPENDLE on Penpie. ',
documentation: 'https://docs.penpiexyz.io/tokens/mpendle-token',
bridge: 'layer-zero',
},
mCAKE: {
name: 'mCAKE',
symbol: 'mCAKE',
oracleId: 'mCAKE',
address: '0x581FA684D0Ec11ccb46B1d92F1F24C8A3F95C0CA',
chainId: 56,
decimals: 18,
logoURI: '',
website: 'https://www.pancake.magpiexyz.io/stake',
description:
'mCAKE refers to "Magpie CAKE", a liquid version of veCAKE that allows users to earn rewards for their active participation on Cakepie.',
documentation: 'https://docs.cakepiexyz.io/cakepie-overview',
bridge: 'native',
risks: ['NO_TIMELOCK'],
},
FISH: {
name: 'SwapFish',
symbol: 'FISH',
Expand Down
1 change: 1 addition & 0 deletions src/api/stats/getAmmPrices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ const coinGeckoCoins: Record<string, string[]> = {
scroll: ['SCR'],
'binance-bitcoin': ['BTCB'],
ankreth: ['ankrETH'],
'usda-2': ['USDa'],
'kim-token': ['xKIM', 'KIM'],
};

Expand Down
20 changes: 20 additions & 0 deletions src/data/bsc/thenaLpPools.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
[
{
"name": "thena-susda-usda",
"address": "0x52B137a651413A0eb3609b44d032f00E1C8DaF33",
"gauge": "0x72607BFAF86E0872beD83d794741b4d0d58474A7",
"decimals": "1e18",
"chainId": 56,
"beefyFee": 0.095,
"lp0": {
"address": "0x73a325103935b0B5E7AA3acA6dba74AD22f82B03",
"oracle": "tokens",
"oracleId": "sUSDa",
"decimals": "1e18"
},
"lp1": {
"address": "0x9356086146be5158E98aD827E21b5cF944699894",
"oracle": "tokens",
"oracleId": "USDa",
"decimals": "1e18"
}
},
{
"name": "thena-qthe-quo",
"address": "0x0C7671978669a5fceA2875373C9402976071eFE1",
Expand Down
40 changes: 40 additions & 0 deletions src/data/bsc/thenaStableLpPools.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,44 @@
[
{
"name": "thena-cake-mcake",
"address": "0x7569Ae71A1832fa5F403471a01289222b1Daacb5",
"gauge": "0xaBF45f38AB358f3E7fca6034Ae27f7959948071a",
"decimals": "1e18",
"chainId": 56,
"beefyFee": 0.095,
"lp0": {
"address": "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",
"oracle": "tokens",
"oracleId": "Cake",
"decimals": "1e18"
},
"lp1": {
"address": "0x581FA684D0Ec11ccb46B1d92F1F24C8A3F95C0CA",
"oracle": "tokens",
"oracleId": "mCAKE",
"decimals": "1e18"
}
},
{
"name": "thena-mpendle-pendle",
"address": "0x5bC828A5035AAc2fa3aAb46f7A25D08165d19A08",
"gauge": "0x5BDaCC007e6BfEB1d850a6144195BAb9A6675f83",
"decimals": "1e18",
"chainId": 56,
"beefyFee": 0.095,
"lp0": {
"address": "0x0465aad9da170798433F4aB7fa7Ec8b9b9bf0Bb1",
"oracle": "tokens",
"oracleId": "mPENDLE",
"decimals": "1e18"
},
"lp1": {
"address": "0xb3Ed0A426155B79B898849803E3B36552f7ED507",
"oracle": "tokens",
"oracleId": "PENDLE",
"decimals": "1e18"
}
},
{
"name": "thena-livethe-the",
"address": "0x3765476BfFE43Cf4c0656bF3A7529c54ae247056",
Expand Down
17 changes: 8 additions & 9 deletions src/utils/fetchSolidlyStableTokenPrices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import BigNumber from 'bignumber.js';
type StablePoolLiquidityToken = {
oracleId: string;
pool: `0x${string}`;
firstToken: string;
firstTokenDecimals: string;
secondToken: string;
secondTokenDecimals: number;
Expand All @@ -18,7 +17,6 @@ const tokens: Partial<Record<keyof typeof ChainId, StablePoolLiquidityToken[]>>
{
oracleId: 'bMAI',
pool: '0xf6Aec4F97623E691a9426a69BaF5501509fCa05D',
firstToken: 'bMAI',
firstTokenDecimals: '1e18',
secondToken: 'USDbC',
secondTokenDecimals: 1e6,
Expand All @@ -27,7 +25,6 @@ const tokens: Partial<Record<keyof typeof ChainId, StablePoolLiquidityToken[]>>
{
oracleId: 'bUSDC+',
pool: '0xE96c788E66a97Cf455f46C5b27786191fD3bC50B',
firstToken: 'bUSDC+',
firstTokenDecimals: '1e6',
secondToken: 'baseUSD+',
secondTokenDecimals: 1e6,
Expand All @@ -38,7 +35,6 @@ const tokens: Partial<Record<keyof typeof ChainId, StablePoolLiquidityToken[]>>
{
oracleId: 'lMAI',
pool: '0xE9E146f5bceBD71Fb8C526EA036dE6bbFB1B0Ad7',
firstToken: 'lMAI',
firstTokenDecimals: '1e18',
secondToken: 'USDC',
secondTokenDecimals: 1e6,
Expand All @@ -49,7 +45,6 @@ const tokens: Partial<Record<keyof typeof ChainId, StablePoolLiquidityToken[]>>
{
oracleId: 'USDx',
pool: '0x340F0c6E09bb2C13df14bb4B334CC8Dba0bb4881',
firstToken: 'USDx',
firstTokenDecimals: '1e18',
secondToken: 'USDC',
secondTokenDecimals: 1e6,
Expand All @@ -60,7 +55,6 @@ const tokens: Partial<Record<keyof typeof ChainId, StablePoolLiquidityToken[]>>
{
oracleId: 'stRWA',
pool: '0xb28d015563c81dd66Ab781853c03B7B66aa46C1b',
firstToken: 'stRWA',
firstTokenDecimals: '1e18',
secondToken: 'RWA',
secondTokenDecimals: 1e18,
Expand All @@ -69,7 +63,6 @@ const tokens: Partial<Record<keyof typeof ChainId, StablePoolLiquidityToken[]>>
{
oracleId: 'MORE',
pool: '0x1733720f30EF013539Fa2EcEE00671A60B66243D',
firstToken: 'MORE',
firstTokenDecimals: '1e18',
secondToken: 'USDC',
secondTokenDecimals: 1e6,
Expand All @@ -80,7 +73,6 @@ const tokens: Partial<Record<keyof typeof ChainId, StablePoolLiquidityToken[]>>
{
oracleId: 'loreUSD',
pool: '0x4775dFFd8762eE4C8DE49f4FD6D02A1f0d8f1698',
firstToken: 'loreUSD',
firstTokenDecimals: '1e18',
secondToken: 'USDC',
secondTokenDecimals: 1e6,
Expand All @@ -91,12 +83,19 @@ const tokens: Partial<Record<keyof typeof ChainId, StablePoolLiquidityToken[]>>
{
oracleId: 'liveTHE',
pool: '0x3765476BfFE43Cf4c0656bF3A7529c54ae247056',
firstToken: 'liveTHE',
firstTokenDecimals: '1e18',
secondToken: 'THE',
secondTokenDecimals: 1e18,
secondTokenAddress: '0xF4C8E32EaDEC4BFe97E0F595AdD0f4450a863a11',
},
{
oracleId: 'mCAKE',
firstTokenDecimals: '1e18',
pool: '0x7569Ae71A1832fa5F403471a01289222b1Daacb5',
secondToken: 'Cake',
secondTokenDecimals: 1e18,
secondTokenAddress: '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82',
},
],
};

Expand Down

0 comments on commit f41fc69

Please sign in to comment.