Skip to content

Commit 711d9f6

Browse files
committed
fix: add some tokens from sdk-gov@next
1 parent fd280e1 commit 711d9f6

File tree

7 files changed

+162
-15
lines changed

7 files changed

+162
-15
lines changed

src/sdk/sdk-gov-legacy/contracts/contracts.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export type CurvePoolContract =
5858
| "CURVE_EBTC_WBTC_POOL"
5959
| "CURVE_PUMPBTC_WBTC_POOL"
6060
| "CURVE_TRIBTC_POOL"
61+
| "CURVE_tBTC_WBTC_POOL"
6162
| "CURVE_2CRV_POOL_ARB"
6263
| "CURVE_TRICRYPTO_CRVUSD_POOL_ARB"
6364
| "CURVE_CRVUSD_USDC_POOL_ARB"
@@ -137,7 +138,8 @@ export type MellowVaultContract =
137138
| "MELLOW_RE7_LABS_VAULT"
138139
| "MELLOW_AMPHOR_VAULT"
139140
| "MELLOW_RESTAKING_VAULT"
140-
| "MELLOW_RENZO_VAULT";
141+
| "MELLOW_RENZO_VAULT"
142+
| "MELLOW_DECENTALIZED_VALIDATOR_VAULT";
141143

142144
export type StakingRewardsContract = "SKY_STAKING_REWARDS";
143145

@@ -218,6 +220,7 @@ export const contractsByNetwork: Record<
218220
CURVE_EBTC_WBTC_POOL: tokenDataByNetwork.Mainnet.eBTCWBTC,
219221
CURVE_PUMPBTC_WBTC_POOL: tokenDataByNetwork.Mainnet.pumpBTCWBTC,
220222
CURVE_TRIBTC_POOL: tokenDataByNetwork.Mainnet.TriBTC,
223+
CURVE_tBTC_WBTC_POOL: tokenDataByNetwork.Mainnet["2BTC-f"],
221224

222225
CURVE_GEAR_POOL: "0x0E9B5B092caD6F1c5E6bc7f89Ffe1abb5c95F1C2",
223226

@@ -330,6 +333,7 @@ export const contractsByNetwork: Record<
330333
MELLOW_AMPHOR_VAULT: tokenDataByNetwork.Mainnet.amphrETH,
331334
MELLOW_RESTAKING_VAULT: tokenDataByNetwork.Mainnet.rstETH,
332335
MELLOW_RENZO_VAULT: tokenDataByNetwork.Mainnet.pzETH,
336+
MELLOW_DECENTALIZED_VALIDATOR_VAULT: tokenDataByNetwork.Mainnet.DVstETH,
333337

334338
// SKY
335339
SKY_STAKING_REWARDS: "0x0650CAF159C5A49f711e8169D4336ECB9b950275",
@@ -388,6 +392,7 @@ export const contractsByNetwork: Record<
388392
CURVE_EBTC_WBTC_POOL: NOT_DEPLOYED,
389393
CURVE_PUMPBTC_WBTC_POOL: NOT_DEPLOYED,
390394
CURVE_TRIBTC_POOL: NOT_DEPLOYED,
395+
CURVE_tBTC_WBTC_POOL: NOT_DEPLOYED,
391396

392397
CURVE_GEAR_POOL: NOT_DEPLOYED,
393398

@@ -500,6 +505,7 @@ export const contractsByNetwork: Record<
500505
MELLOW_AMPHOR_VAULT: tokenDataByNetwork.Arbitrum.amphrETH,
501506
MELLOW_RESTAKING_VAULT: tokenDataByNetwork.Arbitrum.rstETH,
502507
MELLOW_RENZO_VAULT: tokenDataByNetwork.Arbitrum.pzETH,
508+
MELLOW_DECENTALIZED_VALIDATOR_VAULT: tokenDataByNetwork.Arbitrum.DVstETH,
503509

504510
SKY_STAKING_REWARDS: NOT_DEPLOYED,
505511
DAI_USDS: NOT_DEPLOYED,
@@ -557,6 +563,7 @@ export const contractsByNetwork: Record<
557563
CURVE_EBTC_WBTC_POOL: NOT_DEPLOYED,
558564
CURVE_PUMPBTC_WBTC_POOL: NOT_DEPLOYED,
559565
CURVE_TRIBTC_POOL: NOT_DEPLOYED,
566+
CURVE_tBTC_WBTC_POOL: NOT_DEPLOYED,
560567

