@gearbox-protocol/sdk 3.0.0-vfour.144 → 3.0.0-vfour.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sdk/index.cjs +567 -43
- package/dist/cjs/sdk/index.d.ts +601 -1
- package/dist/esm/sdk/index.d.mts +601 -1
- package/dist/esm/sdk/index.mjs +477 -44
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -67455,15 +67455,15 @@ var toBigInt = (v) => {
|
|
|
67455
67455
|
return BigInt(value);
|
|
67456
67456
|
};
|
|
67457
67457
|
var percentFmt = (v, raw = true) => `${(Number(v) / 100).toFixed(2)}%` + (raw ? ` [${v}]` : "");
|
|
67458
|
-
function formatBNvalue(num,
|
|
67459
|
-
return `${formatBN(num,
|
|
67458
|
+
function formatBNvalue(num, decimals2, precision, raw = true) {
|
|
67459
|
+
return `${formatBN(num, decimals2, precision)}` + (raw ? ` [ ${num} ]` : "");
|
|
67460
67460
|
}
|
|
67461
|
-
function formatBN(num,
|
|
67461
|
+
function formatBN(num, decimals2, precision) {
|
|
67462
67462
|
if (num === void 0) {
|
|
67463
67463
|
return "-";
|
|
67464
67464
|
}
|
|
67465
67465
|
const numBInt = BigInt(num);
|
|
67466
|
-
const limitedNum = limitNum(numBInt,
|
|
67466
|
+
const limitedNum = limitNum(numBInt, decimals2);
|
|
67467
67467
|
const limitedPrecision = limitPrecision(limitedNum, precision);
|
|
67468
67468
|
return toHumanFormat(limitedNum, limitedPrecision);
|
|
67469
67469
|
}
|
|
@@ -68403,7 +68403,7 @@ var CreditFacadeV300Contract = class extends BaseContract {
|
|
|
68403
68403
|
this.underlying = creditManager.underlying;
|
|
68404
68404
|
}
|
|
68405
68405
|
stateHuman(raw) {
|
|
68406
|
-
const
|
|
68406
|
+
const decimals2 = this.sdk.tokensMeta.decimals(this.underlying);
|
|
68407
68407
|
return {
|
|
68408
68408
|
...super.stateHuman(raw),
|
|
68409
68409
|
expirable: this.expirable,
|
|
@@ -68412,8 +68412,8 @@ var CreditFacadeV300Contract = class extends BaseContract {
|
|
|
68412
68412
|
expirationDate: this.expirationDate,
|
|
68413
68413
|
maxDebtPerBlockMultiplier: this.maxDebtPerBlockMultiplier,
|
|
68414
68414
|
botList: this.labelAddress(this.botList),
|
|
68415
|
-
minDebt: formatBNvalue(this.minDebt,
|
|
68416
|
-
maxDebt: formatBNvalue(this.maxDebt,
|
|
68415
|
+
minDebt: formatBNvalue(this.minDebt, decimals2),
|
|
68416
|
+
maxDebt: formatBNvalue(this.maxDebt, decimals2),
|
|
68417
68417
|
currentCumulativeLoss: "0",
|
|
68418
68418
|
// TODO
|
|
68419
68419
|
maxCumulativeLoss: "0",
|
|
@@ -68539,7 +68539,7 @@ var CreditFacadeV310Contract = class extends BaseContract {
|
|
|
68539
68539
|
this.underlying = creditManager.underlying;
|
|
68540
68540
|
}
|
|
68541
68541
|
stateHuman(raw) {
|
|
68542
|
-
const
|
|
68542
|
+
const decimals2 = this.sdk.tokensMeta.decimals(this.underlying);
|
|
68543
68543
|
return {
|
|
68544
68544
|
...super.stateHuman(raw),
|
|
68545
68545
|
expirable: this.expirable,
|
|
@@ -68548,8 +68548,8 @@ var CreditFacadeV310Contract = class extends BaseContract {
|
|
|
68548
68548
|
expirationDate: this.expirationDate,
|
|
68549
68549
|
maxDebtPerBlockMultiplier: this.maxDebtPerBlockMultiplier,
|
|
68550
68550
|
botList: this.labelAddress(this.botList),
|
|
68551
|
-
minDebt: formatBNvalue(this.minDebt,
|
|
68552
|
-
maxDebt: formatBNvalue(this.maxDebt,
|
|
68551
|
+
minDebt: formatBNvalue(this.minDebt, decimals2),
|
|
68552
|
+
maxDebt: formatBNvalue(this.maxDebt, decimals2),
|
|
68553
68553
|
currentCumulativeLoss: "0",
|
|
68554
68554
|
// TODO
|
|
68555
68555
|
maxCumulativeLoss: "0",
|
|
@@ -69584,7 +69584,7 @@ var Erc4626PriceFeedContract = class extends AbstractLPPriceFeedContract {
|
|
|
69584
69584
|
});
|
|
69585
69585
|
}
|
|
69586
69586
|
async getValue() {
|
|
69587
|
-
const
|
|
69587
|
+
const decimals2 = await this.sdk.provider.publicClient.readContract({
|
|
69588
69588
|
abi: erc20Abi,
|
|
69589
69589
|
address: this.lpContract,
|
|
69590
69590
|
functionName: "decimals"
|
|
@@ -69593,7 +69593,7 @@ var Erc4626PriceFeedContract = class extends AbstractLPPriceFeedContract {
|
|
|
69593
69593
|
abi: viem.erc4626Abi,
|
|
69594
69594
|
address: this.lpContract,
|
|
69595
69595
|
functionName: "convertToAssets",
|
|
69596
|
-
args: [10n ** BigInt(
|
|
69596
|
+
args: [10n ** BigInt(decimals2)]
|
|
69597
69597
|
});
|
|
69598
69598
|
return price;
|
|
69599
69599
|
}
|
|
@@ -71032,6 +71032,79 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
71032
71032
|
}
|
|
71033
71033
|
};
|
|
71034
71034
|
|
|
71035
|
+
// src/sdk/sdk-gov-legacy/contracts/adapters.ts
|
|
71036
|
+
var AdapterInterface = /* @__PURE__ */ ((AdapterInterface2) => {
|
|
71037
|
+
AdapterInterface2[AdapterInterface2["ABSTRACT"] = 0] = "ABSTRACT";
|
|
71038
|
+
AdapterInterface2[AdapterInterface2["UNISWAP_V2_ROUTER"] = 1] = "UNISWAP_V2_ROUTER";
|
|
71039
|
+
AdapterInterface2[AdapterInterface2["UNISWAP_V3_ROUTER"] = 2] = "UNISWAP_V3_ROUTER";
|
|
71040
|
+
AdapterInterface2[AdapterInterface2["CURVE_V1_EXCHANGE_ONLY"] = 3] = "CURVE_V1_EXCHANGE_ONLY";
|
|
71041
|
+
AdapterInterface2[AdapterInterface2["YEARN_V2"] = 4] = "YEARN_V2";
|
|
71042
|
+
AdapterInterface2[AdapterInterface2["CURVE_V1_2ASSETS"] = 5] = "CURVE_V1_2ASSETS";
|
|
71043
|
+
AdapterInterface2[AdapterInterface2["CURVE_V1_3ASSETS"] = 6] = "CURVE_V1_3ASSETS";
|
|
71044
|
+
AdapterInterface2[AdapterInterface2["CURVE_V1_4ASSETS"] = 7] = "CURVE_V1_4ASSETS";
|
|
71045
|
+
AdapterInterface2[AdapterInterface2["CURVE_V1_STECRV_POOL"] = 8] = "CURVE_V1_STECRV_POOL";
|
|
71046
|
+
AdapterInterface2[AdapterInterface2["CURVE_V1_WRAPPER"] = 9] = "CURVE_V1_WRAPPER";
|
|
71047
|
+
AdapterInterface2[AdapterInterface2["CONVEX_V1_BASE_REWARD_POOL"] = 10] = "CONVEX_V1_BASE_REWARD_POOL";
|
|
71048
|
+
AdapterInterface2[AdapterInterface2["CONVEX_V1_BOOSTER"] = 11] = "CONVEX_V1_BOOSTER";
|
|
71049
|
+
AdapterInterface2[AdapterInterface2["CONVEX_V1_CLAIM_ZAP"] = 12] = "CONVEX_V1_CLAIM_ZAP";
|
|
71050
|
+
AdapterInterface2[AdapterInterface2["LIDO_V1"] = 13] = "LIDO_V1";
|
|
71051
|
+
AdapterInterface2[AdapterInterface2["UNIVERSAL"] = 14] = "UNIVERSAL";
|
|
71052
|
+
AdapterInterface2[AdapterInterface2["LIDO_WSTETH_V1"] = 15] = "LIDO_WSTETH_V1";
|
|
71053
|
+
AdapterInterface2[AdapterInterface2["BALANCER_VAULT"] = 16] = "BALANCER_VAULT";
|
|
71054
|
+
AdapterInterface2[AdapterInterface2["AAVE_V2_LENDING_POOL"] = 17] = "AAVE_V2_LENDING_POOL";
|
|
71055
|
+
AdapterInterface2[AdapterInterface2["AAVE_V2_WRAPPED_ATOKEN"] = 18] = "AAVE_V2_WRAPPED_ATOKEN";
|
|
71056
|
+
AdapterInterface2[AdapterInterface2["COMPOUND_V2_CERC20"] = 19] = "COMPOUND_V2_CERC20";
|
|
71057
|
+
AdapterInterface2[AdapterInterface2["COMPOUND_V2_CETHER"] = 20] = "COMPOUND_V2_CETHER";
|
|
71058
|
+
AdapterInterface2[AdapterInterface2["ERC4626_VAULT"] = 21] = "ERC4626_VAULT";
|
|
71059
|
+
AdapterInterface2[AdapterInterface2["VELODROME_V2_ROUTER"] = 22] = "VELODROME_V2_ROUTER";
|
|
71060
|
+
AdapterInterface2[AdapterInterface2["CURVE_STABLE_NG"] = 23] = "CURVE_STABLE_NG";
|
|
71061
|
+
AdapterInterface2[AdapterInterface2["CAMELOT_V3_ROUTER"] = 24] = "CAMELOT_V3_ROUTER";
|
|
71062
|
+
AdapterInterface2[AdapterInterface2["CONVEX_L2_BOOSTER"] = 25] = "CONVEX_L2_BOOSTER";
|
|
71063
|
+
AdapterInterface2[AdapterInterface2["CONVEX_L2_REWARD_POOL"] = 26] = "CONVEX_L2_REWARD_POOL";
|
|
71064
|
+
AdapterInterface2[AdapterInterface2["AAVE_V3_LENDING_POOL"] = 27] = "AAVE_V3_LENDING_POOL";
|
|
71065
|
+
AdapterInterface2[AdapterInterface2["ZIRCUIT_POOL"] = 28] = "ZIRCUIT_POOL";
|
|
71066
|
+
AdapterInterface2[AdapterInterface2["SYMBIOTIC_DEFAULT_COLLATERAL"] = 29] = "SYMBIOTIC_DEFAULT_COLLATERAL";
|
|
71067
|
+
AdapterInterface2[AdapterInterface2["MELLOW_LRT_VAULT"] = 30] = "MELLOW_LRT_VAULT";
|
|
71068
|
+
AdapterInterface2[AdapterInterface2["PENDLE_ROUTER"] = 31] = "PENDLE_ROUTER";
|
|
71069
|
+
AdapterInterface2[AdapterInterface2["MELLOW_ERC4626_VAULT"] = 32] = "MELLOW_ERC4626_VAULT";
|
|
71070
|
+
AdapterInterface2[AdapterInterface2["DAI_USDS_EXCHANGE"] = 33] = "DAI_USDS_EXCHANGE";
|
|
71071
|
+
AdapterInterface2[AdapterInterface2["STAKING_REWARDS"] = 34] = "STAKING_REWARDS";
|
|
71072
|
+
AdapterInterface2[AdapterInterface2["EQUALIZER_ROUTER"] = 35] = "EQUALIZER_ROUTER";
|
|
71073
|
+
return AdapterInterface2;
|
|
71074
|
+
})(AdapterInterface || {});
|
|
71075
|
+
|
|
71076
|
+
// src/sdk/sdk-gov-legacy/tokens/tokenType.ts
|
|
71077
|
+
var TokenType = /* @__PURE__ */ ((TokenType2) => {
|
|
71078
|
+
TokenType2[TokenType2["NO_TOKEN"] = 0] = "NO_TOKEN";
|
|
71079
|
+
TokenType2[TokenType2["NORMAL_TOKEN"] = 1] = "NORMAL_TOKEN";
|
|
71080
|
+
TokenType2[TokenType2["CURVE_LP_TOKEN"] = 2] = "CURVE_LP_TOKEN";
|
|
71081
|
+
TokenType2[TokenType2["YEARN_ON_NORMAL_TOKEN"] = 3] = "YEARN_ON_NORMAL_TOKEN";
|
|
71082
|
+
TokenType2[TokenType2["YEARN_ON_CURVE_TOKEN"] = 4] = "YEARN_ON_CURVE_TOKEN";
|
|
71083
|
+
TokenType2[TokenType2["CONVEX_LP_TOKEN"] = 5] = "CONVEX_LP_TOKEN";
|
|
71084
|
+
TokenType2[TokenType2["CONVEX_STAKED_TOKEN"] = 6] = "CONVEX_STAKED_TOKEN";
|
|
71085
|
+
TokenType2[TokenType2["DIESEL_LP_TOKEN"] = 7] = "DIESEL_LP_TOKEN";
|
|
71086
|
+
TokenType2[TokenType2["GEAR_TOKEN"] = 8] = "GEAR_TOKEN";
|
|
71087
|
+
TokenType2[TokenType2["COMPOUND_V2_C_TOKEN"] = 9] = "COMPOUND_V2_C_TOKEN";
|
|
71088
|
+
TokenType2[TokenType2["BALANCER_LP_TOKEN"] = 10] = "BALANCER_LP_TOKEN";
|
|
71089
|
+
TokenType2[TokenType2["AAVE_V2_A_TOKEN"] = 11] = "AAVE_V2_A_TOKEN";
|
|
71090
|
+
TokenType2[TokenType2["WRAPPED_AAVE_V2_TOKEN"] = 12] = "WRAPPED_AAVE_V2_TOKEN";
|
|
71091
|
+
TokenType2[TokenType2["ERC4626_VAULT_TOKEN"] = 13] = "ERC4626_VAULT_TOKEN";
|
|
71092
|
+
TokenType2[TokenType2["WRAPPED_TOKEN"] = 14] = "WRAPPED_TOKEN";
|
|
71093
|
+
TokenType2[TokenType2["AURA_LP_TOKEN"] = 15] = "AURA_LP_TOKEN";
|
|
71094
|
+
TokenType2[TokenType2["AURA_STAKED_TOKEN"] = 16] = "AURA_STAKED_TOKEN";
|
|
71095
|
+
TokenType2[TokenType2["CONVEX_L2_STAKED_TOKEN"] = 17] = "CONVEX_L2_STAKED_TOKEN";
|
|
71096
|
+
TokenType2[TokenType2["ZIRCUIT_STAKED_TOKEN"] = 18] = "ZIRCUIT_STAKED_TOKEN";
|
|
71097
|
+
TokenType2[TokenType2["STAKING_REWARDS_PHANTOM_TOKEN"] = 19] = "STAKING_REWARDS_PHANTOM_TOKEN";
|
|
71098
|
+
return TokenType2;
|
|
71099
|
+
})(TokenType || {});
|
|
71100
|
+
var PhantomTokenType = /* @__PURE__ */ ((PhantomTokenType2) => {
|
|
71101
|
+
PhantomTokenType2[PhantomTokenType2["NO_TOKEN"] = 0] = "NO_TOKEN";
|
|
71102
|
+
PhantomTokenType2[PhantomTokenType2["CONVEX_PHANTOM_TOKEN"] = 1] = "CONVEX_PHANTOM_TOKEN";
|
|
71103
|
+
PhantomTokenType2[PhantomTokenType2["ZIRCUIT_PHANTOM_TOKEN"] = 2] = "ZIRCUIT_PHANTOM_TOKEN";
|
|
71104
|
+
PhantomTokenType2[PhantomTokenType2["STAKING_REWARDS_PHANTOM_TOKEN"] = 3] = "STAKING_REWARDS_PHANTOM_TOKEN";
|
|
71105
|
+
return PhantomTokenType2;
|
|
71106
|
+
})(PhantomTokenType || {});
|
|
71107
|
+
|
|
71035
71108
|
// src/sdk/sdk-gov-legacy/tokens/aave.ts
|
|
71036
71109
|
var aaveV2Tokens = {
|
|
71037
71110
|
aDAI: {
|
|
@@ -71101,6 +71174,7 @@ var wrappedAaveV2Tokens = {
|
|
|
71101
71174
|
underlying: "aWETH"
|
|
71102
71175
|
}
|
|
71103
71176
|
};
|
|
71177
|
+
var isAaveV2LPToken = (t) => typeof t === "string" && !!aaveV2Tokens[t];
|
|
71104
71178
|
|
|
71105
71179
|
// src/sdk/sdk-gov-legacy/tokens/aura.ts
|
|
71106
71180
|
var auraLpTokens = {
|
|
@@ -71382,11 +71456,14 @@ var auraTokens = {
|
|
|
71382
71456
|
...auraLpTokens,
|
|
71383
71457
|
...auraStakedTokens
|
|
71384
71458
|
};
|
|
71385
|
-
|
|
71459
|
+
var isAuraToken = (t) => typeof t === "string" && !!auraTokens[t];
|
|
71460
|
+
var isAuraLPToken = (t) => typeof t === "string" && !!auraLpTokens[t];
|
|
71461
|
+
var isAuraStakedToken = (t) => typeof t === "string" && !!auraStakedTokens[t];
|
|
71462
|
+
var auraPoolByPid = Object.values(auraLpTokens).reduce((acc, value) => {
|
|
71386
71463
|
acc[value.pid] = value.pool;
|
|
71387
71464
|
return acc;
|
|
71388
71465
|
}, {});
|
|
71389
|
-
Object.entries(auraLpTokens).reduce((acc, [token, data]) => {
|
|
71466
|
+
var auraLpTokenByPid = Object.entries(auraLpTokens).reduce((acc, [token, data]) => {
|
|
71390
71467
|
acc[data.pid] = token;
|
|
71391
71468
|
return acc;
|
|
71392
71469
|
}, {});
|
|
@@ -71690,6 +71767,7 @@ var compoundV2Tokens = {
|
|
|
71690
71767
|
underlying: "USDC"
|
|
71691
71768
|
}
|
|
71692
71769
|
};
|
|
71770
|
+
var isCompoundV2LPToken = (t) => typeof t === "string" && !!compoundV2Tokens[t];
|
|
71693
71771
|
|
|
71694
71772
|
// src/sdk/sdk-gov-legacy/tokens/convex.ts
|
|
71695
71773
|
var convexLpTokens = {
|
|
@@ -72087,16 +72165,25 @@ var convexTokens = {
|
|
|
72087
72165
|
...convexStakedPhantomTokens,
|
|
72088
72166
|
...convexL2StakedTokens
|
|
72089
72167
|
};
|
|
72090
|
-
|
|
72168
|
+
var isConvexToken = (t) => typeof t === "string" && !!convexTokens[t];
|
|
72169
|
+
var isConvexLPToken = (t) => typeof t === "string" && !!convexLpTokens[t];
|
|
72170
|
+
var isConvexStakedPhantomToken = (t) => typeof t === "string" && !!convexStakedPhantomTokens[t];
|
|
72171
|
+
var isConvexL2StakedToken = (t) => typeof t === "string" && !!convexL2StakedTokens[t];
|
|
72172
|
+
var convexPoolByPid = Object.values(convexLpTokens).reduce((acc, value) => {
|
|
72091
72173
|
acc[value.pid] = value.pool;
|
|
72092
72174
|
return acc;
|
|
72093
72175
|
}, {});
|
|
72094
|
-
Object.entries(convexLpTokens).reduce((acc, [token, data]) => {
|
|
72176
|
+
var convexLpTokenByPid = Object.entries(convexLpTokens).reduce((acc, [token, data]) => {
|
|
72095
72177
|
acc[data.pid] = token;
|
|
72096
72178
|
return acc;
|
|
72097
72179
|
}, {});
|
|
72098
72180
|
|
|
72099
72181
|
// src/sdk/sdk-gov-legacy/tokens/curveLP.ts
|
|
72182
|
+
var Curve3CrvUnderlyingTokenIndex = {
|
|
72183
|
+
DAI: 0n,
|
|
72184
|
+
USDC: 1n,
|
|
72185
|
+
USDT: 2n
|
|
72186
|
+
};
|
|
72100
72187
|
var curveMetaTokens = {
|
|
72101
72188
|
// META CURVE LP TOKENS
|
|
72102
72189
|
FRAX3CRV: {
|
|
@@ -72414,6 +72501,262 @@ var curveTokens = {
|
|
|
72414
72501
|
...curveMetaTokens
|
|
72415
72502
|
};
|
|
72416
72503
|
var isCurveLPToken = (t) => typeof t === "string" && !!curveTokens[t];
|
|
72504
|
+
var isCurveMetaToken = (t) => typeof t === "string" && !!curveMetaTokens[t];
|
|
72505
|
+
|
|
72506
|
+
// src/sdk/sdk-gov-legacy/tokens/decimals.ts
|
|
72507
|
+
var decimals = {
|
|
72508
|
+
"1INCH": 18,
|
|
72509
|
+
AAVE: 18,
|
|
72510
|
+
CRV: 18,
|
|
72511
|
+
DAI: 18,
|
|
72512
|
+
LINK: 18,
|
|
72513
|
+
SNX: 18,
|
|
72514
|
+
UNI: 18,
|
|
72515
|
+
USDC: 6,
|
|
72516
|
+
USDC_e: 6,
|
|
72517
|
+
USDT: 6,
|
|
72518
|
+
DOLA: 18,
|
|
72519
|
+
WBTC: 8,
|
|
72520
|
+
WETH: 18,
|
|
72521
|
+
YFI: 18,
|
|
72522
|
+
STETH: 18,
|
|
72523
|
+
wstETH: 18,
|
|
72524
|
+
CVX: 18,
|
|
72525
|
+
FRAX: 18,
|
|
72526
|
+
FXS: 18,
|
|
72527
|
+
LDO: 18,
|
|
72528
|
+
LUSD: 18,
|
|
72529
|
+
sUSD: 18,
|
|
72530
|
+
GUSD: 2,
|
|
72531
|
+
LQTY: 18,
|
|
72532
|
+
GMX: 18,
|
|
72533
|
+
ARB: 18,
|
|
72534
|
+
BAL: 18,
|
|
72535
|
+
MKR: 18,
|
|
72536
|
+
RPL: 18,
|
|
72537
|
+
APE: 18,
|
|
72538
|
+
AURA: 18,
|
|
72539
|
+
SWISE: 18,
|
|
72540
|
+
SKY: 18,
|
|
72541
|
+
WLD: 18,
|
|
72542
|
+
OP: 18,
|
|
72543
|
+
GHO: 18,
|
|
72544
|
+
LBTC: 8,
|
|
72545
|
+
eBTC: 8,
|
|
72546
|
+
solvBTC: 18,
|
|
72547
|
+
pumpBTC: 8,
|
|
72548
|
+
osETH: 18,
|
|
72549
|
+
weETH: 18,
|
|
72550
|
+
ezETH: 18,
|
|
72551
|
+
rsETH: 18,
|
|
72552
|
+
frxETH: 18,
|
|
72553
|
+
sfrxETH: 18,
|
|
72554
|
+
rswETH: 18,
|
|
72555
|
+
cbETH: 18,
|
|
72556
|
+
USDe: 18,
|
|
72557
|
+
PENDLE: 18,
|
|
72558
|
+
pufETH: 18,
|
|
72559
|
+
USDS: 18,
|
|
72560
|
+
PT_rsETH_26SEP2024: 18,
|
|
72561
|
+
"3Crv": 18,
|
|
72562
|
+
crvFRAX: 18,
|
|
72563
|
+
steCRV: 18,
|
|
72564
|
+
crvPlain3andSUSD: 18,
|
|
72565
|
+
FRAX3CRV: 18,
|
|
72566
|
+
LUSD3CRV: 18,
|
|
72567
|
+
gusd3CRV: 18,
|
|
72568
|
+
crvCRVETH: 18,
|
|
72569
|
+
crvCVXETH: 18,
|
|
72570
|
+
crvUSDTWBTCWETH: 18,
|
|
72571
|
+
LDOETH: 18,
|
|
72572
|
+
USDeUSDC: 18,
|
|
72573
|
+
FRAXUSDe: 18,
|
|
72574
|
+
USDecrvUSD: 18,
|
|
72575
|
+
FRAXsDAI: 18,
|
|
72576
|
+
DOLAsUSDe: 18,
|
|
72577
|
+
DOLAFRAXBP3CRV_f: 18,
|
|
72578
|
+
crvUSDDOLA_f: 18,
|
|
72579
|
+
USDeDAI: 18,
|
|
72580
|
+
MtEthena: 18,
|
|
72581
|
+
GHOUSDe: 18,
|
|
72582
|
+
pufETHwstE: 18,
|
|
72583
|
+
GHOcrvUSD: 18,
|
|
72584
|
+
wstETHCRV: 18,
|
|
72585
|
+
ezETHWETH: 18,
|
|
72586
|
+
ezpzETH: 18,
|
|
72587
|
+
LBTCWBTC: 18,
|
|
72588
|
+
eBTCWBTC: 18,
|
|
72589
|
+
pumpBTCWBTC: 18,
|
|
72590
|
+
TriBTC: 18,
|
|
72591
|
+
crvUSD: 18,
|
|
72592
|
+
crvUSDUSDC: 18,
|
|
72593
|
+
crvUsUSDe: 18,
|
|
72594
|
+
llamathena: 18,
|
|
72595
|
+
crvUSDUSDT: 18,
|
|
72596
|
+
crvUSDETHCRV: 18,
|
|
72597
|
+
crvUSDFRAX: 18,
|
|
72598
|
+
crvUSDC: 18,
|
|
72599
|
+
crvUSDC_e: 18,
|
|
72600
|
+
crvUSDT: 18,
|
|
72601
|
+
USDEUSDC: 18,
|
|
72602
|
+
"2CRV": 18,
|
|
72603
|
+
"3c-crvUSD": 18,
|
|
72604
|
+
"3CRV": 18,
|
|
72605
|
+
cvx3Crv: 18,
|
|
72606
|
+
cvxcrvFRAX: 18,
|
|
72607
|
+
cvxsteCRV: 18,
|
|
72608
|
+
cvxFRAX3CRV: 18,
|
|
72609
|
+
cvxLUSD3CRV: 18,
|
|
72610
|
+
cvxcrvPlain3andSUSD: 18,
|
|
72611
|
+
cvxgusd3CRV: 18,
|
|
72612
|
+
cvxcrvCRVETH: 18,
|
|
72613
|
+
cvxcrvCVXETH: 18,
|
|
72614
|
+
cvxcrvUSDTWBTCWETH: 18,
|
|
72615
|
+
cvxLDOETH: 18,
|
|
72616
|
+
cvxcrvUSDUSDC: 18,
|
|
72617
|
+
cvxcrvUSDUSDT: 18,
|
|
72618
|
+
cvxcrvUSDFRAX: 18,
|
|
72619
|
+
cvxcrvUSDETHCRV: 18,
|
|
72620
|
+
cvxGHOcrvUSD: 18,
|
|
72621
|
+
cvxllamathena: 18,
|
|
72622
|
+
stkcvx3Crv: 18,
|
|
72623
|
+
stkcvxcrvFRAX: 18,
|
|
72624
|
+
stkcvxsteCRV: 18,
|
|
72625
|
+
stkcvxFRAX3CRV: 18,
|
|
72626
|
+
stkcvxLUSD3CRV: 18,
|
|
72627
|
+
stkcvxcrvPlain3andSUSD: 18,
|
|
72628
|
+
stkcvxgusd3CRV: 18,
|
|
72629
|
+
stkcvxcrvCRVETH: 18,
|
|
72630
|
+
stkcvxcrvCVXETH: 18,
|
|
72631
|
+
stkcvxcrvUSDTWBTCWETH: 18,
|
|
72632
|
+
stkcvxLDOETH: 18,
|
|
72633
|
+
stkcvxcrvUSDUSDC: 18,
|
|
72634
|
+
stkcvxcrvUSDUSDT: 18,
|
|
72635
|
+
stkcvxcrvUSDFRAX: 18,
|
|
72636
|
+
stkcvxcrvUSDETHCRV: 18,
|
|
72637
|
+
stkcvxGHOcrvUSD: 18,
|
|
72638
|
+
stkcvxllamathena: 18,
|
|
72639
|
+
cvxcrvUSDT: 18,
|
|
72640
|
+
yvDAI: 18,
|
|
72641
|
+
yvUSDC: 6,
|
|
72642
|
+
yvUSDC_e: 6,
|
|
72643
|
+
yvUSDT: 6,
|
|
72644
|
+
yvOP: 18,
|
|
72645
|
+
yvWETH: 18,
|
|
72646
|
+
yvWBTC: 8,
|
|
72647
|
+
yvCurve_stETH: 18,
|
|
72648
|
+
yvCurve_FRAX: 18,
|
|
72649
|
+
dDAI: 18,
|
|
72650
|
+
dUSDC: 6,
|
|
72651
|
+
dWBTC: 8,
|
|
72652
|
+
dWETH: 18,
|
|
72653
|
+
dFRAX: 18,
|
|
72654
|
+
dwstETH: 18,
|
|
72655
|
+
dUSDCV3: 6,
|
|
72656
|
+
dWBTCV3: 8,
|
|
72657
|
+
dWETHV3: 18,
|
|
72658
|
+
sdUSDCV3: 6,
|
|
72659
|
+
sdWBTCV3: 8,
|
|
72660
|
+
sdWETHV3: 18,
|
|
72661
|
+
sdWETHV3_OLD: 18,
|
|
72662
|
+
dUSDTV3: 6,
|
|
72663
|
+
dGHOV3: 18,
|
|
72664
|
+
dDAIV3: 18,
|
|
72665
|
+
sdUSDTV3: 6,
|
|
72666
|
+
sdGHOV3: 18,
|
|
72667
|
+
sdDAIV3: 18,
|
|
72668
|
+
dcrvUSDV3: 18,
|
|
72669
|
+
sdcrvUSDV3: 18,
|
|
72670
|
+
dDOLAV3: 18,
|
|
72671
|
+
sdDOLAV3: 18,
|
|
72672
|
+
dUSDC_eV3: 6,
|
|
72673
|
+
sdUSDC_eV3: 6,
|
|
72674
|
+
GEAR: 18,
|
|
72675
|
+
USDC_DAI_USDT: 18,
|
|
72676
|
+
BPT_rETH_ETH: 18,
|
|
72677
|
+
BPT_ROAD: 18,
|
|
72678
|
+
BPT_WSTETH_ETH: 18,
|
|
72679
|
+
ECLP_wstETH_WETH: 18,
|
|
72680
|
+
B_rETH_STABLE: 18,
|
|
72681
|
+
weETH_rETH: 18,
|
|
72682
|
+
osETH_wETH_BPT: 18,
|
|
72683
|
+
B_80BAL_20WETH: 18,
|
|
72684
|
+
"50WETH_50AURA": 18,
|
|
72685
|
+
wstETH_rETH_cbETH: 18,
|
|
72686
|
+
cbETH_rETH_wstETH: 18,
|
|
72687
|
+
wstETH_rETH_sfrxETH: 18,
|
|
72688
|
+
wstETH_WETH_BPT: 18,
|
|
72689
|
+
rETH_WETH_BPT_deprecated: 18,
|
|
72690
|
+
rETH_wETH_BPT: 18,
|
|
72691
|
+
trenSTETH: 18,
|
|
72692
|
+
ezETH_WETH_BPT: 18,
|
|
72693
|
+
weETH_ezETH_rswETH: 18,
|
|
72694
|
+
"33AURA_33ARB_33BAL": 18,
|
|
72695
|
+
ezETH_wstETH: 18,
|
|
72696
|
+
GHO_USDT_USDC: 18,
|
|
72697
|
+
rsETH_WETH: 18,
|
|
72698
|
+
rsETH_wETH_Arb: 18,
|
|
72699
|
+
bpt_ethtri: 18,
|
|
72700
|
+
pumpBTC_WBTC_BPT: 18,
|
|
72701
|
+
sUSDe_USDC_BPT: 18,
|
|
72702
|
+
auraB_rETH_STABLE: 18,
|
|
72703
|
+
auraB_rETH_STABLE_vault: 18,
|
|
72704
|
+
auraweETH_rETH: 18,
|
|
72705
|
+
auraweETH_rETH_vault: 18,
|
|
72706
|
+
auraosETH_wETH_BPT: 18,
|
|
72707
|
+
auraosETH_wETH_BPT_vault: 18,
|
|
72708
|
+
auraBPT_rETH_ETH: 18,
|
|
72709
|
+
auraBPT_rETH_ETH_vault: 18,
|
|
72710
|
+
auraBPT_WSTETH_ETH: 18,
|
|
72711
|
+
auraBPT_WSTETH_ETH_vault: 18,
|
|
72712
|
+
aurarETH_wETH_BPT: 18,
|
|
72713
|
+
aurarETH_wETH_BPT_vault: 18,
|
|
72714
|
+
auracbETH_rETH_wstETH: 18,
|
|
72715
|
+
auracbETH_rETH_wstETH_vault: 18,
|
|
72716
|
+
aurawstETH_rETH_sfrxETH: 18,
|
|
72717
|
+
aurawstETH_rETH_sfrxETH_vault: 18,
|
|
72718
|
+
aurawstETH_WETH_BPT: 18,
|
|
72719
|
+
aurawstETH_WETH_BPT_vault: 18,
|
|
72720
|
+
zpufETH: 18,
|
|
72721
|
+
steakLRT: 18,
|
|
72722
|
+
Re7LRT: 18,
|
|
72723
|
+
amphrETH: 18,
|
|
72724
|
+
rstETH: 18,
|
|
72725
|
+
pzETH: 18,
|
|
72726
|
+
aDAI: 18,
|
|
72727
|
+
aUSDC: 6,
|
|
72728
|
+
aUSDT: 6,
|
|
72729
|
+
aWETH: 18,
|
|
72730
|
+
waDAI: 18,
|
|
72731
|
+
waUSDC: 6,
|
|
72732
|
+
waUSDT: 6,
|
|
72733
|
+
waWETH: 18,
|
|
72734
|
+
cDAI: 18,
|
|
72735
|
+
cUSDC: 6,
|
|
72736
|
+
cUSDT: 6,
|
|
72737
|
+
cLINK: 18,
|
|
72738
|
+
cETH: 18,
|
|
72739
|
+
SHIB: 18,
|
|
72740
|
+
fUSDC: 8,
|
|
72741
|
+
sDAI: 18,
|
|
72742
|
+
sUSDe: 18,
|
|
72743
|
+
sUSDS: 18,
|
|
72744
|
+
YieldETH: 18,
|
|
72745
|
+
scrvUSD: 18,
|
|
72746
|
+
rETH: 18,
|
|
72747
|
+
rETH_f: 18,
|
|
72748
|
+
stkUSDS: 18,
|
|
72749
|
+
PT_sUSDe_26DEC2024: 18,
|
|
72750
|
+
PT_eETH_26DEC2024: 18,
|
|
72751
|
+
PT_ezETH_26DEC2024: 18,
|
|
72752
|
+
PT_eBTC_26DEC2024: 8,
|
|
72753
|
+
PT_corn_solvBTC_BBN_26DEC2024: 8,
|
|
72754
|
+
PT_corn_pumpBTC_26DEC2024: 8,
|
|
72755
|
+
PT_cornLBTC_26DEC2024: 8,
|
|
72756
|
+
PT_LBTC_27MAR2025: 8,
|
|
72757
|
+
PT_corn_eBTC_27MAR2025: 8,
|
|
72758
|
+
PT_sUSDe_27MAR2025: 18
|
|
72759
|
+
};
|
|
72417
72760
|
|
|
72418
72761
|
// src/sdk/sdk-gov-legacy/tokens/erc4626.ts
|
|
72419
72762
|
var erc4626Tokens = {
|
|
@@ -72454,6 +72797,7 @@ var erc4626Tokens = {
|
|
|
72454
72797
|
vault: "SAVINGS_CRVUSD_VAULT"
|
|
72455
72798
|
}
|
|
72456
72799
|
};
|
|
72800
|
+
var isERC4626LPToken = (t) => typeof t === "string" && !!erc4626Tokens[t];
|
|
72457
72801
|
|
|
72458
72802
|
// src/sdk/sdk-gov-legacy/tokens/gear.ts
|
|
72459
72803
|
var dieselSimpleTokens = {
|
|
@@ -72617,6 +72961,10 @@ var gearTokens = {
|
|
|
72617
72961
|
type: { AllNetworks: 8 /* GEAR_TOKEN */ }
|
|
72618
72962
|
}
|
|
72619
72963
|
};
|
|
72964
|
+
var isDieselToken = (t) => typeof t === "string" && !!dieselTokens[t];
|
|
72965
|
+
var isDieselSimpleToken = (t) => typeof t === "string" && !!dieselSimpleTokens[t];
|
|
72966
|
+
var isDieselWithStkToken = (t) => typeof t === "string" && !!dieselWithStkTokens[t];
|
|
72967
|
+
var isDieselStakedToken = (t) => typeof t === "string" && !!dieselStakedTokens[t];
|
|
72620
72968
|
|
|
72621
72969
|
// src/sdk/sdk-gov-legacy/tokens/normal.ts
|
|
72622
72970
|
var normalTokens = {
|
|
@@ -72972,6 +73320,15 @@ var normalTokens = {
|
|
|
72972
73320
|
type: { AllNetworks: 1 /* NORMAL_TOKEN */ }
|
|
72973
73321
|
}
|
|
72974
73322
|
};
|
|
73323
|
+
var isNormalToken = (t) => typeof t === "string" && !!normalTokens[t];
|
|
73324
|
+
|
|
73325
|
+
// src/sdk/sdk-gov-legacy/tokens/quoted.ts
|
|
73326
|
+
var nonQuoted = {
|
|
73327
|
+
Mainnet: ["WETH", "DAI", "USDC", "FRAX"],
|
|
73328
|
+
Arbitrum: ["WETH", "DAI", "USDC", "WBTC"],
|
|
73329
|
+
Optimism: ["WETH", "USDC", "OP"],
|
|
73330
|
+
Base: ["WETH", "USDC", "USDT"]
|
|
73331
|
+
};
|
|
72975
73332
|
|
|
72976
73333
|
// src/sdk/sdk-gov-legacy/tokens/stakingRewards.ts
|
|
72977
73334
|
var stakingRewardsPhantomTokens = {
|
|
@@ -72985,6 +73342,10 @@ var stakingRewardsPhantomTokens = {
|
|
|
72985
73342
|
underlying: "USDS"
|
|
72986
73343
|
}
|
|
72987
73344
|
};
|
|
73345
|
+
var stakingRewardsTokens = {
|
|
73346
|
+
...stakingRewardsPhantomTokens
|
|
73347
|
+
};
|
|
73348
|
+
var isStakingRewardsPhantomToken = (t) => typeof t === "string" && !!stakingRewardsTokens[t];
|
|
72988
73349
|
|
|
72989
73350
|
// src/sdk/sdk-gov-legacy/tokens/wrapped.ts
|
|
72990
73351
|
var wrappedTokens = {
|
|
@@ -72998,6 +73359,7 @@ var wrappedTokens = {
|
|
|
72998
73359
|
}
|
|
72999
73360
|
}
|
|
73000
73361
|
};
|
|
73362
|
+
var isWrappedToken = (t) => typeof t === "string" && !!wrappedTokens[t];
|
|
73001
73363
|
|
|
73002
73364
|
// src/sdk/sdk-gov-legacy/tokens/yearn.ts
|
|
73003
73365
|
var yearnTokens = {
|
|
@@ -73067,6 +73429,7 @@ var yearnTokens = {
|
|
|
73067
73429
|
vault: "YEARN_CURVE_FRAX_VAULT"
|
|
73068
73430
|
}
|
|
73069
73431
|
};
|
|
73432
|
+
var isYearnLPToken = (t) => typeof t === "string" && !!yearnTokens[t];
|
|
73070
73433
|
|
|
73071
73434
|
// src/sdk/sdk-gov-legacy/tokens/zircuit.ts
|
|
73072
73435
|
var zircuitStakedPhantomTokens = {
|
|
@@ -73079,7 +73442,11 @@ var zircuitStakedPhantomTokens = {
|
|
|
73079
73442
|
underlying: "pufETH"
|
|
73080
73443
|
}
|
|
73081
73444
|
};
|
|
73082
|
-
|
|
73445
|
+
var zircuitTokens = {
|
|
73446
|
+
...zircuitStakedPhantomTokens
|
|
73447
|
+
};
|
|
73448
|
+
var isZircuitStakedPhantomToken = (t) => typeof t === "string" && !!zircuitTokens[t];
|
|
73449
|
+
var zircuitStakedTokenByToken = Object.values(
|
|
73083
73450
|
zircuitStakedPhantomTokens
|
|
73084
73451
|
).reduce((acc, value) => {
|
|
73085
73452
|
acc[value.underlying] = value.symbol;
|
|
@@ -73101,12 +73468,13 @@ var lpTokens = {
|
|
|
73101
73468
|
...zircuitStakedPhantomTokens,
|
|
73102
73469
|
...stakingRewardsPhantomTokens
|
|
73103
73470
|
};
|
|
73104
|
-
|
|
73471
|
+
var supportedTokens = {
|
|
73105
73472
|
...normalTokens,
|
|
73106
73473
|
...wrappedTokens,
|
|
73107
73474
|
...lpTokens,
|
|
73108
73475
|
...gearTokens
|
|
73109
|
-
}
|
|
73476
|
+
};
|
|
73477
|
+
var ETH_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
73110
73478
|
var tokenDataByNetwork = {
|
|
73111
73479
|
//
|
|
73112
73480
|
// MAINNET NETWORK
|
|
@@ -74570,7 +74938,7 @@ var tokenSymbolByAddress = Object.entries(tokenDataByNetwork).reduce(
|
|
|
74570
74938
|
}),
|
|
74571
74939
|
{}
|
|
74572
74940
|
);
|
|
74573
|
-
Object.fromEntries(
|
|
74941
|
+
var tickerSymbolByAddress = Object.fromEntries(
|
|
74574
74942
|
Object.values(tickerTokensByNetwork).map(
|
|
74575
74943
|
(en) => Object.entries(en).map(
|
|
74576
74944
|
([symbol, addresses]) => addresses.map((addr) => [addr.toLowerCase(), symbol])
|
|
@@ -74580,7 +74948,29 @@ Object.fromEntries(
|
|
|
74580
74948
|
function getTokenSymbol(address) {
|
|
74581
74949
|
return tokenSymbolByAddress[address.toLowerCase()];
|
|
74582
74950
|
}
|
|
74951
|
+
function getTokenSymbolOrTicker(address) {
|
|
74952
|
+
return tokenSymbolByAddress[address.toLowerCase()] || tickerSymbolByAddress[address.toLowerCase()];
|
|
74953
|
+
}
|
|
74954
|
+
function getTokenSymbolOrETH(address) {
|
|
74955
|
+
if (address.toLowerCase() === ETH_ADDRESS.toLowerCase()) return "ETH";
|
|
74956
|
+
return getTokenSymbol(address);
|
|
74957
|
+
}
|
|
74958
|
+
var isSupportedToken = (t) => typeof t === "string" && !!supportedTokens[t];
|
|
74583
74959
|
var isLPToken = (t) => typeof t === "string" && !!lpTokens[t];
|
|
74960
|
+
function getDecimals(token) {
|
|
74961
|
+
let dec = decimals[token];
|
|
74962
|
+
if (dec) return dec;
|
|
74963
|
+
dec = decimals[tokenSymbolByAddress[token.toLowerCase()]];
|
|
74964
|
+
if (!dec) {
|
|
74965
|
+
throw new Error(`Decimals for ${token} not found`);
|
|
74966
|
+
}
|
|
74967
|
+
return dec;
|
|
74968
|
+
}
|
|
74969
|
+
function extractTokenData(tokenAddress) {
|
|
74970
|
+
const underlyingSymbol = tokenSymbolByAddress[tokenAddress.toLowerCase()];
|
|
74971
|
+
const underlyingDecimals = decimals[underlyingSymbol || ""];
|
|
74972
|
+
return [underlyingSymbol, underlyingDecimals];
|
|
74973
|
+
}
|
|
74584
74974
|
|
|
74585
74975
|
// src/sdk/sdk-gov-legacy/tokens/tokenData.ts
|
|
74586
74976
|
var connectors = {
|
|
@@ -74617,6 +75007,36 @@ function getConnectors(networkType) {
|
|
|
74617
75007
|
});
|
|
74618
75008
|
}
|
|
74619
75009
|
|
|
75010
|
+
// src/sdk/sdk-gov-legacy/contracts/protocols.ts
|
|
75011
|
+
var Protocols = /* @__PURE__ */ ((Protocols2) => {
|
|
75012
|
+
Protocols2[Protocols2["Uniswap"] = 0] = "Uniswap";
|
|
75013
|
+
Protocols2[Protocols2["Sushiswap"] = 1] = "Sushiswap";
|
|
75014
|
+
Protocols2[Protocols2["Curve"] = 2] = "Curve";
|
|
75015
|
+
Protocols2[Protocols2["Yearn"] = 3] = "Yearn";
|
|
75016
|
+
Protocols2[Protocols2["Convex"] = 4] = "Convex";
|
|
75017
|
+
Protocols2[Protocols2["Lido"] = 5] = "Lido";
|
|
75018
|
+
Protocols2[Protocols2["Gearbox"] = 6] = "Gearbox";
|
|
75019
|
+
Protocols2[Protocols2["Balancer"] = 7] = "Balancer";
|
|
75020
|
+
Protocols2[Protocols2["AaveV2"] = 8] = "AaveV2";
|
|
75021
|
+
Protocols2[Protocols2["CompoundV2"] = 9] = "CompoundV2";
|
|
75022
|
+
Protocols2[Protocols2["Flux"] = 10] = "Flux";
|
|
75023
|
+
Protocols2[Protocols2["Aura"] = 11] = "Aura";
|
|
75024
|
+
Protocols2[Protocols2["MakerDSR"] = 12] = "MakerDSR";
|
|
75025
|
+
Protocols2[Protocols2["Sommelier"] = 13] = "Sommelier";
|
|
75026
|
+
Protocols2[Protocols2["Fraxswap"] = 14] = "Fraxswap";
|
|
75027
|
+
Protocols2[Protocols2["Velodrome"] = 15] = "Velodrome";
|
|
75028
|
+
Protocols2[Protocols2["Camelot"] = 16] = "Camelot";
|
|
75029
|
+
Protocols2[Protocols2["Ethena"] = 17] = "Ethena";
|
|
75030
|
+
Protocols2[Protocols2["AaveV3"] = 18] = "AaveV3";
|
|
75031
|
+
Protocols2[Protocols2["Pancakeswap"] = 19] = "Pancakeswap";
|
|
75032
|
+
Protocols2[Protocols2["Zircuit"] = 20] = "Zircuit";
|
|
75033
|
+
Protocols2[Protocols2["Mellow"] = 21] = "Mellow";
|
|
75034
|
+
Protocols2[Protocols2["Pendle"] = 22] = "Pendle";
|
|
75035
|
+
Protocols2[Protocols2["Sky"] = 23] = "Sky";
|
|
75036
|
+
Protocols2[Protocols2["Equalizer"] = 24] = "Equalizer";
|
|
75037
|
+
return Protocols2;
|
|
75038
|
+
})(Protocols || {});
|
|
75039
|
+
|
|
74620
75040
|
// src/sdk/sdk-gov-legacy/contracts/contracts.ts
|
|
74621
75041
|
var contractsByNetwork = {
|
|
74622
75042
|
Mainnet: {
|
|
@@ -75197,6 +75617,12 @@ var UNISWAP_V3_QUOTER = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
|
|
|
75197
75617
|
var CAMELOT_V3_QUOTER = "0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E";
|
|
75198
75618
|
var PANCAKESWAP_V3_QUOTER = "0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997";
|
|
75199
75619
|
var VELODROME_CL_QUOTER = "0x89D8218ed5fF1e46d8dcd33fb0bbeE3be1621466";
|
|
75620
|
+
var VELODROME_V2_DEFAULT_FACTORY = "0xF1046053aa5682b4F9a81b5481394DA16BE5FF5a";
|
|
75621
|
+
var VELODROME_V2_CL_FACTORY = "0xCc0bDDB707055e04e497aB22a59c2aF4391cd12F";
|
|
75622
|
+
var MELLOW_COLLECTOR = "0xce8f66b5347dcfedb3e63cb2c95e4aab9a85429e";
|
|
75623
|
+
var PENDLE_ROUTER_STATIC_MAINNET = "0x263833d47eA3fA4a30f269323aba6a107f9eB14C";
|
|
75624
|
+
var PENDLE_ROUTER_STATIC_ARBITRUM = "0xAdB09F65bd90d19e3148D9ccb693F3161C6DB3E8";
|
|
75625
|
+
var PENDLE_ROUTER_STATIC_OPTIMISM = "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0";
|
|
75200
75626
|
var contractParams = {
|
|
75201
75627
|
UNISWAP_V2_ROUTER: {
|
|
75202
75628
|
name: "Uniswap V2",
|
|
@@ -76374,6 +76800,13 @@ var contractsByAddress = Object.entries(contractsByNetwork).reduce(
|
|
|
76374
76800
|
}),
|
|
76375
76801
|
{}
|
|
76376
76802
|
);
|
|
76803
|
+
var isSupportedContract = (t) => typeof t === "string" && !!contractParams[t];
|
|
76804
|
+
|
|
76805
|
+
// src/sdk/sdk-gov-legacy/core/constants.ts
|
|
76806
|
+
var DUMB_ADDRESS = "0xC4375B7De8af5a38a93548eb8453a498222C4fF2";
|
|
76807
|
+
var DUMB_ADDRESS2 = "0x93548eB8453a498222C4FF2C4375b7De8af5A38a";
|
|
76808
|
+
var DUMB_ADDRESS3 = "0x822293548EB8453A49c4fF2c4375B7DE8AF5a38A";
|
|
76809
|
+
var DUMB_ADDRESS4 = "0x498222C4Ff2C4393548eb8453a75B7dE8AF5A38a";
|
|
76377
76810
|
|
|
76378
76811
|
// src/sdk/router/PathOptionFactory.ts
|
|
76379
76812
|
var PathOptionFactory = class _PathOptionFactory {
|
|
@@ -76794,8 +77227,8 @@ var RouterV3Contract = class extends BaseContract {
|
|
|
76794
77227
|
const token = t;
|
|
76795
77228
|
const isEnabled = (mask & ca.enabledTokensMask) !== 0n;
|
|
76796
77229
|
expectedBalances.upsert(token, { token, balance });
|
|
76797
|
-
const
|
|
76798
|
-
const minBalance = 10n ** BigInt(Math.max(8,
|
|
77230
|
+
const decimals2 = this.sdk.tokensMeta.decimals(token);
|
|
77231
|
+
const minBalance = 10n ** BigInt(Math.max(8, decimals2) - 8);
|
|
76799
77232
|
if (balance < minBalance || !isEnabled) {
|
|
76800
77233
|
leftoverBalances.upsert(token, { token, balance });
|
|
76801
77234
|
}
|
|
@@ -82006,7 +82439,7 @@ var BigIntMath = class {
|
|
|
82006
82439
|
|
|
82007
82440
|
// src/sdk/sdk-legacy/utils/price.ts
|
|
82008
82441
|
var PriceUtils = class {
|
|
82009
|
-
static calcTotalPrice = (price, amount,
|
|
82442
|
+
static calcTotalPrice = (price, amount, decimals2 = 18) => amount * WAD * price / 10n ** BigInt(decimals2) / PRICE_DECIMALS;
|
|
82010
82443
|
static convertByPrice(totalMoney, { price: targetPrice, decimals: targetDecimals = 18 }) {
|
|
82011
82444
|
if (targetPrice <= 0n) return 0n;
|
|
82012
82445
|
return totalMoney * 10n ** BigInt(targetDecimals) * PRICE_DECIMALS / targetPrice / WAD;
|
|
@@ -82015,15 +82448,15 @@ var PriceUtils = class {
|
|
|
82015
82448
|
function rayToNumber(num) {
|
|
82016
82449
|
return Number(toBigInt(num) / 10n ** 21n) / 1e6;
|
|
82017
82450
|
}
|
|
82018
|
-
function toSignificant(num,
|
|
82451
|
+
function toSignificant(num, decimals2, precision = 6) {
|
|
82019
82452
|
if (num === 1n) return "0";
|
|
82020
|
-
const divider = new decimal_jsLight.Decimal(10).toPower(
|
|
82453
|
+
const divider = new decimal_jsLight.Decimal(10).toPower(decimals2);
|
|
82021
82454
|
const number = new decimal_jsLight.Decimal(num.toString()).div(divider);
|
|
82022
82455
|
return number.toSignificantDigits(precision, 4).toString();
|
|
82023
82456
|
}
|
|
82024
|
-
function toBN(num,
|
|
82457
|
+
function toBN(num, decimals2) {
|
|
82025
82458
|
if (num === "") return 0n;
|
|
82026
|
-
const multiplier = new decimal_jsLight.Decimal(10).toPower(
|
|
82459
|
+
const multiplier = new decimal_jsLight.Decimal(10).toPower(decimals2);
|
|
82027
82460
|
const number = new decimal_jsLight.Decimal(num).mul(multiplier);
|
|
82028
82461
|
return BigInt(number.toFixed(0));
|
|
82029
82462
|
}
|
|
@@ -82033,11 +82466,11 @@ function shortAddress(address) {
|
|
|
82033
82466
|
function shortHash(address) {
|
|
82034
82467
|
return address === void 0 ? "" : `${address.slice(0, 5)}...`;
|
|
82035
82468
|
}
|
|
82036
|
-
function formatPercentage(healthFactor,
|
|
82037
|
-
return (healthFactor / Number(PERCENTAGE_FACTOR)).toFixed(
|
|
82469
|
+
function formatPercentage(healthFactor, decimals2 = 2) {
|
|
82470
|
+
return (healthFactor / Number(PERCENTAGE_FACTOR)).toFixed(decimals2);
|
|
82038
82471
|
}
|
|
82039
|
-
function formatLeverage(leverage,
|
|
82040
|
-
return (leverage / Number(LEVERAGE_DECIMALS)).toFixed(
|
|
82472
|
+
function formatLeverage(leverage, decimals2 = 2) {
|
|
82473
|
+
return (leverage / Number(LEVERAGE_DECIMALS)).toFixed(decimals2);
|
|
82041
82474
|
}
|
|
82042
82475
|
function formatDateTime(timestamp) {
|
|
82043
82476
|
return `${moment.unix(timestamp).format("Do MMM YYYY HH:mm")} UTC`;
|
|
@@ -85343,10 +85776,10 @@ var TxAddLiquidity = class extends EVMTx {
|
|
|
85343
85776
|
this.poolName = opts.poolName;
|
|
85344
85777
|
}
|
|
85345
85778
|
toString() {
|
|
85346
|
-
const { title, decimals = 18 } = this.token;
|
|
85779
|
+
const { title, decimals: decimals2 = 18 } = this.token;
|
|
85347
85780
|
return `${this.poolName}: Deposit ${formatBN(
|
|
85348
85781
|
this.amount,
|
|
85349
|
-
|
|
85782
|
+
decimals2
|
|
85350
85783
|
)} ${title}`;
|
|
85351
85784
|
}
|
|
85352
85785
|
serialize() {
|
|
@@ -85367,10 +85800,10 @@ var TxRemoveLiquidity = class extends EVMTx {
|
|
|
85367
85800
|
this.poolName = opts.poolName;
|
|
85368
85801
|
}
|
|
85369
85802
|
toString() {
|
|
85370
|
-
const { title, decimals = 18 } = this.token;
|
|
85803
|
+
const { title, decimals: decimals2 = 18 } = this.token;
|
|
85371
85804
|
return `${this.poolName}: Withdraw ${formatBN(
|
|
85372
85805
|
this.amount,
|
|
85373
|
-
|
|
85806
|
+
decimals2
|
|
85374
85807
|
)} ${title}`;
|
|
85375
85808
|
}
|
|
85376
85809
|
serialize() {
|
|
@@ -85601,8 +86034,8 @@ var TxClaimRewards = class extends EVMTx {
|
|
|
85601
86034
|
}
|
|
85602
86035
|
toString() {
|
|
85603
86036
|
const rewardsString = this.rewards.length <= 2 ? this.rewards.map(({ token, balance }) => {
|
|
85604
|
-
const { title, decimals = 18 } = token;
|
|
85605
|
-
return `${formatBN(balance,
|
|
86037
|
+
const { title, decimals: decimals2 = 18 } = token;
|
|
86038
|
+
return `${formatBN(balance, decimals2)} ${title}`;
|
|
85606
86039
|
}).join(", ") : this.rewards.map(({ token }) => {
|
|
85607
86040
|
const { title } = token;
|
|
85608
86041
|
return title;
|
|
@@ -85791,10 +86224,10 @@ var TxWithdrawCollateral = class extends EVMTx {
|
|
|
85791
86224
|
this.creditManagerName = opts.creditManagerName;
|
|
85792
86225
|
}
|
|
85793
86226
|
toString() {
|
|
85794
|
-
const { title: symbol, decimals } = this.token;
|
|
86227
|
+
const { title: symbol, decimals: decimals2 } = this.token;
|
|
85795
86228
|
return `Credit Account ${this.creditManagerName}: withdrawn ${formatBN(
|
|
85796
86229
|
this.amount,
|
|
85797
|
-
|
|
86230
|
+
decimals2 || 18
|
|
85798
86231
|
)} ${symbol}`;
|
|
85799
86232
|
}
|
|
85800
86233
|
serialize() {
|
|
@@ -86491,8 +86924,8 @@ var GearboxRewardsExtraApy = class {
|
|
|
86491
86924
|
(sum, r) => r.effective_balance + sum,
|
|
86492
86925
|
0
|
|
86493
86926
|
);
|
|
86494
|
-
const { decimals = 18 } = tokensList[token] || {};
|
|
86495
|
-
return { token, balance: toBN(String(balance),
|
|
86927
|
+
const { decimals: decimals2 = 18 } = tokensList[token] || {};
|
|
86928
|
+
return { token, balance: toBN(String(balance), decimals2) };
|
|
86496
86929
|
}
|
|
86497
86930
|
static getPointsByPool({
|
|
86498
86931
|
totalTokenBalances,
|
|
@@ -86529,8 +86962,8 @@ var GearboxRewardsExtraApy = class {
|
|
|
86529
86962
|
static getPoolTokenPoints(tokenBalanceInPool, pool, tokensList, pointsInfo) {
|
|
86530
86963
|
if (!tokenBalanceInPool) return null;
|
|
86531
86964
|
if (pool.expectedLiquidity <= 0) return 0n;
|
|
86532
|
-
const { decimals = 18 } = tokensList[tokenBalanceInPool.token] || {};
|
|
86533
|
-
const targetFactor = 10n ** BigInt(
|
|
86965
|
+
const { decimals: decimals2 = 18 } = tokensList[tokenBalanceInPool.token] || {};
|
|
86966
|
+
const targetFactor = 10n ** BigInt(decimals2);
|
|
86534
86967
|
const { decimals: underlyingDecimals = 18 } = tokensList[pool.underlyingToken] || {};
|
|
86535
86968
|
const underlyingFactor = 10n ** BigInt(underlyingDecimals);
|
|
86536
86969
|
const defaultPoints = pointsInfo.amount * targetFactor / PERCENTAGE_FACTOR;
|
|
@@ -86630,6 +87063,7 @@ exports.AP_WETH_TOKEN = AP_WETH_TOKEN;
|
|
|
86630
87063
|
exports.AP_ZAPPER_REGISTER = AP_ZAPPER_REGISTER;
|
|
86631
87064
|
exports.AP_ZERO_PRICE_FEED = AP_ZERO_PRICE_FEED;
|
|
86632
87065
|
exports.AbstractPriceFeedContract = AbstractPriceFeedContract;
|
|
87066
|
+
exports.AdapterInterface = AdapterInterface;
|
|
86633
87067
|
exports.AddressLabeller = AddressLabeller;
|
|
86634
87068
|
exports.AddressMap = AddressMap;
|
|
86635
87069
|
exports.AddressProviderContractV3 = AddressProviderContractV3;
|
|
@@ -86645,6 +87079,7 @@ exports.BotListContract = BotListContract;
|
|
|
86645
87079
|
exports.BotPermissions = BotPermissions;
|
|
86646
87080
|
exports.BotsService = BotsService;
|
|
86647
87081
|
exports.BoundedPriceFeedContract = BoundedPriceFeedContract;
|
|
87082
|
+
exports.CAMELOT_V3_QUOTER = CAMELOT_V3_QUOTER;
|
|
86648
87083
|
exports.CREDIT_SESSION_ID_BY_STATUS = CREDIT_SESSION_ID_BY_STATUS;
|
|
86649
87084
|
exports.CREDIT_SESSION_STATUS_BY_ID = CREDIT_SESSION_STATUS_BY_ID;
|
|
86650
87085
|
exports.CamelotV3AdapterContract = CamelotV3AdapterContract;
|
|
@@ -86668,14 +87103,20 @@ exports.CreditSession = CreditSession;
|
|
|
86668
87103
|
exports.CreditSessionFiltered = CreditSessionFiltered;
|
|
86669
87104
|
exports.Curve2AssetsAdapterContract = Curve2AssetsAdapterContract;
|
|
86670
87105
|
exports.Curve3AssetsAdapterContract = Curve3AssetsAdapterContract;
|
|
87106
|
+
exports.Curve3CrvUnderlyingTokenIndex = Curve3CrvUnderlyingTokenIndex;
|
|
86671
87107
|
exports.Curve4AssetsAdapterContract = Curve4AssetsAdapterContract;
|
|
86672
87108
|
exports.CurveCryptoPriceFeedContract = CurveCryptoPriceFeedContract;
|
|
86673
87109
|
exports.CurveStablePriceFeedContract = CurveStablePriceFeedContract;
|
|
86674
87110
|
exports.CurveUSDPriceFeedContract = CurveUSDPriceFeedContract;
|
|
86675
87111
|
exports.CurveV1AdapterStETHContract = CurveV1AdapterStETHContract;
|
|
86676
87112
|
exports.CurveV1AdapterStableNGContract = CurveV1AdapterStableNGContract;
|
|
87113
|
+
exports.DUMB_ADDRESS = DUMB_ADDRESS;
|
|
87114
|
+
exports.DUMB_ADDRESS2 = DUMB_ADDRESS2;
|
|
87115
|
+
exports.DUMB_ADDRESS3 = DUMB_ADDRESS3;
|
|
87116
|
+
exports.DUMB_ADDRESS4 = DUMB_ADDRESS4;
|
|
86677
87117
|
exports.DaiUsdsAdapterContract = DaiUsdsAdapterContract;
|
|
86678
87118
|
exports.ERC4626AdapterContract = ERC4626AdapterContract;
|
|
87119
|
+
exports.ETH_ADDRESS = ETH_ADDRESS;
|
|
86679
87120
|
exports.EVMEvent = EVMEvent;
|
|
86680
87121
|
exports.EVMTx = EVMTx;
|
|
86681
87122
|
exports.Erc4626PriceFeedContract = Erc4626PriceFeedContract;
|
|
@@ -86695,6 +87136,7 @@ exports.LinearModelContract = LinearModelContract;
|
|
|
86695
87136
|
exports.MAX_INT = MAX_INT;
|
|
86696
87137
|
exports.MAX_UINT16 = MAX_UINT16;
|
|
86697
87138
|
exports.MAX_UINT256 = MAX_UINT256;
|
|
87139
|
+
exports.MELLOW_COLLECTOR = MELLOW_COLLECTOR;
|
|
86698
87140
|
exports.MIN_INT96 = MIN_INT96;
|
|
86699
87141
|
exports.MULTICALL_ADDRESS = MULTICALL_ADDRESS;
|
|
86700
87142
|
exports.MarketFactory = MarketFactory;
|
|
@@ -86703,12 +87145,17 @@ exports.MellowLRTPriceFeedContract = MellowLRTPriceFeedContract;
|
|
|
86703
87145
|
exports.MellowVaultAdapterContract = MellowVaultAdapterContract;
|
|
86704
87146
|
exports.NOT_DEPLOYED = NOT_DEPLOYED;
|
|
86705
87147
|
exports.NO_VERSION = NO_VERSION;
|
|
87148
|
+
exports.PANCAKESWAP_V3_QUOTER = PANCAKESWAP_V3_QUOTER;
|
|
87149
|
+
exports.PENDLE_ROUTER_STATIC_ARBITRUM = PENDLE_ROUTER_STATIC_ARBITRUM;
|
|
87150
|
+
exports.PENDLE_ROUTER_STATIC_MAINNET = PENDLE_ROUTER_STATIC_MAINNET;
|
|
87151
|
+
exports.PENDLE_ROUTER_STATIC_OPTIMISM = PENDLE_ROUTER_STATIC_OPTIMISM;
|
|
86706
87152
|
exports.PERCENTAGE_DECIMALS = PERCENTAGE_DECIMALS;
|
|
86707
87153
|
exports.PERCENTAGE_FACTOR = PERCENTAGE_FACTOR;
|
|
86708
87154
|
exports.PRICE_DECIMALS = PRICE_DECIMALS;
|
|
86709
87155
|
exports.PRICE_DECIMALS_POW = PRICE_DECIMALS_POW;
|
|
86710
87156
|
exports.PendleRouterAdapterContract = PendleRouterAdapterContract;
|
|
86711
87157
|
exports.PendleTWAPPTPriceFeed = PendleTWAPPTPriceFeed;
|
|
87158
|
+
exports.PhantomTokenType = PhantomTokenType;
|
|
86712
87159
|
exports.PoolContract = PoolContract;
|
|
86713
87160
|
exports.PoolData_Legacy = PoolData_Legacy;
|
|
86714
87161
|
exports.PoolFactory = PoolFactory;
|
|
@@ -86719,6 +87166,7 @@ exports.PriceFeedRegister = PriceFeedRegister;
|
|
|
86719
87166
|
exports.PriceOracleV300Contract = PriceOracleV300Contract;
|
|
86720
87167
|
exports.PriceOracleV310Contract = PriceOracleV310Contract;
|
|
86721
87168
|
exports.PriceUtils = PriceUtils;
|
|
87169
|
+
exports.Protocols = Protocols;
|
|
86722
87170
|
exports.Provider = Provider;
|
|
86723
87171
|
exports.RAMP_DURATION_BY_NETWORK = RAMP_DURATION_BY_NETWORK;
|
|
86724
87172
|
exports.RAY = RAY;
|
|
@@ -86735,6 +87183,7 @@ exports.TESTNET_CHAINS = TESTNET_CHAINS;
|
|
|
86735
87183
|
exports.TIMELOCK = TIMELOCK;
|
|
86736
87184
|
exports.TXSwap = TXSwap;
|
|
86737
87185
|
exports.TokenData = TokenData;
|
|
87186
|
+
exports.TokenType = TokenType;
|
|
86738
87187
|
exports.TokensMeta = TokensMeta;
|
|
86739
87188
|
exports.TxAddBot = TxAddBot;
|
|
86740
87189
|
exports.TxAddCollateral = TxAddCollateral;
|
|
@@ -86760,12 +87209,16 @@ exports.TxUnstakeDiesel = TxUnstakeDiesel;
|
|
|
86760
87209
|
exports.TxUpdateQuota = TxUpdateQuota;
|
|
86761
87210
|
exports.TxWithdrawCollateral = TxWithdrawCollateral;
|
|
86762
87211
|
exports.TypedObjectUtils = TypedObjectUtils;
|
|
87212
|
+
exports.UNISWAP_V3_QUOTER = UNISWAP_V3_QUOTER;
|
|
86763
87213
|
exports.URLApi = URLApi;
|
|
86764
87214
|
exports.USDC = USDC;
|
|
86765
87215
|
exports.UniswapV2AdapterContract = UniswapV2AdapterContract;
|
|
86766
87216
|
exports.UniswapV3AdapterContract = UniswapV3AdapterContract;
|
|
86767
87217
|
exports.UserCreditSessionsBuilder = UserCreditSessionsBuilder;
|
|
86768
87218
|
exports.UserPoolData = UserPoolData;
|
|
87219
|
+
exports.VELODROME_CL_QUOTER = VELODROME_CL_QUOTER;
|
|
87220
|
+
exports.VELODROME_V2_CL_FACTORY = VELODROME_V2_CL_FACTORY;
|
|
87221
|
+
exports.VELODROME_V2_DEFAULT_FACTORY = VELODROME_V2_DEFAULT_FACTORY;
|
|
86769
87222
|
exports.VelodromeV2RouterAdapterContract = VelodromeV2RouterAdapterContract;
|
|
86770
87223
|
exports.VotingContractStatus = VotingContractStatus;
|
|
86771
87224
|
exports.WAD = WAD;
|
|
@@ -86776,16 +87229,23 @@ exports.WstETHV1AdapterContract = WstETHV1AdapterContract;
|
|
|
86776
87229
|
exports.YearnPriceFeedContract = YearnPriceFeedContract;
|
|
86777
87230
|
exports.YearnV2RouterAdapterContract = YearnV2RouterAdapterContract;
|
|
86778
87231
|
exports.ZeroPriceFeedContract = ZeroPriceFeedContract;
|
|
87232
|
+
exports.aaveV2Tokens = aaveV2Tokens;
|
|
86779
87233
|
exports.aaveV2WrapperAbi = aaveV2WrapperAbi;
|
|
86780
87234
|
exports.accountFactoryV3Abi = accountFactoryV3Abi;
|
|
86781
87235
|
exports.aclAbi = aclAbi;
|
|
86782
87236
|
exports.aclNonReentrantTraitAbi = aclNonReentrantTraitAbi;
|
|
86783
87237
|
exports.assetsMap = assetsMap;
|
|
86784
87238
|
exports.auraDepositorAbi = auraDepositorAbi;
|
|
87239
|
+
exports.auraLpTokenByPid = auraLpTokenByPid;
|
|
87240
|
+
exports.auraLpTokens = auraLpTokens;
|
|
86785
87241
|
exports.auraPathResolverAbi = auraPathResolverAbi;
|
|
87242
|
+
exports.auraPoolByPid = auraPoolByPid;
|
|
87243
|
+
exports.auraStakedTokens = auraStakedTokens;
|
|
87244
|
+
exports.auraTokens = auraTokens;
|
|
86786
87245
|
exports.auraWithdrawerAbi = auraWithdrawerAbi;
|
|
86787
87246
|
exports.balancerLpDepositorAbi = balancerLpDepositorAbi;
|
|
86788
87247
|
exports.balancerLpPathResolverAbi = balancerLpPathResolverAbi;
|
|
87248
|
+
exports.balancerLpTokens = balancerLpTokens;
|
|
86789
87249
|
exports.balancerLpWithdrawerAbi = balancerLpWithdrawerAbi;
|
|
86790
87250
|
exports.balancerSwapperAbi = balancerSwapperAbi;
|
|
86791
87251
|
exports.balancerV2VaultAdapterAbi = balancerV2VaultAdapterAbi;
|
|
@@ -86805,11 +87265,22 @@ exports.chains = chains;
|
|
|
86805
87265
|
exports.childLogger = childLogger;
|
|
86806
87266
|
exports.closePathResolverAbi = closePathResolverAbi;
|
|
86807
87267
|
exports.compositePriceFeedAbi = compositePriceFeedAbi;
|
|
87268
|
+
exports.compoundV2Tokens = compoundV2Tokens;
|
|
86808
87269
|
exports.compoundV2WrapperAbi = compoundV2WrapperAbi;
|
|
87270
|
+
exports.connectors = connectors;
|
|
87271
|
+
exports.contractParams = contractParams;
|
|
87272
|
+
exports.contractsByAddress = contractsByAddress;
|
|
87273
|
+
exports.contractsByNetwork = contractsByNetwork;
|
|
86809
87274
|
exports.contractsRegisterAbi = contractsRegisterAbi;
|
|
86810
87275
|
exports.controllerTimelockV3Abi = controllerTimelockV3Abi;
|
|
86811
87276
|
exports.convexDepositorAbi = convexDepositorAbi;
|
|
87277
|
+
exports.convexL2StakedTokens = convexL2StakedTokens;
|
|
87278
|
+
exports.convexLpTokenByPid = convexLpTokenByPid;
|
|
87279
|
+
exports.convexLpTokens = convexLpTokens;
|
|
86812
87280
|
exports.convexPathResolverAbi = convexPathResolverAbi;
|
|
87281
|
+
exports.convexPoolByPid = convexPoolByPid;
|
|
87282
|
+
exports.convexStakedPhantomTokens = convexStakedPhantomTokens;
|
|
87283
|
+
exports.convexTokens = convexTokens;
|
|
86813
87284
|
exports.convexV1BaseRewardPoolAdapterAbi = convexV1BaseRewardPoolAdapterAbi;
|
|
86814
87285
|
exports.convexV1BoosterAdapterAbi = convexV1BoosterAdapterAbi;
|
|
86815
87286
|
exports.convexWithdrawerAbi = convexWithdrawerAbi;
|
|
@@ -86824,8 +87295,10 @@ exports.curveCryptoLpPriceFeedAbi = curveCryptoLpPriceFeedAbi;
|
|
|
86824
87295
|
exports.curveLpDepositorAbi = curveLpDepositorAbi;
|
|
86825
87296
|
exports.curveLpPathResolverAbi = curveLpPathResolverAbi;
|
|
86826
87297
|
exports.curveLpWithdrawerAbi = curveLpWithdrawerAbi;
|
|
87298
|
+
exports.curveMetaTokens = curveMetaTokens;
|
|
86827
87299
|
exports.curveStableLpPriceFeedAbi = curveStableLpPriceFeedAbi;
|
|
86828
87300
|
exports.curveSwapperAbi = curveSwapperAbi;
|
|
87301
|
+
exports.curveTokens = curveTokens;
|
|
86829
87302
|
exports.curveUsdPriceFeedAbi = curveUsdPriceFeedAbi;
|
|
86830
87303
|
exports.curveV1Adapter2AssetsAbi = curveV1Adapter2AssetsAbi;
|
|
86831
87304
|
exports.curveV1Adapter3AssetsAbi = curveV1Adapter3AssetsAbi;
|
|
@@ -86834,6 +87307,7 @@ exports.curveV1AdapterDepositAbi = curveV1AdapterDepositAbi;
|
|
|
86834
87307
|
exports.curveV1AdapterStEthAbi = curveV1AdapterStEthAbi;
|
|
86835
87308
|
exports.curveV1AdapterStableNgAbi = curveV1AdapterStableNgAbi;
|
|
86836
87309
|
exports.dataCompressorV3Abi = dataCompressorV3Abi;
|
|
87310
|
+
exports.decimals = decimals;
|
|
86837
87311
|
exports.degenDistributorV3Abi = degenDistributorV3Abi;
|
|
86838
87312
|
exports.degenNftv2Abi = degenNftv2Abi;
|
|
86839
87313
|
exports.detectChain = detectChain;
|
|
@@ -86843,9 +87317,11 @@ exports.erc4626AdapterAbi = erc4626AdapterAbi;
|
|
|
86843
87317
|
exports.erc4626DepositorAbi = erc4626DepositorAbi;
|
|
86844
87318
|
exports.erc4626PathResolverAbi = erc4626PathResolverAbi;
|
|
86845
87319
|
exports.erc4626PriceFeedAbi = erc4626PriceFeedAbi;
|
|
87320
|
+
exports.erc4626Tokens = erc4626Tokens;
|
|
86846
87321
|
exports.erc4626WithdrawerAbi = erc4626WithdrawerAbi;
|
|
86847
87322
|
exports.errorAbis = errorAbis;
|
|
86848
87323
|
exports.etherscanUrl = etherscanUrl;
|
|
87324
|
+
exports.extractTokenData = extractTokenData;
|
|
86849
87325
|
exports.faucetAbi = faucetAbi;
|
|
86850
87326
|
exports.filterDust = filterDust;
|
|
86851
87327
|
exports.fmtBinaryMask = fmtBinaryMask;
|
|
@@ -86859,15 +87335,21 @@ exports.formatNumberToString_ = formatNumberToString_;
|
|
|
86859
87335
|
exports.formatPercentage = formatPercentage;
|
|
86860
87336
|
exports.gaugeV3Abi = gaugeV3Abi;
|
|
86861
87337
|
exports.gearStakingV3Abi = gearStakingV3Abi;
|
|
87338
|
+
exports.gearTokens = gearTokens;
|
|
86862
87339
|
exports.getAddressProvider = getAddressProvider;
|
|
87340
|
+
exports.getConnectors = getConnectors;
|
|
86863
87341
|
exports.getCurveAPY = getCurveAPY;
|
|
86864
87342
|
exports.getCurveGearPool = getCurveGearPool;
|
|
87343
|
+
exports.getDecimals = getDecimals;
|
|
86865
87344
|
exports.getDefiLamaAPY = getDefiLamaAPY;
|
|
86866
87345
|
exports.getLidoAPY = getLidoAPY;
|
|
86867
87346
|
exports.getNetworkType = getNetworkType;
|
|
86868
87347
|
exports.getPendleAPY = getPendleAPY;
|
|
86869
87348
|
exports.getProtocolData = getProtocolData;
|
|
86870
87349
|
exports.getSkyAPY = getSkyAPY;
|
|
87350
|
+
exports.getTokenSymbol = getTokenSymbol;
|
|
87351
|
+
exports.getTokenSymbolOrETH = getTokenSymbolOrETH;
|
|
87352
|
+
exports.getTokenSymbolOrTicker = getTokenSymbolOrTicker;
|
|
86871
87353
|
exports.getYearnAPY = getYearnAPY;
|
|
86872
87354
|
exports.halfRAY = halfRAY;
|
|
86873
87355
|
exports.iAdapterAbi = iAdapterAbi;
|
|
@@ -86926,12 +87408,37 @@ exports.ilpPriceFeedEventsAbi = ilpPriceFeedEventsAbi;
|
|
|
86926
87408
|
exports.ilpPriceFeedExceptionsAbi = ilpPriceFeedExceptionsAbi;
|
|
86927
87409
|
exports.inflationAttackBlockerAbi = inflationAttackBlockerAbi;
|
|
86928
87410
|
exports.insolvencyCheckerAbi = insolvencyCheckerAbi;
|
|
87411
|
+
exports.isAaveV2LPToken = isAaveV2LPToken;
|
|
87412
|
+
exports.isAuraLPToken = isAuraLPToken;
|
|
87413
|
+
exports.isAuraStakedToken = isAuraStakedToken;
|
|
87414
|
+
exports.isAuraToken = isAuraToken;
|
|
87415
|
+
exports.isBalancerLPToken = isBalancerLPToken;
|
|
87416
|
+
exports.isCompoundV2LPToken = isCompoundV2LPToken;
|
|
87417
|
+
exports.isConvexL2StakedToken = isConvexL2StakedToken;
|
|
87418
|
+
exports.isConvexLPToken = isConvexLPToken;
|
|
87419
|
+
exports.isConvexStakedPhantomToken = isConvexStakedPhantomToken;
|
|
87420
|
+
exports.isConvexToken = isConvexToken;
|
|
87421
|
+
exports.isCurveLPToken = isCurveLPToken;
|
|
87422
|
+
exports.isCurveMetaToken = isCurveMetaToken;
|
|
87423
|
+
exports.isDieselSimpleToken = isDieselSimpleToken;
|
|
87424
|
+
exports.isDieselStakedToken = isDieselStakedToken;
|
|
87425
|
+
exports.isDieselToken = isDieselToken;
|
|
87426
|
+
exports.isDieselWithStkToken = isDieselWithStkToken;
|
|
87427
|
+
exports.isERC4626LPToken = isERC4626LPToken;
|
|
86929
87428
|
exports.isExtendedProtocol = isExtendedProtocol;
|
|
86930
87429
|
exports.isExtraFarmToken = isExtraFarmToken;
|
|
86931
87430
|
exports.isFarmToken = isFarmToken;
|
|
87431
|
+
exports.isLPToken = isLPToken;
|
|
86932
87432
|
exports.isLRT_LSTToken = isLRT_LSTToken;
|
|
87433
|
+
exports.isNormalToken = isNormalToken;
|
|
87434
|
+
exports.isStakingRewardsPhantomToken = isStakingRewardsPhantomToken;
|
|
87435
|
+
exports.isSupportedContract = isSupportedContract;
|
|
86933
87436
|
exports.isSupportedNetwork = isSupportedNetwork;
|
|
87437
|
+
exports.isSupportedToken = isSupportedToken;
|
|
86934
87438
|
exports.isTokenWithAPY = isTokenWithAPY;
|
|
87439
|
+
exports.isWrappedToken = isWrappedToken;
|
|
87440
|
+
exports.isYearnLPToken = isYearnLPToken;
|
|
87441
|
+
exports.isZircuitStakedPhantomToken = isZircuitStakedPhantomToken;
|
|
86935
87442
|
exports.iwstEthAbi = iwstEthAbi;
|
|
86936
87443
|
exports.iyVaultAbi = iyVaultAbi;
|
|
86937
87444
|
exports.json_parse = json_parse;
|
|
@@ -86939,8 +87446,11 @@ exports.json_stringify = json_stringify;
|
|
|
86939
87446
|
exports.lidoSwapperAbi = lidoSwapperAbi;
|
|
86940
87447
|
exports.lidoV1AdapterAbi = lidoV1AdapterAbi;
|
|
86941
87448
|
exports.linearInterestRateModelV3Abi = linearInterestRateModelV3Abi;
|
|
87449
|
+
exports.lpTokens = lpTokens;
|
|
86942
87450
|
exports.mellowLrtPriceFeedAbi = mellowLrtPriceFeedAbi;
|
|
86943
87451
|
exports.multiPauseAbi = multiPauseAbi;
|
|
87452
|
+
exports.nonQuoted = nonQuoted;
|
|
87453
|
+
exports.normalTokens = normalTokens;
|
|
86944
87454
|
exports.numberWithCommas = numberWithCommas;
|
|
86945
87455
|
exports.overrideAggregatorAbi = overrideAggregatorAbi;
|
|
86946
87456
|
exports.partialLiquidationBotV3Abi = partialLiquidationBotV3Abi;
|
|
@@ -86960,13 +87470,21 @@ exports.sendRawTx = sendRawTx;
|
|
|
86960
87470
|
exports.shortAddress = shortAddress;
|
|
86961
87471
|
exports.shortHash = shortHash;
|
|
86962
87472
|
exports.simulateMulticall = simulateMulticall;
|
|
87473
|
+
exports.stakingRewardsPhantomTokens = stakingRewardsPhantomTokens;
|
|
87474
|
+
exports.stakingRewardsTokens = stakingRewardsTokens;
|
|
87475
|
+
exports.supportedTokens = supportedTokens;
|
|
86963
87476
|
exports.susdeOverriderAbi = susdeOverriderAbi;
|
|
86964
87477
|
exports.swapAggregatorAbi = swapAggregatorAbi;
|
|
87478
|
+
exports.tickerInfoTokensByNetwork = tickerInfoTokensByNetwork;
|
|
87479
|
+
exports.tickerSymbolByAddress = tickerSymbolByAddress;
|
|
87480
|
+
exports.tickerTokensByNetwork = tickerTokensByNetwork;
|
|
86965
87481
|
exports.toBN = toBN;
|
|
86966
87482
|
exports.toBigInt = toBigInt;
|
|
86967
87483
|
exports.toHumanFormat = toHumanFormat;
|
|
86968
87484
|
exports.toSignificant = toSignificant;
|
|
87485
|
+
exports.tokenDataByNetwork = tokenDataByNetwork;
|
|
86969
87486
|
exports.tokenStealerAbi = tokenStealerAbi;
|
|
87487
|
+
exports.tokenSymbolByAddress = tokenSymbolByAddress;
|
|
86970
87488
|
exports.tokenToTicker = tokenToTicker;
|
|
86971
87489
|
exports.underlyingDepositZapperAbi = underlyingDepositZapperAbi;
|
|
86972
87490
|
exports.underlyingFarmingZapperAbi = underlyingFarmingZapperAbi;
|
|
@@ -86979,13 +87497,19 @@ exports.velodromeV2SwapperAbi = velodromeV2SwapperAbi;
|
|
|
86979
87497
|
exports.wethDepositZapperAbi = wethDepositZapperAbi;
|
|
86980
87498
|
exports.wethFarmingZapperAbi = wethFarmingZapperAbi;
|
|
86981
87499
|
exports.wrapAggregatorAbi = wrapAggregatorAbi;
|
|
87500
|
+
exports.wrappedAaveV2Tokens = wrappedAaveV2Tokens;
|
|
87501
|
+
exports.wrappedTokens = wrappedTokens;
|
|
86982
87502
|
exports.wstEthPriceFeedAbi = wstEthPriceFeedAbi;
|
|
86983
87503
|
exports.wstEthSwapperAbi = wstEthSwapperAbi;
|
|
86984
87504
|
exports.wstEthv1AdapterAbi = wstEthv1AdapterAbi;
|
|
86985
87505
|
exports.yearnDepositorAbi = yearnDepositorAbi;
|
|
86986
87506
|
exports.yearnPathResolverAbi = yearnPathResolverAbi;
|
|
86987
87507
|
exports.yearnPriceFeedAbi = yearnPriceFeedAbi;
|
|
87508
|
+
exports.yearnTokens = yearnTokens;
|
|
86988
87509
|
exports.yearnV2AdapterAbi = yearnV2AdapterAbi;
|
|
86989
87510
|
exports.yearnWithdrawerAbi = yearnWithdrawerAbi;
|
|
86990
87511
|
exports.zapperRegisterAbi = zapperRegisterAbi;
|
|
86991
87512
|
exports.zeroPriceFeedAbi = zeroPriceFeedAbi;
|
|
87513
|
+
exports.zircuitStakedPhantomTokens = zircuitStakedPhantomTokens;
|
|
87514
|
+
exports.zircuitStakedTokenByToken = zircuitStakedTokenByToken;
|
|
87515
|
+
exports.zircuitTokens = zircuitTokens;
|