Skip to content

Commit

Permalink
feat: add new lido staking pools
Browse files Browse the repository at this point in the history
  • Loading branch information
dudesahn committed Nov 10, 2023
1 parent a14ced9 commit 5243d0e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 5 additions & 1 deletion apps/common/contexts/useWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ import {
OPT_YVUSDC_STAKING_CONTRACT,
OPT_YVUSDT_STAKING_CONTRACT,
OPT_YVVELO_USDC_STAKING_CONTRACT,
OPT_YVWSTETH_OP_STAKING_CONTRACT,
OPT_YVWSTETH_WETH_STAKING_CONTRACT,
OPT_YVWUSDR_USDC_STAKING_CONTRACT,
OPT_YVWUSDRV2_USDC_STAKING_CONTRACT,
STACKING_TO_VAULT
Expand Down Expand Up @@ -193,7 +195,9 @@ export const WalletContextApp = memo(function WalletContextApp({children}: {chil
{chainID: 10, address: OPT_YVSTERN_ERN_STAKING_CONTRACT, symbol: 'yvVelo-stERN-ERN', decimals: 18},
{chainID: 10, address: OPT_YVSTG_USDC_STAKING_CONTRACT, symbol: 'yvVelo-STG-USDC', decimals: 18},
{chainID: 10, address: OPT_YVERN_WETH_STAKING_CONTRACT, symbol: 'yvVelo-ERN-WETH', decimals: 18},
{chainID: 10, address: OPT_YVOATH_WETH_STAKING_CONTRACT, symbol: 'yvVelo-OATH-WETH', decimals: 18}
{chainID: 10, address: OPT_YVOATH_WETH_STAKING_CONTRACT, symbol: 'yvVelo-OATH-WETH', decimals: 18},
{chainID: 10, address: OPT_YVWSTETH_WETH_STAKING_CONTRACT, symbol: 'yvVelo-wstETH-WETH', decimals: 18},
{chainID: 10, address: OPT_YVWSTETH_OP_STAKING_CONTRACT, symbol: 'yvVelo-OP-wstETH', decimals: 18}
]
);

Expand Down
16 changes: 14 additions & 2 deletions apps/vaults/constants/optRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export const OPT_YVSTERN_ERN_WITH_REWARDS = toAddress('0xa7B550B3A80361d8e47E076
export const OPT_YVSTG_USDC_WITH_REWARDS = toAddress('0xf6B272134A193Df5b04332e73184E5b40b8EB810');
export const OPT_YVERN_WETH_WITH_REWARDS = toAddress('0xd3668ca9DF5d1bba8d264b8d10dD2F0C5962CC4C');
export const OPT_YVOATH_WETH_WITH_REWARDS = toAddress('0x27939E33435cc4ee4e74c0F0260914596bcEb116');
export const OPT_YVWSTETH_WETH_WITH_REWARDS = toAddress('0x6Ec9d003f0e5184Ee54c1d899B414322a0f0Dc07');
export const OPT_YVWSTETH_OP_WITH_REWARDS = toAddress('0x830cB4AabF786b9349d9701dD8ee073215d95174');

export const OPT_YVETH_STAKING_CONTRACT = toAddress('0xE35Fec3895Dcecc7d2a91e8ae4fF3c0d43ebfFE0');
export const OPT_YVDAI_STAKING_CONTRACT = toAddress('0xf8126EF025651E1B313a6893Fcf4034F4F4bD2aA');
Expand Down Expand Up @@ -81,6 +83,8 @@ export const OPT_YVSTERN_ERN_STAKING_CONTRACT = toAddress('0x80C3806ADF50EfAc542
export const OPT_YVSTG_USDC_STAKING_CONTRACT = toAddress('0x43eFf8d2B799b5072195DEDE0909479309D17fe8');
export const OPT_YVERN_WETH_STAKING_CONTRACT = toAddress('0x1f07CF7C0ffE2Ff6CFb65879A59F8C0079c1866d');
export const OPT_YVOATH_WETH_STAKING_CONTRACT = toAddress('0x0840b96C60370F8417d07e09d2D557C051b9bc36');
export const OPT_YVWSTETH_WETH_STAKING_CONTRACT = toAddress('0xA5E453754Ddd99F4b412B888C5466966853e55A3');
export const OPT_YVWSTETH_OP_STAKING_CONTRACT = toAddress('0x29C48ea06BA84006fd8CAB1D5A1470f86e1dD752');

export const OPT_VAULTS_WITH_REWARDS = [
OPT_YVETH_WITH_REWARDS,
Expand Down Expand Up @@ -121,7 +125,9 @@ export const OPT_VAULTS_WITH_REWARDS = [
OPT_YVSTERN_ERN_WITH_REWARDS,
OPT_YVSTG_USDC_WITH_REWARDS,
OPT_YVERN_WETH_WITH_REWARDS,
OPT_YVOATH_WETH_WITH_REWARDS
OPT_YVOATH_WETH_WITH_REWARDS,
OPT_YVWSTETH_WETH_WITH_REWARDS,
OPT_YVWSTETH_OP_WITH_REWARDS
];

export const OPT_REWARDS_TOKENS = [
Expand Down Expand Up @@ -163,7 +169,9 @@ export const OPT_REWARDS_TOKENS = [
OPT_YVSTERN_ERN_STAKING_CONTRACT,
OPT_YVSTG_USDC_STAKING_CONTRACT,
OPT_YVERN_WETH_STAKING_CONTRACT,
OPT_YVOATH_WETH_STAKING_CONTRACT
OPT_YVOATH_WETH_STAKING_CONTRACT,
OPT_YVWSTETH_WETH_STAKING_CONTRACT,
OPT_YVWSTETH_OP_STAKING_CONTRACT
];

export const VAULT_TO_STACKING: TDict<TAddress> = {
Expand Down Expand Up @@ -206,6 +214,8 @@ export const VAULT_TO_STACKING: TDict<TAddress> = {
[OPT_YVSTG_USDC_STAKING_CONTRACT]: OPT_YVSTG_USDC_WITH_REWARDS,
[OPT_YVERN_WETH_STAKING_CONTRACT]: OPT_YVERN_WETH_WITH_REWARDS,
[OPT_YVOATH_WETH_STAKING_CONTRACT]: OPT_YVOATH_WETH_WITH_REWARDS
[OPT_YVWSTETH_WETH_STAKING_CONTRACT]: OPT_YVWSTETH_WETH_WITH_REWARDS,

Check failure on line 217 in apps/vaults/constants/optRewards.ts

View workflow job for this annotation

GitHub Actions / Test Build

',' expected.
[OPT_YVWSTETH_OP_STAKING_CONTRACT]: OPT_YVWSTETH_OP_WITH_REWARDS
};

export const STACKING_TO_VAULT: TDict<TAddress> = {
Expand Down Expand Up @@ -248,4 +258,6 @@ export const STACKING_TO_VAULT: TDict<TAddress> = {
[OPT_YVSTG_USDC_WITH_REWARDS]: OPT_YVSTG_USDC_STAKING_CONTRACT,
[OPT_YVERN_WETH_WITH_REWARDS]: OPT_YVERN_WETH_STAKING_CONTRACT,
[OPT_YVOATH_WETH_WITH_REWARDS]: OPT_YVOATH_WETH_STAKING_CONTRACT
[OPT_YVWSTETH_WETH_WITH_REWARDS]: OPT_YVWSTETH_WETH_STAKING_CONTRACT,

Check failure on line 261 in apps/vaults/constants/optRewards.ts

View workflow job for this annotation

GitHub Actions / Test Build

',' expected.
[OPT_YVWSTETH_OP_WITH_REWARDS]: OPT_YVWSTETH_OP_STAKING_CONTRACT
};

0 comments on commit 5243d0e

Please sign in to comment.