561568
CURVE_GEAR_POOL: NOT_DEPLOYED,
562569

@@ -669,6 +676,7 @@ export const contractsByNetwork: Record<
669676
MELLOW_AMPHOR_VAULT: tokenDataByNetwork.Optimism.amphrETH,
670677
MELLOW_RESTAKING_VAULT: tokenDataByNetwork.Optimism.rstETH,
671678
MELLOW_RENZO_VAULT: tokenDataByNetwork.Optimism.pzETH,
679+
MELLOW_DECENTALIZED_VALIDATOR_VAULT: tokenDataByNetwork.Optimism.DVstETH,
672680

673681
SKY_STAKING_REWARDS: NOT_DEPLOYED,
674682
DAI_USDS: NOT_DEPLOYED,
@@ -725,6 +733,7 @@ export const contractsByNetwork: Record<
725733
CURVE_EBTC_WBTC_POOL: NOT_DEPLOYED,
726734
CURVE_PUMPBTC_WBTC_POOL: NOT_DEPLOYED,
727735
CURVE_TRIBTC_POOL: NOT_DEPLOYED,
736+
CURVE_tBTC_WBTC_POOL: NOT_DEPLOYED,
728737

729738
CURVE_GEAR_POOL: NOT_DEPLOYED,
730739

@@ -835,6 +844,7 @@ export const contractsByNetwork: Record<
835844
MELLOW_AMPHOR_VAULT: tokenDataByNetwork.Base.amphrETH,
836845
MELLOW_RESTAKING_VAULT: tokenDataByNetwork.Base.rstETH,
837846
MELLOW_RENZO_VAULT: tokenDataByNetwork.Base.pzETH,
847+
MELLOW_DECENTALIZED_VALIDATOR_VAULT: tokenDataByNetwork.Base.DVstETH,
838848

839849
SKY_STAKING_REWARDS: NOT_DEPLOYED,
840850
DAI_USDS: NOT_DEPLOYED,
@@ -1501,6 +1511,14 @@ export const contractParams: Record<SupportedContract, ContractParams> = {
15011511
lpToken: "TriBTC",
15021512
tokens: ["eBTC", "LBTC", "WBTC"],
15031513
},
1514+
CURVE_tBTC_WBTC_POOL: {
1515+
name: "Curve tBTC/WBTC LP",
1516+
protocol: Protocols.Curve,
1517+
version: 20,
1518+
type: AdapterInterface.CURVE_V1_2ASSETS,
1519+
lpToken: "2BTC-f",
1520+
tokens: ["WBTC", "tBTC"],
1521+
},
15041522

15051523
CURVE_2CRV_POOL_ARB: {
15061524
name: "Curve USDC/USDT Pool (Arbitrum)",
@@ -2283,6 +2301,11 @@ export const contractParams: Record<SupportedContract, ContractParams> = {
22832301
protocol: Protocols.Mellow,
22842302
type: AdapterInterface.MELLOW_LRT_VAULT,
22852303
},
2304+
MELLOW_DECENTALIZED_VALIDATOR_VAULT: {
2305+
name: "Mellow Decentralized Validator Token vault",
2306+
protocol: Protocols.Mellow,
2307+
type: AdapterInterface.MELLOW_LRT_VAULT,
2308+
},
22862309
SKY_STAKING_REWARDS: {
22872310
name: "Sky StakingRewards contract",
22882311
protocol: Protocols.Sky,

src/sdk/sdk-gov-legacy/tokens/balancer.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ export type BalancerLPToken =
1717
| "GHO_USDT_USDC"
1818
| "rsETH_WETH"
1919
| "trenSTETH"
20+
| "DVstETH_wstETH_BPT"
2021
| "sUSDe_USDC_BPT"
2122
| "pumpBTC_WBTC_BPT"
23+
| "eBTC_WBTC_BPT"
2224
// Optimism
2325
| "BPT_rETH_ETH"
2426
| "BPT_WSTETH_ETH"
@@ -142,6 +144,16 @@ export const balancerLpTokens: Record<BalancerLPToken, BalancerLpTokenData> = {
142144
poolId:
143145
"0x2238ab6c8c58473a5e81b86ec352322fb3f5edd80000000000000000000006de",
144146
},
147+
eBTC_WBTC_BPT: {
148+
name: "Balancer eBTC/wBTC",
149+
symbol: "eBTC_WBTC_BPT",
150+
type: {
151+
AllNetworks: TokenType.BALANCER_LP_TOKEN,
152+
},
153+
underlying: ["eBTC", "WBTC"],
154+
poolId:
155+
"0xda17f3663c5d04c0b316cfa1a04aa53ebbc8c12c0000000000000000000006e7",
156+
},
145157

146158
trenSTETH: {
147159
name: "Balancer Total Rewards Enhanced stETH",
@@ -154,6 +166,17 @@ export const balancerLpTokens: Record<BalancerLPToken, BalancerLpTokenData> = {
154166
"0x4216d5900a6109bba48418b5e2ab6cc4e61cf4770000000000000000000006a1",
155167
},
156168

169+
DVstETH_wstETH_BPT: {
170+
name: "Balancer DVstETH/wstETH ",
171+
symbol: "DVstETH_wstETH_BPT",
172+
type: {
173+
AllNetworks: TokenType.BALANCER_LP_TOKEN,
174+
},
175+
underlying: ["DVstETH", "wstETH"],
176+
poolId:
177+
"0x632aafc2d3d2ca1764e702aa25c065c273cd08ed0000000000000000000006d6",
178+
},
179+
157180
weETH_ezETH_rswETH: {
158181
name: "Balancer ezETH/weETH/rswETH",
159182
symbol: "weETH_ezETH_rswETH",

src/sdk/sdk-gov-legacy/tokens/curveLP.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export type CurveLPToken =
3737
| "eBTCWBTC"
3838
| "pumpBTCWBTC"
3939
| "TriBTC"
40+
| "2BTC-f"
4041
| "FRAXsDAI"
4142
| "DOLAsUSDe"
4243
| "DOLAFRAXBP3CRV_f"
@@ -430,6 +431,13 @@ export const curveTokens: Record<
430431
pool: "CURVE_TRIBTC_POOL",
431432
tokenOut: ["eBTC", "LBTC", "WBTC"],
432433
},
434+
"2BTC-f": {
435+
name: "Curve tBTC/WBTC LP",
436+
symbol: "2BTC-f",
437+
type: { AllNetworks: TokenType.CURVE_LP_TOKEN },
438+
pool: "CURVE_tBTC_WBTC_POOL",
439+
tokenOut: ["WBTC", "tBTC"],
440+
},
433441
...curveMetaTokens,
434442
};
435443

src/sdk/sdk-gov-legacy/tokens/decimals.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type SupportedToken, tokenSymbolByAddress } from "./token";
1+
import type { SupportedToken } from "./token";
22

33
export const decimals: Record<SupportedToken, number> = {
44
"1INCH": 18,
@@ -13,6 +13,7 @@ export const decimals: Record<SupportedToken, number> = {
1313
USDT: 6,
1414
DOLA: 18,
1515
WBTC: 8,
16+
tBTC: 18,
1617
WETH: 18,
1718
YFI: 18,
1819
STETH: 18,
@@ -84,6 +85,7 @@ export const decimals: Record<SupportedToken, number> = {
8485
eBTCWBTC: 18,
8586
pumpBTCWBTC: 18,
8687
TriBTC: 18,
88+
"2BTC-f": 18,
8789
crvUSD: 18,
8890
crvUSDUSDC: 18,
8991
crvUsUSDe: 18,
@@ -170,6 +172,9 @@ export const decimals: Record<SupportedToken, number> = {
170172

171173
dDOLAV3: 18,
172174

175+
dtBTCV3: 18,
176+
dwstETHV3: 18,
177+
173178
dUSDC_eV3: 6,
174179
sdUSDC_eV3: 6,
175180

@@ -192,6 +197,7 @@ export const decimals: Record<SupportedToken, number> = {
192197
rETH_WETH_BPT_deprecated: 18,
193198
rETH_wETH_BPT: 18,
194199
trenSTETH: 18,
200+
DVstETH_wstETH_BPT: 18,
195201
ezETH_WETH_BPT: 18,
196202
weETH_ezETH_rswETH: 18,
197203
"33AURA_33ARB_33BAL": 18,
@@ -201,6 +207,7 @@ export const decimals: Record<SupportedToken, number> = {
201207
rsETH_wETH_Arb: 18,
202208
bpt_ethtri: 18,
203209
pumpBTC_WBTC_BPT: 18,
210+
eBTC_WBTC_BPT: 18,
204211
sUSDe_USDC_BPT: 18,
205212

206213
auraB_rETH_STABLE: 18,
@@ -229,6 +236,7 @@ export const decimals: Record<SupportedToken, number> = {
229236
amphrETH: 18,
230237
rstETH: 18,
231238
pzETH: 18,
239+
DVstETH: 18,
232240

233241
aDAI: 18,
234242
aUSDC: 6,
@@ -264,14 +272,3 @@ export const decimals: Record<SupportedToken, number> = {
264272
PT_corn_eBTC_27MAR2025: 8,
265273
PT_sUSDe_27MAR2025: 18,
266274
};
267-
268-
export function getDecimals(token: SupportedToken | string): number {
269-
let dec = decimals[token as SupportedToken];
270-
if (dec) return dec;
271-
272-
dec = decimals[tokenSymbolByAddress[token.toLowerCase()]];
273-
if (!dec) {
274-
throw new Error(`Decimals for ${token} not found`);
275-
}
276-
return dec;
277-
}

src/sdk/sdk-gov-legacy/tokens/gear.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export type DieselSimpleTokenTypes =
99
| "dWETH"
1010
| "dwstETH"
1111
| "dFRAX"
12-
| "dDOLAV3";
12+
| "dDOLAV3"
13+
| "dtBTCV3"
14+
| "dwstETHV3";
1315

1416
export type DieselTokenWithStkTypes =
1517
| "dUSDCV3"
@@ -106,6 +108,16 @@ const dieselSimpleTokens: Record<
106108
symbol: "dDOLAV3",
107109
type: { AllNetworks: TokenType.DIESEL_LP_TOKEN },
108110
},
111+
dtBTCV3: {
112+
name: "dtBTCV3",
113+
symbol: "dtBTCV3",
114+
type: { AllNetworks: TokenType.DIESEL_LP_TOKEN },
115+
},
116+
dwstETHV3: {
117+
name: "dwstETHV3",
118+
symbol: "dwstETHV3",
119+
type: { AllNetworks: TokenType.DIESEL_LP_TOKEN },
120+
},
109121
};
110122

111123
const dieselWithStkTokens: Record<

src/sdk/sdk-gov-legacy/tokens/normal.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export type NormalToken =
1616
| "DAI"
1717
| "WETH"
1818
| "WBTC"
19+
| "tBTC"
1920
| "YFI"
2021
| "WLD"
2122
| "OP"
@@ -64,6 +65,7 @@ export type NormalToken =
6465
| "amphrETH"
6566
| "rstETH"
6667
| "pzETH"
68+
| "DVstETH"
6769
// Pendle
6870
| "PT_rsETH_26SEP2024"
6971
| "PT_sUSDe_26DEC2024"
@@ -171,6 +173,12 @@ export const normalTokens: Record<NormalToken, NormalTokenData> = {
171173
symbol: "WBTC",
172174
type: { AllNetworks: TokenType.NORMAL_TOKEN },
173175
},
176+
tBTC: {
177+
name: "tBTC",
178+
179+
symbol: "tBTC",
180+
type: { AllNetworks: TokenType.NORMAL_TOKEN },
181+
},
174182

175183
WETH: {
176184
name: "WETH",
@@ -431,6 +439,11 @@ export const normalTokens: Record<NormalToken, NormalTokenData> = {
431439
symbol: "pzETH",
432440
type: { AllNetworks: TokenType.NORMAL_TOKEN },
433441
},
442+
DVstETH: {
443+
name: "Decentralized Validator Token",
444+
symbol: "DVstETH",
445+
type: { AllNetworks: TokenType.NORMAL_TOKEN },
446+
},
434447
PT_rsETH_26SEP2024: {
435448
name: "Pendle PT rsETH 26 Sep 2024 expiry",
436449
symbol: "PT_rsETH_26SEP2024",

0 commit comments

Comments
 (0)