@gearbox-protocol/sdk 3.0.0-vfour.144 → 3.0.0-vfour.146
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 +1911 -315
- package/dist/cjs/sdk/index.d.ts +3949 -4
- package/dist/esm/sdk/index.d.mts +3949 -4
- package/dist/esm/sdk/index.mjs +1809 -316
- package/package.json +3 -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,261 @@ 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
|
+
dUSDC_eV3: 6,
|
|
72672
|
+
sdUSDC_eV3: 6,
|
|
72673
|
+
GEAR: 18,
|
|
72674
|
+
USDC_DAI_USDT: 18,
|
|
72675
|
+
BPT_rETH_ETH: 18,
|
|
72676
|
+
BPT_ROAD: 18,
|
|
72677
|
+
BPT_WSTETH_ETH: 18,
|
|
72678
|
+
ECLP_wstETH_WETH: 18,
|
|
72679
|
+
B_rETH_STABLE: 18,
|
|
72680
|
+
weETH_rETH: 18,
|
|
72681
|
+
osETH_wETH_BPT: 18,
|
|
72682
|
+
B_80BAL_20WETH: 18,
|
|
72683
|
+
"50WETH_50AURA": 18,
|
|
72684
|
+
wstETH_rETH_cbETH: 18,
|
|
72685
|
+
cbETH_rETH_wstETH: 18,
|
|
72686
|
+
wstETH_rETH_sfrxETH: 18,
|
|
72687
|
+
wstETH_WETH_BPT: 18,
|
|
72688
|
+
rETH_WETH_BPT_deprecated: 18,
|
|
72689
|
+
rETH_wETH_BPT: 18,
|
|
72690
|
+
trenSTETH: 18,
|
|
72691
|
+
ezETH_WETH_BPT: 18,
|
|
72692
|
+
weETH_ezETH_rswETH: 18,
|
|
72693
|
+
"33AURA_33ARB_33BAL": 18,
|
|
72694
|
+
ezETH_wstETH: 18,
|
|
72695
|
+
GHO_USDT_USDC: 18,
|
|
72696
|
+
rsETH_WETH: 18,
|
|
72697
|
+
rsETH_wETH_Arb: 18,
|
|
72698
|
+
bpt_ethtri: 18,
|
|
72699
|
+
pumpBTC_WBTC_BPT: 18,
|
|
72700
|
+
sUSDe_USDC_BPT: 18,
|
|
72701
|
+
auraB_rETH_STABLE: 18,
|
|
72702
|
+
auraB_rETH_STABLE_vault: 18,
|
|
72703
|
+
auraweETH_rETH: 18,
|
|
72704
|
+
auraweETH_rETH_vault: 18,
|
|
72705
|
+
auraosETH_wETH_BPT: 18,
|
|
72706
|
+
auraosETH_wETH_BPT_vault: 18,
|
|
72707
|
+
auraBPT_rETH_ETH: 18,
|
|
72708
|
+
auraBPT_rETH_ETH_vault: 18,
|
|
72709
|
+
auraBPT_WSTETH_ETH: 18,
|
|
72710
|
+
auraBPT_WSTETH_ETH_vault: 18,
|
|
72711
|
+
aurarETH_wETH_BPT: 18,
|
|
72712
|
+
aurarETH_wETH_BPT_vault: 18,
|
|
72713
|
+
auracbETH_rETH_wstETH: 18,
|
|
72714
|
+
auracbETH_rETH_wstETH_vault: 18,
|
|
72715
|
+
aurawstETH_rETH_sfrxETH: 18,
|
|
72716
|
+
aurawstETH_rETH_sfrxETH_vault: 18,
|
|
72717
|
+
aurawstETH_WETH_BPT: 18,
|
|
72718
|
+
aurawstETH_WETH_BPT_vault: 18,
|
|
72719
|
+
zpufETH: 18,
|
|
72720
|
+
steakLRT: 18,
|
|
72721
|
+
Re7LRT: 18,
|
|
72722
|
+
amphrETH: 18,
|
|
72723
|
+
rstETH: 18,
|
|
72724
|
+
pzETH: 18,
|
|
72725
|
+
aDAI: 18,
|
|
72726
|
+
aUSDC: 6,
|
|
72727
|
+
aUSDT: 6,
|
|
72728
|
+
aWETH: 18,
|
|
72729
|
+
waDAI: 18,
|
|
72730
|
+
waUSDC: 6,
|
|
72731
|
+
waUSDT: 6,
|
|
72732
|
+
waWETH: 18,
|
|
72733
|
+
cDAI: 18,
|
|
72734
|
+
cUSDC: 6,
|
|
72735
|
+
cUSDT: 6,
|
|
72736
|
+
cLINK: 18,
|
|
72737
|
+
cETH: 18,
|
|
72738
|
+
SHIB: 18,
|
|
72739
|
+
fUSDC: 8,
|
|
72740
|
+
sDAI: 18,
|
|
72741
|
+
sUSDe: 18,
|
|
72742
|
+
sUSDS: 18,
|
|
72743
|
+
YieldETH: 18,
|
|
72744
|
+
scrvUSD: 18,
|
|
72745
|
+
rETH: 18,
|
|
72746
|
+
rETH_f: 18,
|
|
72747
|
+
stkUSDS: 18,
|
|
72748
|
+
PT_sUSDe_26DEC2024: 18,
|
|
72749
|
+
PT_eETH_26DEC2024: 18,
|
|
72750
|
+
PT_ezETH_26DEC2024: 18,
|
|
72751
|
+
PT_eBTC_26DEC2024: 8,
|
|
72752
|
+
PT_corn_solvBTC_BBN_26DEC2024: 8,
|
|
72753
|
+
PT_corn_pumpBTC_26DEC2024: 8,
|
|
72754
|
+
PT_cornLBTC_26DEC2024: 8,
|
|
72755
|
+
PT_LBTC_27MAR2025: 8,
|
|
72756
|
+
PT_corn_eBTC_27MAR2025: 8,
|
|
72757
|
+
PT_sUSDe_27MAR2025: 18
|
|
72758
|
+
};
|
|
72417
72759
|
|
|
72418
72760
|
// src/sdk/sdk-gov-legacy/tokens/erc4626.ts
|
|
72419
72761
|
var erc4626Tokens = {
|
|
@@ -72454,6 +72796,7 @@ var erc4626Tokens = {
|
|
|
72454
72796
|
vault: "SAVINGS_CRVUSD_VAULT"
|
|
72455
72797
|
}
|
|
72456
72798
|
};
|
|
72799
|
+
var isERC4626LPToken = (t) => typeof t === "string" && !!erc4626Tokens[t];
|
|
72457
72800
|
|
|
72458
72801
|
// src/sdk/sdk-gov-legacy/tokens/gear.ts
|
|
72459
72802
|
var dieselSimpleTokens = {
|
|
@@ -72486,6 +72829,11 @@ var dieselSimpleTokens = {
|
|
|
72486
72829
|
name: "dFRAX",
|
|
72487
72830
|
symbol: "dFRAX",
|
|
72488
72831
|
type: { AllNetworks: 7 /* DIESEL_LP_TOKEN */ }
|
|
72832
|
+
},
|
|
72833
|
+
dDOLAV3: {
|
|
72834
|
+
name: "dDOLAV3",
|
|
72835
|
+
symbol: "dDOLAV3",
|
|
72836
|
+
type: { AllNetworks: 7 /* DIESEL_LP_TOKEN */ }
|
|
72489
72837
|
}
|
|
72490
72838
|
};
|
|
72491
72839
|
var dieselWithStkTokens = {
|
|
@@ -72537,12 +72885,6 @@ var dieselWithStkTokens = {
|
|
|
72537
72885
|
symbol: "dcrvUSDV3",
|
|
72538
72886
|
type: { AllNetworks: 7 /* DIESEL_LP_TOKEN */ },
|
|
72539
72887
|
stakedToken: "sdcrvUSDV3"
|
|
72540
|
-
},
|
|
72541
|
-
dDOLAV3: {
|
|
72542
|
-
name: "dDOLAV3",
|
|
72543
|
-
symbol: "dDOLAV3",
|
|
72544
|
-
type: { AllNetworks: 7 /* DIESEL_LP_TOKEN */ },
|
|
72545
|
-
stakedToken: "sdDOLAV3"
|
|
72546
72888
|
}
|
|
72547
72889
|
};
|
|
72548
72890
|
var dieselTokens = { ...dieselSimpleTokens, ...dieselWithStkTokens };
|
|
@@ -72600,12 +72942,6 @@ var dieselStakedTokens = {
|
|
|
72600
72942
|
symbol: "sdcrvUSDV3",
|
|
72601
72943
|
type: { AllNetworks: 7 /* DIESEL_LP_TOKEN */ },
|
|
72602
72944
|
underlying: "dcrvUSDV3"
|
|
72603
|
-
},
|
|
72604
|
-
sdDOLAV3: {
|
|
72605
|
-
name: "sdDOLAV3",
|
|
72606
|
-
symbol: "sdDOLAV3",
|
|
72607
|
-
type: { AllNetworks: 7 /* DIESEL_LP_TOKEN */ },
|
|
72608
|
-
underlying: "dDOLAV3"
|
|
72609
72945
|
}
|
|
72610
72946
|
};
|
|
72611
72947
|
var gearTokens = {
|
|
@@ -72617,6 +72953,10 @@ var gearTokens = {
|
|
|
72617
72953
|
type: { AllNetworks: 8 /* GEAR_TOKEN */ }
|
|
72618
72954
|
}
|
|
72619
72955
|
};
|
|
72956
|
+
var isDieselToken = (t) => typeof t === "string" && !!dieselTokens[t];
|
|
72957
|
+
var isDieselSimpleToken = (t) => typeof t === "string" && !!dieselSimpleTokens[t];
|
|
72958
|
+
var isDieselWithStkToken = (t) => typeof t === "string" && !!dieselWithStkTokens[t];
|
|
72959
|
+
var isDieselStakedToken = (t) => typeof t === "string" && !!dieselStakedTokens[t];
|
|
72620
72960
|
|
|
72621
72961
|
// src/sdk/sdk-gov-legacy/tokens/normal.ts
|
|
72622
72962
|
var normalTokens = {
|
|
@@ -72972,6 +73312,15 @@ var normalTokens = {
|
|
|
72972
73312
|
type: { AllNetworks: 1 /* NORMAL_TOKEN */ }
|
|
72973
73313
|
}
|
|
72974
73314
|
};
|
|
73315
|
+
var isNormalToken = (t) => typeof t === "string" && !!normalTokens[t];
|
|
73316
|
+
|
|
73317
|
+
// src/sdk/sdk-gov-legacy/tokens/quoted.ts
|
|
73318
|
+
var nonQuoted = {
|
|
73319
|
+
Mainnet: ["WETH", "DAI", "USDC", "FRAX"],
|
|
73320
|
+
Arbitrum: ["WETH", "DAI", "USDC", "WBTC"],
|
|
73321
|
+
Optimism: ["WETH", "USDC", "OP"],
|
|
73322
|
+
Base: ["WETH", "USDC", "USDT"]
|
|
73323
|
+
};
|
|
72975
73324
|
|
|
72976
73325
|
// src/sdk/sdk-gov-legacy/tokens/stakingRewards.ts
|
|
72977
73326
|
var stakingRewardsPhantomTokens = {
|
|
@@ -72985,6 +73334,10 @@ var stakingRewardsPhantomTokens = {
|
|
|
72985
73334
|
underlying: "USDS"
|
|
72986
73335
|
}
|
|
72987
73336
|
};
|
|
73337
|
+
var stakingRewardsTokens = {
|
|
73338
|
+
...stakingRewardsPhantomTokens
|
|
73339
|
+
};
|
|
73340
|
+
var isStakingRewardsPhantomToken = (t) => typeof t === "string" && !!stakingRewardsTokens[t];
|
|
72988
73341
|
|
|
72989
73342
|
// src/sdk/sdk-gov-legacy/tokens/wrapped.ts
|
|
72990
73343
|
var wrappedTokens = {
|
|
@@ -72998,6 +73351,7 @@ var wrappedTokens = {
|
|
|
72998
73351
|
}
|
|
72999
73352
|
}
|
|
73000
73353
|
};
|
|
73354
|
+
var isWrappedToken = (t) => typeof t === "string" && !!wrappedTokens[t];
|
|
73001
73355
|
|
|
73002
73356
|
// src/sdk/sdk-gov-legacy/tokens/yearn.ts
|
|
73003
73357
|
var yearnTokens = {
|
|
@@ -73067,6 +73421,7 @@ var yearnTokens = {
|
|
|
73067
73421
|
vault: "YEARN_CURVE_FRAX_VAULT"
|
|
73068
73422
|
}
|
|
73069
73423
|
};
|
|
73424
|
+
var isYearnLPToken = (t) => typeof t === "string" && !!yearnTokens[t];
|
|
73070
73425
|
|
|
73071
73426
|
// src/sdk/sdk-gov-legacy/tokens/zircuit.ts
|
|
73072
73427
|
var zircuitStakedPhantomTokens = {
|
|
@@ -73079,7 +73434,11 @@ var zircuitStakedPhantomTokens = {
|
|
|
73079
73434
|
underlying: "pufETH"
|
|
73080
73435
|
}
|
|
73081
73436
|
};
|
|
73082
|
-
|
|
73437
|
+
var zircuitTokens = {
|
|
73438
|
+
...zircuitStakedPhantomTokens
|
|
73439
|
+
};
|
|
73440
|
+
var isZircuitStakedPhantomToken = (t) => typeof t === "string" && !!zircuitTokens[t];
|
|
73441
|
+
var zircuitStakedTokenByToken = Object.values(
|
|
73083
73442
|
zircuitStakedPhantomTokens
|
|
73084
73443
|
).reduce((acc, value) => {
|
|
73085
73444
|
acc[value.underlying] = value.symbol;
|
|
@@ -73101,12 +73460,13 @@ var lpTokens = {
|
|
|
73101
73460
|
...zircuitStakedPhantomTokens,
|
|
73102
73461
|
...stakingRewardsPhantomTokens
|
|
73103
73462
|
};
|
|
73104
|
-
|
|
73463
|
+
var supportedTokens = {
|
|
73105
73464
|
...normalTokens,
|
|
73106
73465
|
...wrappedTokens,
|
|
73107
73466
|
...lpTokens,
|
|
73108
73467
|
...gearTokens
|
|
73109
|
-
}
|
|
73468
|
+
};
|
|
73469
|
+
var ETH_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
73110
73470
|
var tokenDataByNetwork = {
|
|
73111
73471
|
//
|
|
73112
73472
|
// MAINNET NETWORK
|
|
@@ -73341,7 +73701,6 @@ var tokenDataByNetwork = {
|
|
|
73341
73701
|
dcrvUSDV3: "0x8EF73f036fEEC873D0B2fd20892215Df5B8Bdd72",
|
|
73342
73702
|
sdcrvUSDV3: "0xfBCA378AeA93EADD6882299A3d74D8641Cc0C4BC",
|
|
73343
73703
|
dDOLAV3: "0x31426271449F60d37Cc5C9AEf7bD12aF3BdC7A94",
|
|
73344
|
-
sdDOLAV3: "0xb3289a45497027a2Aee88Acc89fB3dcB5C71001D",
|
|
73345
73704
|
dUSDC_eV3: NOT_DEPLOYED,
|
|
73346
73705
|
sdUSDC_eV3: NOT_DEPLOYED,
|
|
73347
73706
|
GEAR: "0xBa3335588D9403515223F109EdC4eB7269a9Ab5D",
|
|
@@ -73615,7 +73974,6 @@ var tokenDataByNetwork = {
|
|
|
73615
73974
|
dcrvUSDV3: NOT_DEPLOYED,
|
|
73616
73975
|
sdcrvUSDV3: NOT_DEPLOYED,
|
|
73617
73976
|
dDOLAV3: NOT_DEPLOYED,
|
|
73618
|
-
sdDOLAV3: NOT_DEPLOYED,
|
|
73619
73977
|
dUSDC_eV3: "0xa76c604145D7394DEc36C49Af494C144Ff327861",
|
|
73620
73978
|
sdUSDC_eV3: "0x608F9e2E8933Ce6b39A8CddBc34a1e3E8D21cE75",
|
|
73621
73979
|
GEAR: "0x2F26337576127efabEEc1f62BE79dB1bcA9148A4",
|
|
@@ -73887,7 +74245,6 @@ var tokenDataByNetwork = {
|
|
|
73887
74245
|
dcrvUSDV3: NOT_DEPLOYED,
|
|
73888
74246
|
sdcrvUSDV3: NOT_DEPLOYED,
|
|
73889
74247
|
dDOLAV3: NOT_DEPLOYED,
|
|
73890
|
-
sdDOLAV3: NOT_DEPLOYED,
|
|
73891
74248
|
dUSDC_eV3: "0x5520dAa93A187f4Ec67344e6D2C4FC9B080B6A35",
|
|
73892
74249
|
sdUSDC_eV3: "0x73302b63Ad4a16C498f26dB89cb27F37a72E4E04",
|
|
73893
74250
|
GEAR: "0x39E6C2E1757ae4354087266E2C3EA9aC4257C1eb",
|
|
@@ -74161,7 +74518,6 @@ var tokenDataByNetwork = {
|
|
|
74161
74518
|
dcrvUSDV3: NOT_DEPLOYED,
|
|
74162
74519
|
sdcrvUSDV3: NOT_DEPLOYED,
|
|
74163
74520
|
dDOLAV3: NOT_DEPLOYED,
|
|
74164
|
-
sdDOLAV3: NOT_DEPLOYED,
|
|
74165
74521
|
dUSDC_eV3: NOT_DEPLOYED,
|
|
74166
74522
|
sdUSDC_eV3: NOT_DEPLOYED,
|
|
74167
74523
|
GEAR: NOT_DEPLOYED,
|
|
@@ -74570,7 +74926,7 @@ var tokenSymbolByAddress = Object.entries(tokenDataByNetwork).reduce(
|
|
|
74570
74926
|
}),
|
|
74571
74927
|
{}
|
|
74572
74928
|
);
|
|
74573
|
-
Object.fromEntries(
|
|
74929
|
+
var tickerSymbolByAddress = Object.fromEntries(
|
|
74574
74930
|
Object.values(tickerTokensByNetwork).map(
|
|
74575
74931
|
(en) => Object.entries(en).map(
|
|
74576
74932
|
([symbol, addresses]) => addresses.map((addr) => [addr.toLowerCase(), symbol])
|
|
@@ -74580,7 +74936,29 @@ Object.fromEntries(
|
|
|
74580
74936
|
function getTokenSymbol(address) {
|
|
74581
74937
|
return tokenSymbolByAddress[address.toLowerCase()];
|
|
74582
74938
|
}
|
|
74939
|
+
function getTokenSymbolOrTicker(address) {
|
|
74940
|
+
return tokenSymbolByAddress[address.toLowerCase()] || tickerSymbolByAddress[address.toLowerCase()];
|
|
74941
|
+
}
|
|
74942
|
+
function getTokenSymbolOrETH(address) {
|
|
74943
|
+
if (address.toLowerCase() === ETH_ADDRESS.toLowerCase()) return "ETH";
|
|
74944
|
+
return getTokenSymbol(address);
|
|
74945
|
+
}
|
|
74946
|
+
var isSupportedToken = (t) => typeof t === "string" && !!supportedTokens[t];
|
|
74583
74947
|
var isLPToken = (t) => typeof t === "string" && !!lpTokens[t];
|
|
74948
|
+
function getDecimals(token) {
|
|
74949
|
+
let dec = decimals[token];
|
|
74950
|
+
if (dec) return dec;
|
|
74951
|
+
dec = decimals[tokenSymbolByAddress[token.toLowerCase()]];
|
|
74952
|
+
if (!dec) {
|
|
74953
|
+
throw new Error(`Decimals for ${token} not found`);
|
|
74954
|
+
}
|
|
74955
|
+
return dec;
|
|
74956
|
+
}
|
|
74957
|
+
function extractTokenData(tokenAddress) {
|
|
74958
|
+
const underlyingSymbol = tokenSymbolByAddress[tokenAddress.toLowerCase()];
|
|
74959
|
+
const underlyingDecimals = decimals[underlyingSymbol || ""];
|
|
74960
|
+
return [underlyingSymbol, underlyingDecimals];
|
|
74961
|
+
}
|
|
74584
74962
|
|
|
74585
74963
|
// src/sdk/sdk-gov-legacy/tokens/tokenData.ts
|
|
74586
74964
|
var connectors = {
|
|
@@ -74617,6 +74995,36 @@ function getConnectors(networkType) {
|
|
|
74617
74995
|
});
|
|
74618
74996
|
}
|
|
74619
74997
|
|
|
74998
|
+
// src/sdk/sdk-gov-legacy/contracts/protocols.ts
|
|
74999
|
+
var Protocols = /* @__PURE__ */ ((Protocols2) => {
|
|
75000
|
+
Protocols2[Protocols2["Uniswap"] = 0] = "Uniswap";
|
|
75001
|
+
Protocols2[Protocols2["Sushiswap"] = 1] = "Sushiswap";
|
|
75002
|
+
Protocols2[Protocols2["Curve"] = 2] = "Curve";
|
|
75003
|
+
Protocols2[Protocols2["Yearn"] = 3] = "Yearn";
|
|
75004
|
+
Protocols2[Protocols2["Convex"] = 4] = "Convex";
|
|
75005
|
+
Protocols2[Protocols2["Lido"] = 5] = "Lido";
|
|
75006
|
+
Protocols2[Protocols2["Gearbox"] = 6] = "Gearbox";
|
|
75007
|
+
Protocols2[Protocols2["Balancer"] = 7] = "Balancer";
|
|
75008
|
+
Protocols2[Protocols2["AaveV2"] = 8] = "AaveV2";
|
|
75009
|
+
Protocols2[Protocols2["CompoundV2"] = 9] = "CompoundV2";
|
|
75010
|
+
Protocols2[Protocols2["Flux"] = 10] = "Flux";
|
|
75011
|
+
Protocols2[Protocols2["Aura"] = 11] = "Aura";
|
|
75012
|
+
Protocols2[Protocols2["MakerDSR"] = 12] = "MakerDSR";
|
|
75013
|
+
Protocols2[Protocols2["Sommelier"] = 13] = "Sommelier";
|
|
75014
|
+
Protocols2[Protocols2["Fraxswap"] = 14] = "Fraxswap";
|
|
75015
|
+
Protocols2[Protocols2["Velodrome"] = 15] = "Velodrome";
|
|
75016
|
+
Protocols2[Protocols2["Camelot"] = 16] = "Camelot";
|
|
75017
|
+
Protocols2[Protocols2["Ethena"] = 17] = "Ethena";
|
|
75018
|
+
Protocols2[Protocols2["AaveV3"] = 18] = "AaveV3";
|
|
75019
|
+
Protocols2[Protocols2["Pancakeswap"] = 19] = "Pancakeswap";
|
|
75020
|
+
Protocols2[Protocols2["Zircuit"] = 20] = "Zircuit";
|
|
75021
|
+
Protocols2[Protocols2["Mellow"] = 21] = "Mellow";
|
|
75022
|
+
Protocols2[Protocols2["Pendle"] = 22] = "Pendle";
|
|
75023
|
+
Protocols2[Protocols2["Sky"] = 23] = "Sky";
|
|
75024
|
+
Protocols2[Protocols2["Equalizer"] = 24] = "Equalizer";
|
|
75025
|
+
return Protocols2;
|
|
75026
|
+
})(Protocols || {});
|
|
75027
|
+
|
|
74620
75028
|
// src/sdk/sdk-gov-legacy/contracts/contracts.ts
|
|
74621
75029
|
var contractsByNetwork = {
|
|
74622
75030
|
Mainnet: {
|
|
@@ -75197,6 +75605,12 @@ var UNISWAP_V3_QUOTER = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
|
|
|
75197
75605
|
var CAMELOT_V3_QUOTER = "0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E";
|
|
75198
75606
|
var PANCAKESWAP_V3_QUOTER = "0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997";
|
|
75199
75607
|
var VELODROME_CL_QUOTER = "0x89D8218ed5fF1e46d8dcd33fb0bbeE3be1621466";
|
|
75608
|
+
var VELODROME_V2_DEFAULT_FACTORY = "0xF1046053aa5682b4F9a81b5481394DA16BE5FF5a";
|
|
75609
|
+
var VELODROME_V2_CL_FACTORY = "0xCc0bDDB707055e04e497aB22a59c2aF4391cd12F";
|
|
75610
|
+
var MELLOW_COLLECTOR = "0xce8f66b5347dcfedb3e63cb2c95e4aab9a85429e";
|
|
75611
|
+
var PENDLE_ROUTER_STATIC_MAINNET = "0x263833d47eA3fA4a30f269323aba6a107f9eB14C";
|
|
75612
|
+
var PENDLE_ROUTER_STATIC_ARBITRUM = "0xAdB09F65bd90d19e3148D9ccb693F3161C6DB3E8";
|
|
75613
|
+
var PENDLE_ROUTER_STATIC_OPTIMISM = "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0";
|
|
75200
75614
|
var contractParams = {
|
|
75201
75615
|
UNISWAP_V2_ROUTER: {
|
|
75202
75616
|
name: "Uniswap V2",
|
|
@@ -76374,6 +76788,13 @@ var contractsByAddress = Object.entries(contractsByNetwork).reduce(
|
|
|
76374
76788
|
}),
|
|
76375
76789
|
{}
|
|
76376
76790
|
);
|
|
76791
|
+
var isSupportedContract = (t) => typeof t === "string" && !!contractParams[t];
|
|
76792
|
+
|
|
76793
|
+
// src/sdk/sdk-gov-legacy/core/constants.ts
|
|
76794
|
+
var DUMB_ADDRESS = "0xC4375B7De8af5a38a93548eb8453a498222C4fF2";
|
|
76795
|
+
var DUMB_ADDRESS2 = "0x93548eB8453a498222C4FF2C4375b7De8af5A38a";
|
|
76796
|
+
var DUMB_ADDRESS3 = "0x822293548EB8453A49c4fF2c4375B7DE8AF5a38A";
|
|
76797
|
+
var DUMB_ADDRESS4 = "0x498222C4Ff2C4393548eb8453a75B7dE8AF5A38a";
|
|
76377
76798
|
|
|
76378
76799
|
// src/sdk/router/PathOptionFactory.ts
|
|
76379
76800
|
var PathOptionFactory = class _PathOptionFactory {
|
|
@@ -76794,8 +77215,8 @@ var RouterV3Contract = class extends BaseContract {
|
|
|
76794
77215
|
const token = t;
|
|
76795
77216
|
const isEnabled = (mask & ca.enabledTokensMask) !== 0n;
|
|
76796
77217
|
expectedBalances.upsert(token, { token, balance });
|
|
76797
|
-
const
|
|
76798
|
-
const minBalance = 10n ** BigInt(Math.max(8,
|
|
77218
|
+
const decimals2 = this.sdk.tokensMeta.decimals(token);
|
|
77219
|
+
const minBalance = 10n ** BigInt(Math.max(8, decimals2) - 8);
|
|
76799
77220
|
if (balance < minBalance || !isEnabled) {
|
|
76800
77221
|
leftoverBalances.upsert(token, { token, balance });
|
|
76801
77222
|
}
|
|
@@ -82006,7 +82427,7 @@ var BigIntMath = class {
|
|
|
82006
82427
|
|
|
82007
82428
|
// src/sdk/sdk-legacy/utils/price.ts
|
|
82008
82429
|
var PriceUtils = class {
|
|
82009
|
-
static calcTotalPrice = (price, amount,
|
|
82430
|
+
static calcTotalPrice = (price, amount, decimals2 = 18) => amount * WAD * price / 10n ** BigInt(decimals2) / PRICE_DECIMALS;
|
|
82010
82431
|
static convertByPrice(totalMoney, { price: targetPrice, decimals: targetDecimals = 18 }) {
|
|
82011
82432
|
if (targetPrice <= 0n) return 0n;
|
|
82012
82433
|
return totalMoney * 10n ** BigInt(targetDecimals) * PRICE_DECIMALS / targetPrice / WAD;
|
|
@@ -82015,15 +82436,15 @@ var PriceUtils = class {
|
|
|
82015
82436
|
function rayToNumber(num) {
|
|
82016
82437
|
return Number(toBigInt(num) / 10n ** 21n) / 1e6;
|
|
82017
82438
|
}
|
|
82018
|
-
function toSignificant(num,
|
|
82439
|
+
function toSignificant(num, decimals2, precision = 6) {
|
|
82019
82440
|
if (num === 1n) return "0";
|
|
82020
|
-
const divider = new decimal_jsLight.Decimal(10).toPower(
|
|
82441
|
+
const divider = new decimal_jsLight.Decimal(10).toPower(decimals2);
|
|
82021
82442
|
const number = new decimal_jsLight.Decimal(num.toString()).div(divider);
|
|
82022
82443
|
return number.toSignificantDigits(precision, 4).toString();
|
|
82023
82444
|
}
|
|
82024
|
-
function toBN(num,
|
|
82445
|
+
function toBN(num, decimals2) {
|
|
82025
82446
|
if (num === "") return 0n;
|
|
82026
|
-
const multiplier = new decimal_jsLight.Decimal(10).toPower(
|
|
82447
|
+
const multiplier = new decimal_jsLight.Decimal(10).toPower(decimals2);
|
|
82027
82448
|
const number = new decimal_jsLight.Decimal(num).mul(multiplier);
|
|
82028
82449
|
return BigInt(number.toFixed(0));
|
|
82029
82450
|
}
|
|
@@ -82033,11 +82454,11 @@ function shortAddress(address) {
|
|
|
82033
82454
|
function shortHash(address) {
|
|
82034
82455
|
return address === void 0 ? "" : `${address.slice(0, 5)}...`;
|
|
82035
82456
|
}
|
|
82036
|
-
function formatPercentage(healthFactor,
|
|
82037
|
-
return (healthFactor / Number(PERCENTAGE_FACTOR)).toFixed(
|
|
82457
|
+
function formatPercentage(healthFactor, decimals2 = 2) {
|
|
82458
|
+
return (healthFactor / Number(PERCENTAGE_FACTOR)).toFixed(decimals2);
|
|
82038
82459
|
}
|
|
82039
|
-
function formatLeverage(leverage,
|
|
82040
|
-
return (leverage / Number(LEVERAGE_DECIMALS)).toFixed(
|
|
82460
|
+
function formatLeverage(leverage, decimals2 = 2) {
|
|
82461
|
+
return (leverage / Number(LEVERAGE_DECIMALS)).toFixed(decimals2);
|
|
82041
82462
|
}
|
|
82042
82463
|
function formatDateTime(timestamp) {
|
|
82043
82464
|
return `${moment.unix(timestamp).format("Do MMM YYYY HH:mm")} UTC`;
|
|
@@ -83651,162 +84072,1340 @@ var iConvexTokenAbi = [
|
|
|
83651
84072
|
}
|
|
83652
84073
|
];
|
|
83653
84074
|
|
|
83654
|
-
// src/sdk/sdk-legacy/types/
|
|
83655
|
-
var
|
|
83656
|
-
{
|
|
83657
|
-
type: "function",
|
|
83658
|
-
inputs: [
|
|
83659
|
-
{ name: "owner", internalType: "address", type: "address" },
|
|
83660
|
-
{ name: "spender", internalType: "address", type: "address" }
|
|
83661
|
-
],
|
|
83662
|
-
name: "allowance",
|
|
83663
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
83664
|
-
stateMutability: "view"
|
|
83665
|
-
},
|
|
84075
|
+
// src/sdk/sdk-legacy/types/IDataCompressorV3.ts
|
|
84076
|
+
var iDataCompressorV3Abi = [
|
|
83666
84077
|
{
|
|
83667
84078
|
type: "function",
|
|
83668
84079
|
inputs: [
|
|
83669
|
-
{ name: "
|
|
83670
|
-
{
|
|
84080
|
+
{ name: "creditAccount", internalType: "address", type: "address" },
|
|
84081
|
+
{
|
|
84082
|
+
name: "priceUpdates",
|
|
84083
|
+
internalType: "struct PriceOnDemand[]",
|
|
84084
|
+
type: "tuple[]",
|
|
84085
|
+
components: [
|
|
84086
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84087
|
+
{ name: "callData", internalType: "bytes", type: "bytes" }
|
|
84088
|
+
]
|
|
84089
|
+
}
|
|
83671
84090
|
],
|
|
83672
|
-
name: "
|
|
83673
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
83674
|
-
stateMutability: "nonpayable"
|
|
83675
|
-
},
|
|
83676
|
-
{
|
|
83677
|
-
type: "function",
|
|
83678
|
-
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
83679
|
-
name: "balanceOf",
|
|
83680
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
83681
|
-
stateMutability: "view"
|
|
83682
|
-
},
|
|
83683
|
-
{
|
|
83684
|
-
type: "function",
|
|
83685
|
-
inputs: [],
|
|
83686
|
-
name: "claim",
|
|
83687
|
-
outputs: [],
|
|
83688
|
-
stateMutability: "nonpayable"
|
|
83689
|
-
},
|
|
83690
|
-
{
|
|
83691
|
-
type: "function",
|
|
83692
|
-
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
83693
|
-
name: "deposit",
|
|
83694
|
-
outputs: [],
|
|
83695
|
-
stateMutability: "nonpayable"
|
|
83696
|
-
},
|
|
83697
|
-
{
|
|
83698
|
-
type: "function",
|
|
83699
|
-
inputs: [],
|
|
83700
|
-
name: "distributor",
|
|
83701
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
83702
|
-
stateMutability: "view"
|
|
83703
|
-
},
|
|
83704
|
-
{
|
|
83705
|
-
type: "function",
|
|
83706
|
-
inputs: [],
|
|
83707
|
-
name: "exit",
|
|
83708
|
-
outputs: [],
|
|
83709
|
-
stateMutability: "nonpayable"
|
|
83710
|
-
},
|
|
83711
|
-
{
|
|
83712
|
-
type: "function",
|
|
83713
|
-
inputs: [],
|
|
83714
|
-
name: "farmInfo",
|
|
84091
|
+
name: "getCreditAccountData",
|
|
83715
84092
|
outputs: [
|
|
83716
84093
|
{
|
|
83717
84094
|
name: "",
|
|
83718
|
-
internalType: "struct
|
|
84095
|
+
internalType: "struct CreditAccountData",
|
|
83719
84096
|
type: "tuple",
|
|
83720
84097
|
components: [
|
|
83721
|
-
{ name: "
|
|
83722
|
-
{
|
|
83723
|
-
|
|
83724
|
-
|
|
84098
|
+
{ name: "isSuccessful", internalType: "bool", type: "bool" },
|
|
84099
|
+
{
|
|
84100
|
+
name: "priceFeedsNeeded",
|
|
84101
|
+
internalType: "address[]",
|
|
84102
|
+
type: "address[]"
|
|
84103
|
+
},
|
|
84104
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84105
|
+
{ name: "borrower", internalType: "address", type: "address" },
|
|
84106
|
+
{ name: "creditManager", internalType: "address", type: "address" },
|
|
84107
|
+
{ name: "cmName", internalType: "string", type: "string" },
|
|
84108
|
+
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
84109
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84110
|
+
{ name: "debt", internalType: "uint256", type: "uint256" },
|
|
84111
|
+
{
|
|
84112
|
+
name: "cumulativeIndexLastUpdate",
|
|
84113
|
+
internalType: "uint256",
|
|
84114
|
+
type: "uint256"
|
|
84115
|
+
},
|
|
84116
|
+
{
|
|
84117
|
+
name: "cumulativeQuotaInterest",
|
|
84118
|
+
internalType: "uint128",
|
|
84119
|
+
type: "uint128"
|
|
84120
|
+
},
|
|
84121
|
+
{ name: "accruedInterest", internalType: "uint256", type: "uint256" },
|
|
84122
|
+
{ name: "accruedFees", internalType: "uint256", type: "uint256" },
|
|
84123
|
+
{ name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
|
|
84124
|
+
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
84125
|
+
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
84126
|
+
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
84127
|
+
{
|
|
84128
|
+
name: "enabledTokensMask",
|
|
84129
|
+
internalType: "uint256",
|
|
84130
|
+
type: "uint256"
|
|
84131
|
+
},
|
|
84132
|
+
{ name: "healthFactor", internalType: "uint256", type: "uint256" },
|
|
84133
|
+
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
84134
|
+
{
|
|
84135
|
+
name: "aggregatedBorrowRate",
|
|
84136
|
+
internalType: "uint256",
|
|
84137
|
+
type: "uint256"
|
|
84138
|
+
},
|
|
84139
|
+
{
|
|
84140
|
+
name: "balances",
|
|
84141
|
+
internalType: "struct TokenBalance[]",
|
|
84142
|
+
type: "tuple[]",
|
|
84143
|
+
components: [
|
|
84144
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84145
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
84146
|
+
{ name: "isForbidden", internalType: "bool", type: "bool" },
|
|
84147
|
+
{ name: "isEnabled", internalType: "bool", type: "bool" },
|
|
84148
|
+
{ name: "isQuoted", internalType: "bool", type: "bool" },
|
|
84149
|
+
{ name: "quota", internalType: "uint256", type: "uint256" },
|
|
84150
|
+
{ name: "quotaRate", internalType: "uint16", type: "uint16" },
|
|
84151
|
+
{
|
|
84152
|
+
name: "quotaCumulativeIndexLU",
|
|
84153
|
+
internalType: "uint256",
|
|
84154
|
+
type: "uint256"
|
|
84155
|
+
}
|
|
84156
|
+
]
|
|
84157
|
+
},
|
|
84158
|
+
{ name: "since", internalType: "uint64", type: "uint64" },
|
|
84159
|
+
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
84160
|
+
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
84161
|
+
{ name: "activeBots", internalType: "address[]", type: "address[]" }
|
|
83725
84162
|
]
|
|
83726
84163
|
}
|
|
83727
84164
|
],
|
|
83728
|
-
stateMutability: "view"
|
|
83729
|
-
},
|
|
83730
|
-
{
|
|
83731
|
-
type: "function",
|
|
83732
|
-
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
83733
|
-
name: "farmed",
|
|
83734
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
83735
|
-
stateMutability: "view"
|
|
83736
|
-
},
|
|
83737
|
-
{
|
|
83738
|
-
type: "function",
|
|
83739
|
-
inputs: [
|
|
83740
|
-
{ name: "token", internalType: "contract IERC20", type: "address" },
|
|
83741
|
-
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
83742
|
-
],
|
|
83743
|
-
name: "rescueFunds",
|
|
83744
|
-
outputs: [],
|
|
83745
|
-
stateMutability: "nonpayable"
|
|
83746
|
-
},
|
|
83747
|
-
{
|
|
83748
|
-
type: "function",
|
|
83749
|
-
inputs: [
|
|
83750
|
-
{ name: "distributor_", internalType: "address", type: "address" }
|
|
83751
|
-
],
|
|
83752
|
-
name: "setDistributor",
|
|
83753
|
-
outputs: [],
|
|
83754
|
-
stateMutability: "nonpayable"
|
|
83755
|
-
},
|
|
83756
|
-
{
|
|
83757
|
-
type: "function",
|
|
83758
|
-
inputs: [
|
|
83759
|
-
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
83760
|
-
{ name: "period", internalType: "uint256", type: "uint256" }
|
|
83761
|
-
],
|
|
83762
|
-
name: "startFarming",
|
|
83763
|
-
outputs: [],
|
|
83764
|
-
stateMutability: "nonpayable"
|
|
83765
|
-
},
|
|
83766
|
-
{
|
|
83767
|
-
type: "function",
|
|
83768
|
-
inputs: [],
|
|
83769
|
-
name: "totalSupply",
|
|
83770
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
83771
|
-
stateMutability: "view"
|
|
83772
|
-
},
|
|
83773
|
-
{
|
|
83774
|
-
type: "function",
|
|
83775
|
-
inputs: [
|
|
83776
|
-
{ name: "to", internalType: "address", type: "address" },
|
|
83777
|
-
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
83778
|
-
],
|
|
83779
|
-
name: "transfer",
|
|
83780
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
83781
84165
|
stateMutability: "nonpayable"
|
|
83782
84166
|
},
|
|
83783
84167
|
{
|
|
83784
84168
|
type: "function",
|
|
83785
84169
|
inputs: [
|
|
83786
|
-
{ name: "
|
|
83787
|
-
{
|
|
83788
|
-
|
|
84170
|
+
{ name: "borrower", internalType: "address", type: "address" },
|
|
84171
|
+
{
|
|
84172
|
+
name: "priceUpdates",
|
|
84173
|
+
internalType: "struct PriceOnDemand[]",
|
|
84174
|
+
type: "tuple[]",
|
|
84175
|
+
components: [
|
|
84176
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84177
|
+
{ name: "callData", internalType: "bytes", type: "bytes" }
|
|
84178
|
+
]
|
|
84179
|
+
}
|
|
83789
84180
|
],
|
|
83790
|
-
name: "
|
|
83791
|
-
outputs: [
|
|
83792
|
-
stateMutability: "nonpayable"
|
|
83793
|
-
},
|
|
83794
|
-
{
|
|
83795
|
-
type: "function",
|
|
83796
|
-
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
83797
|
-
name: "withdraw",
|
|
83798
|
-
outputs: [],
|
|
83799
|
-
stateMutability: "nonpayable"
|
|
83800
|
-
},
|
|
83801
|
-
{
|
|
83802
|
-
type: "event",
|
|
83803
|
-
anonymous: false,
|
|
83804
|
-
inputs: [
|
|
84181
|
+
name: "getCreditAccountsByBorrower",
|
|
84182
|
+
outputs: [
|
|
83805
84183
|
{
|
|
83806
|
-
name: "
|
|
83807
|
-
internalType: "
|
|
83808
|
-
type: "
|
|
83809
|
-
|
|
84184
|
+
name: "",
|
|
84185
|
+
internalType: "struct CreditAccountData[]",
|
|
84186
|
+
type: "tuple[]",
|
|
84187
|
+
components: [
|
|
84188
|
+
{ name: "isSuccessful", internalType: "bool", type: "bool" },
|
|
84189
|
+
{
|
|
84190
|
+
name: "priceFeedsNeeded",
|
|
84191
|
+
internalType: "address[]",
|
|
84192
|
+
type: "address[]"
|
|
84193
|
+
},
|
|
84194
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84195
|
+
{ name: "borrower", internalType: "address", type: "address" },
|
|
84196
|
+
{ name: "creditManager", internalType: "address", type: "address" },
|
|
84197
|
+
{ name: "cmName", internalType: "string", type: "string" },
|
|
84198
|
+
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
84199
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84200
|
+
{ name: "debt", internalType: "uint256", type: "uint256" },
|
|
84201
|
+
{
|
|
84202
|
+
name: "cumulativeIndexLastUpdate",
|
|
84203
|
+
internalType: "uint256",
|
|
84204
|
+
type: "uint256"
|
|
84205
|
+
},
|
|
84206
|
+
{
|
|
84207
|
+
name: "cumulativeQuotaInterest",
|
|
84208
|
+
internalType: "uint128",
|
|
84209
|
+
type: "uint128"
|
|
84210
|
+
},
|
|
84211
|
+
{ name: "accruedInterest", internalType: "uint256", type: "uint256" },
|
|
84212
|
+
{ name: "accruedFees", internalType: "uint256", type: "uint256" },
|
|
84213
|
+
{ name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
|
|
84214
|
+
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
84215
|
+
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
84216
|
+
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
84217
|
+
{
|
|
84218
|
+
name: "enabledTokensMask",
|
|
84219
|
+
internalType: "uint256",
|
|
84220
|
+
type: "uint256"
|
|
84221
|
+
},
|
|
84222
|
+
{ name: "healthFactor", internalType: "uint256", type: "uint256" },
|
|
84223
|
+
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
84224
|
+
{
|
|
84225
|
+
name: "aggregatedBorrowRate",
|
|
84226
|
+
internalType: "uint256",
|
|
84227
|
+
type: "uint256"
|
|
84228
|
+
},
|
|
84229
|
+
{
|
|
84230
|
+
name: "balances",
|
|
84231
|
+
internalType: "struct TokenBalance[]",
|
|
84232
|
+
type: "tuple[]",
|
|
84233
|
+
components: [
|
|
84234
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84235
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
84236
|
+
{ name: "isForbidden", internalType: "bool", type: "bool" },
|
|
84237
|
+
{ name: "isEnabled", internalType: "bool", type: "bool" },
|
|
84238
|
+
{ name: "isQuoted", internalType: "bool", type: "bool" },
|
|
84239
|
+
{ name: "quota", internalType: "uint256", type: "uint256" },
|
|
84240
|
+
{ name: "quotaRate", internalType: "uint16", type: "uint16" },
|
|
84241
|
+
{
|
|
84242
|
+
name: "quotaCumulativeIndexLU",
|
|
84243
|
+
internalType: "uint256",
|
|
84244
|
+
type: "uint256"
|
|
84245
|
+
}
|
|
84246
|
+
]
|
|
84247
|
+
},
|
|
84248
|
+
{ name: "since", internalType: "uint64", type: "uint64" },
|
|
84249
|
+
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
84250
|
+
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
84251
|
+
{ name: "activeBots", internalType: "address[]", type: "address[]" }
|
|
84252
|
+
]
|
|
84253
|
+
}
|
|
84254
|
+
],
|
|
84255
|
+
stateMutability: "nonpayable"
|
|
84256
|
+
},
|
|
84257
|
+
{
|
|
84258
|
+
type: "function",
|
|
84259
|
+
inputs: [
|
|
84260
|
+
{ name: "creditManager", internalType: "address", type: "address" },
|
|
84261
|
+
{
|
|
84262
|
+
name: "priceUpdates",
|
|
84263
|
+
internalType: "struct PriceOnDemand[]",
|
|
84264
|
+
type: "tuple[]",
|
|
84265
|
+
components: [
|
|
84266
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84267
|
+
{ name: "callData", internalType: "bytes", type: "bytes" }
|
|
84268
|
+
]
|
|
84269
|
+
}
|
|
84270
|
+
],
|
|
84271
|
+
name: "getCreditAccountsByCreditManager",
|
|
84272
|
+
outputs: [
|
|
84273
|
+
{
|
|
84274
|
+
name: "",
|
|
84275
|
+
internalType: "struct CreditAccountData[]",
|
|
84276
|
+
type: "tuple[]",
|
|
84277
|
+
components: [
|
|
84278
|
+
{ name: "isSuccessful", internalType: "bool", type: "bool" },
|
|
84279
|
+
{
|
|
84280
|
+
name: "priceFeedsNeeded",
|
|
84281
|
+
internalType: "address[]",
|
|
84282
|
+
type: "address[]"
|
|
84283
|
+
},
|
|
84284
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84285
|
+
{ name: "borrower", internalType: "address", type: "address" },
|
|
84286
|
+
{ name: "creditManager", internalType: "address", type: "address" },
|
|
84287
|
+
{ name: "cmName", internalType: "string", type: "string" },
|
|
84288
|
+
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
84289
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84290
|
+
{ name: "debt", internalType: "uint256", type: "uint256" },
|
|
84291
|
+
{
|
|
84292
|
+
name: "cumulativeIndexLastUpdate",
|
|
84293
|
+
internalType: "uint256",
|
|
84294
|
+
type: "uint256"
|
|
84295
|
+
},
|
|
84296
|
+
{
|
|
84297
|
+
name: "cumulativeQuotaInterest",
|
|
84298
|
+
internalType: "uint128",
|
|
84299
|
+
type: "uint128"
|
|
84300
|
+
},
|
|
84301
|
+
{ name: "accruedInterest", internalType: "uint256", type: "uint256" },
|
|
84302
|
+
{ name: "accruedFees", internalType: "uint256", type: "uint256" },
|
|
84303
|
+
{ name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
|
|
84304
|
+
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
84305
|
+
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
84306
|
+
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
84307
|
+
{
|
|
84308
|
+
name: "enabledTokensMask",
|
|
84309
|
+
internalType: "uint256",
|
|
84310
|
+
type: "uint256"
|
|
84311
|
+
},
|
|
84312
|
+
{ name: "healthFactor", internalType: "uint256", type: "uint256" },
|
|
84313
|
+
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
84314
|
+
{
|
|
84315
|
+
name: "aggregatedBorrowRate",
|
|
84316
|
+
internalType: "uint256",
|
|
84317
|
+
type: "uint256"
|
|
84318
|
+
},
|
|
84319
|
+
{
|
|
84320
|
+
name: "balances",
|
|
84321
|
+
internalType: "struct TokenBalance[]",
|
|
84322
|
+
type: "tuple[]",
|
|
84323
|
+
components: [
|
|
84324
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84325
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
84326
|
+
{ name: "isForbidden", internalType: "bool", type: "bool" },
|
|
84327
|
+
{ name: "isEnabled", internalType: "bool", type: "bool" },
|
|
84328
|
+
{ name: "isQuoted", internalType: "bool", type: "bool" },
|
|
84329
|
+
{ name: "quota", internalType: "uint256", type: "uint256" },
|
|
84330
|
+
{ name: "quotaRate", internalType: "uint16", type: "uint16" },
|
|
84331
|
+
{
|
|
84332
|
+
name: "quotaCumulativeIndexLU",
|
|
84333
|
+
internalType: "uint256",
|
|
84334
|
+
type: "uint256"
|
|
84335
|
+
}
|
|
84336
|
+
]
|
|
84337
|
+
},
|
|
84338
|
+
{ name: "since", internalType: "uint64", type: "uint64" },
|
|
84339
|
+
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
84340
|
+
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
84341
|
+
{ name: "activeBots", internalType: "address[]", type: "address[]" }
|
|
84342
|
+
]
|
|
84343
|
+
}
|
|
84344
|
+
],
|
|
84345
|
+
stateMutability: "nonpayable"
|
|
84346
|
+
},
|
|
84347
|
+
{
|
|
84348
|
+
type: "function",
|
|
84349
|
+
inputs: [
|
|
84350
|
+
{ name: "creditManager", internalType: "address", type: "address" }
|
|
84351
|
+
],
|
|
84352
|
+
name: "getCreditManagerData",
|
|
84353
|
+
outputs: [
|
|
84354
|
+
{
|
|
84355
|
+
name: "",
|
|
84356
|
+
internalType: "struct CreditManagerData",
|
|
84357
|
+
type: "tuple",
|
|
84358
|
+
components: [
|
|
84359
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84360
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
84361
|
+
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
84362
|
+
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
84363
|
+
{
|
|
84364
|
+
name: "creditConfigurator",
|
|
84365
|
+
internalType: "address",
|
|
84366
|
+
type: "address"
|
|
84367
|
+
},
|
|
84368
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84369
|
+
{ name: "pool", internalType: "address", type: "address" },
|
|
84370
|
+
{ name: "totalDebt", internalType: "uint256", type: "uint256" },
|
|
84371
|
+
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
84372
|
+
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
84373
|
+
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
84374
|
+
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
84375
|
+
{
|
|
84376
|
+
name: "availableToBorrow",
|
|
84377
|
+
internalType: "uint256",
|
|
84378
|
+
type: "uint256"
|
|
84379
|
+
},
|
|
84380
|
+
{
|
|
84381
|
+
name: "collateralTokens",
|
|
84382
|
+
internalType: "address[]",
|
|
84383
|
+
type: "address[]"
|
|
84384
|
+
},
|
|
84385
|
+
{
|
|
84386
|
+
name: "adapters",
|
|
84387
|
+
internalType: "struct ContractAdapter[]",
|
|
84388
|
+
type: "tuple[]",
|
|
84389
|
+
components: [
|
|
84390
|
+
{
|
|
84391
|
+
name: "targetContract",
|
|
84392
|
+
internalType: "address",
|
|
84393
|
+
type: "address"
|
|
84394
|
+
},
|
|
84395
|
+
{ name: "adapter", internalType: "address", type: "address" }
|
|
84396
|
+
]
|
|
84397
|
+
},
|
|
84398
|
+
{
|
|
84399
|
+
name: "liquidationThresholds",
|
|
84400
|
+
internalType: "uint256[]",
|
|
84401
|
+
type: "uint256[]"
|
|
84402
|
+
},
|
|
84403
|
+
{ name: "isDegenMode", internalType: "bool", type: "bool" },
|
|
84404
|
+
{ name: "degenNFT", internalType: "address", type: "address" },
|
|
84405
|
+
{
|
|
84406
|
+
name: "forbiddenTokenMask",
|
|
84407
|
+
internalType: "uint256",
|
|
84408
|
+
type: "uint256"
|
|
84409
|
+
},
|
|
84410
|
+
{
|
|
84411
|
+
name: "maxEnabledTokensLength",
|
|
84412
|
+
internalType: "uint8",
|
|
84413
|
+
type: "uint8"
|
|
84414
|
+
},
|
|
84415
|
+
{ name: "feeInterest", internalType: "uint16", type: "uint16" },
|
|
84416
|
+
{ name: "feeLiquidation", internalType: "uint16", type: "uint16" },
|
|
84417
|
+
{
|
|
84418
|
+
name: "liquidationDiscount",
|
|
84419
|
+
internalType: "uint16",
|
|
84420
|
+
type: "uint16"
|
|
84421
|
+
},
|
|
84422
|
+
{
|
|
84423
|
+
name: "feeLiquidationExpired",
|
|
84424
|
+
internalType: "uint16",
|
|
84425
|
+
type: "uint16"
|
|
84426
|
+
},
|
|
84427
|
+
{
|
|
84428
|
+
name: "liquidationDiscountExpired",
|
|
84429
|
+
internalType: "uint16",
|
|
84430
|
+
type: "uint16"
|
|
84431
|
+
},
|
|
84432
|
+
{
|
|
84433
|
+
name: "quotas",
|
|
84434
|
+
internalType: "struct QuotaInfo[]",
|
|
84435
|
+
type: "tuple[]",
|
|
84436
|
+
components: [
|
|
84437
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84438
|
+
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
84439
|
+
{
|
|
84440
|
+
name: "quotaIncreaseFee",
|
|
84441
|
+
internalType: "uint16",
|
|
84442
|
+
type: "uint16"
|
|
84443
|
+
},
|
|
84444
|
+
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
84445
|
+
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
84446
|
+
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
84447
|
+
]
|
|
84448
|
+
},
|
|
84449
|
+
{
|
|
84450
|
+
name: "lirm",
|
|
84451
|
+
internalType: "struct LinearModel",
|
|
84452
|
+
type: "tuple",
|
|
84453
|
+
components: [
|
|
84454
|
+
{
|
|
84455
|
+
name: "interestModel",
|
|
84456
|
+
internalType: "address",
|
|
84457
|
+
type: "address"
|
|
84458
|
+
},
|
|
84459
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
84460
|
+
{ name: "U_1", internalType: "uint16", type: "uint16" },
|
|
84461
|
+
{ name: "U_2", internalType: "uint16", type: "uint16" },
|
|
84462
|
+
{ name: "R_base", internalType: "uint16", type: "uint16" },
|
|
84463
|
+
{ name: "R_slope1", internalType: "uint16", type: "uint16" },
|
|
84464
|
+
{ name: "R_slope2", internalType: "uint16", type: "uint16" },
|
|
84465
|
+
{ name: "R_slope3", internalType: "uint16", type: "uint16" },
|
|
84466
|
+
{
|
|
84467
|
+
name: "isBorrowingMoreU2Forbidden",
|
|
84468
|
+
internalType: "bool",
|
|
84469
|
+
type: "bool"
|
|
84470
|
+
}
|
|
84471
|
+
]
|
|
84472
|
+
},
|
|
84473
|
+
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
84474
|
+
]
|
|
84475
|
+
}
|
|
84476
|
+
],
|
|
84477
|
+
stateMutability: "view"
|
|
84478
|
+
},
|
|
84479
|
+
{
|
|
84480
|
+
type: "function",
|
|
84481
|
+
inputs: [],
|
|
84482
|
+
name: "getCreditManagersV3List",
|
|
84483
|
+
outputs: [
|
|
84484
|
+
{
|
|
84485
|
+
name: "",
|
|
84486
|
+
internalType: "struct CreditManagerData[]",
|
|
84487
|
+
type: "tuple[]",
|
|
84488
|
+
components: [
|
|
84489
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84490
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
84491
|
+
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
84492
|
+
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
84493
|
+
{
|
|
84494
|
+
name: "creditConfigurator",
|
|
84495
|
+
internalType: "address",
|
|
84496
|
+
type: "address"
|
|
84497
|
+
},
|
|
84498
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84499
|
+
{ name: "pool", internalType: "address", type: "address" },
|
|
84500
|
+
{ name: "totalDebt", internalType: "uint256", type: "uint256" },
|
|
84501
|
+
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
84502
|
+
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
84503
|
+
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
84504
|
+
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
84505
|
+
{
|
|
84506
|
+
name: "availableToBorrow",
|
|
84507
|
+
internalType: "uint256",
|
|
84508
|
+
type: "uint256"
|
|
84509
|
+
},
|
|
84510
|
+
{
|
|
84511
|
+
name: "collateralTokens",
|
|
84512
|
+
internalType: "address[]",
|
|
84513
|
+
type: "address[]"
|
|
84514
|
+
},
|
|
84515
|
+
{
|
|
84516
|
+
name: "adapters",
|
|
84517
|
+
internalType: "struct ContractAdapter[]",
|
|
84518
|
+
type: "tuple[]",
|
|
84519
|
+
components: [
|
|
84520
|
+
{
|
|
84521
|
+
name: "targetContract",
|
|
84522
|
+
internalType: "address",
|
|
84523
|
+
type: "address"
|
|
84524
|
+
},
|
|
84525
|
+
{ name: "adapter", internalType: "address", type: "address" }
|
|
84526
|
+
]
|
|
84527
|
+
},
|
|
84528
|
+
{
|
|
84529
|
+
name: "liquidationThresholds",
|
|
84530
|
+
internalType: "uint256[]",
|
|
84531
|
+
type: "uint256[]"
|
|
84532
|
+
},
|
|
84533
|
+
{ name: "isDegenMode", internalType: "bool", type: "bool" },
|
|
84534
|
+
{ name: "degenNFT", internalType: "address", type: "address" },
|
|
84535
|
+
{
|
|
84536
|
+
name: "forbiddenTokenMask",
|
|
84537
|
+
internalType: "uint256",
|
|
84538
|
+
type: "uint256"
|
|
84539
|
+
},
|
|
84540
|
+
{
|
|
84541
|
+
name: "maxEnabledTokensLength",
|
|
84542
|
+
internalType: "uint8",
|
|
84543
|
+
type: "uint8"
|
|
84544
|
+
},
|
|
84545
|
+
{ name: "feeInterest", internalType: "uint16", type: "uint16" },
|
|
84546
|
+
{ name: "feeLiquidation", internalType: "uint16", type: "uint16" },
|
|
84547
|
+
{
|
|
84548
|
+
name: "liquidationDiscount",
|
|
84549
|
+
internalType: "uint16",
|
|
84550
|
+
type: "uint16"
|
|
84551
|
+
},
|
|
84552
|
+
{
|
|
84553
|
+
name: "feeLiquidationExpired",
|
|
84554
|
+
internalType: "uint16",
|
|
84555
|
+
type: "uint16"
|
|
84556
|
+
},
|
|
84557
|
+
{
|
|
84558
|
+
name: "liquidationDiscountExpired",
|
|
84559
|
+
internalType: "uint16",
|
|
84560
|
+
type: "uint16"
|
|
84561
|
+
},
|
|
84562
|
+
{
|
|
84563
|
+
name: "quotas",
|
|
84564
|
+
internalType: "struct QuotaInfo[]",
|
|
84565
|
+
type: "tuple[]",
|
|
84566
|
+
components: [
|
|
84567
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84568
|
+
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
84569
|
+
{
|
|
84570
|
+
name: "quotaIncreaseFee",
|
|
84571
|
+
internalType: "uint16",
|
|
84572
|
+
type: "uint16"
|
|
84573
|
+
},
|
|
84574
|
+
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
84575
|
+
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
84576
|
+
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
84577
|
+
]
|
|
84578
|
+
},
|
|
84579
|
+
{
|
|
84580
|
+
name: "lirm",
|
|
84581
|
+
internalType: "struct LinearModel",
|
|
84582
|
+
type: "tuple",
|
|
84583
|
+
components: [
|
|
84584
|
+
{
|
|
84585
|
+
name: "interestModel",
|
|
84586
|
+
internalType: "address",
|
|
84587
|
+
type: "address"
|
|
84588
|
+
},
|
|
84589
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
84590
|
+
{ name: "U_1", internalType: "uint16", type: "uint16" },
|
|
84591
|
+
{ name: "U_2", internalType: "uint16", type: "uint16" },
|
|
84592
|
+
{ name: "R_base", internalType: "uint16", type: "uint16" },
|
|
84593
|
+
{ name: "R_slope1", internalType: "uint16", type: "uint16" },
|
|
84594
|
+
{ name: "R_slope2", internalType: "uint16", type: "uint16" },
|
|
84595
|
+
{ name: "R_slope3", internalType: "uint16", type: "uint16" },
|
|
84596
|
+
{
|
|
84597
|
+
name: "isBorrowingMoreU2Forbidden",
|
|
84598
|
+
internalType: "bool",
|
|
84599
|
+
type: "bool"
|
|
84600
|
+
}
|
|
84601
|
+
]
|
|
84602
|
+
},
|
|
84603
|
+
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
84604
|
+
]
|
|
84605
|
+
}
|
|
84606
|
+
],
|
|
84607
|
+
stateMutability: "view"
|
|
84608
|
+
},
|
|
84609
|
+
{
|
|
84610
|
+
type: "function",
|
|
84611
|
+
inputs: [{ name: "staker", internalType: "address", type: "address" }],
|
|
84612
|
+
name: "getGaugesV3Data",
|
|
84613
|
+
outputs: [
|
|
84614
|
+
{
|
|
84615
|
+
name: "result",
|
|
84616
|
+
internalType: "struct GaugeInfo[]",
|
|
84617
|
+
type: "tuple[]",
|
|
84618
|
+
components: [
|
|
84619
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84620
|
+
{ name: "pool", internalType: "address", type: "address" },
|
|
84621
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
84622
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
84623
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84624
|
+
{ name: "currentEpoch", internalType: "uint16", type: "uint16" },
|
|
84625
|
+
{ name: "epochFrozen", internalType: "bool", type: "bool" },
|
|
84626
|
+
{
|
|
84627
|
+
name: "quotaParams",
|
|
84628
|
+
internalType: "struct GaugeQuotaParams[]",
|
|
84629
|
+
type: "tuple[]",
|
|
84630
|
+
components: [
|
|
84631
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84632
|
+
{ name: "minRate", internalType: "uint16", type: "uint16" },
|
|
84633
|
+
{ name: "maxRate", internalType: "uint16", type: "uint16" },
|
|
84634
|
+
{
|
|
84635
|
+
name: "totalVotesLpSide",
|
|
84636
|
+
internalType: "uint96",
|
|
84637
|
+
type: "uint96"
|
|
84638
|
+
},
|
|
84639
|
+
{
|
|
84640
|
+
name: "totalVotesCaSide",
|
|
84641
|
+
internalType: "uint96",
|
|
84642
|
+
type: "uint96"
|
|
84643
|
+
},
|
|
84644
|
+
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
84645
|
+
{
|
|
84646
|
+
name: "quotaIncreaseFee",
|
|
84647
|
+
internalType: "uint16",
|
|
84648
|
+
type: "uint16"
|
|
84649
|
+
},
|
|
84650
|
+
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
84651
|
+
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
84652
|
+
{ name: "isActive", internalType: "bool", type: "bool" },
|
|
84653
|
+
{
|
|
84654
|
+
name: "stakerVotesLpSide",
|
|
84655
|
+
internalType: "uint96",
|
|
84656
|
+
type: "uint96"
|
|
84657
|
+
},
|
|
84658
|
+
{
|
|
84659
|
+
name: "stakerVotesCaSide",
|
|
84660
|
+
internalType: "uint96",
|
|
84661
|
+
type: "uint96"
|
|
84662
|
+
}
|
|
84663
|
+
]
|
|
84664
|
+
}
|
|
84665
|
+
]
|
|
84666
|
+
}
|
|
84667
|
+
],
|
|
84668
|
+
stateMutability: "view"
|
|
84669
|
+
},
|
|
84670
|
+
{
|
|
84671
|
+
type: "function",
|
|
84672
|
+
inputs: [
|
|
84673
|
+
{
|
|
84674
|
+
name: "priceUpdates",
|
|
84675
|
+
internalType: "struct PriceOnDemand[]",
|
|
84676
|
+
type: "tuple[]",
|
|
84677
|
+
components: [
|
|
84678
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84679
|
+
{ name: "callData", internalType: "bytes", type: "bytes" }
|
|
84680
|
+
]
|
|
84681
|
+
}
|
|
84682
|
+
],
|
|
84683
|
+
name: "getLiquidatableCreditAccounts",
|
|
84684
|
+
outputs: [
|
|
84685
|
+
{
|
|
84686
|
+
name: "result",
|
|
84687
|
+
internalType: "struct CreditAccountData[]",
|
|
84688
|
+
type: "tuple[]",
|
|
84689
|
+
components: [
|
|
84690
|
+
{ name: "isSuccessful", internalType: "bool", type: "bool" },
|
|
84691
|
+
{
|
|
84692
|
+
name: "priceFeedsNeeded",
|
|
84693
|
+
internalType: "address[]",
|
|
84694
|
+
type: "address[]"
|
|
84695
|
+
},
|
|
84696
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84697
|
+
{ name: "borrower", internalType: "address", type: "address" },
|
|
84698
|
+
{ name: "creditManager", internalType: "address", type: "address" },
|
|
84699
|
+
{ name: "cmName", internalType: "string", type: "string" },
|
|
84700
|
+
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
84701
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84702
|
+
{ name: "debt", internalType: "uint256", type: "uint256" },
|
|
84703
|
+
{
|
|
84704
|
+
name: "cumulativeIndexLastUpdate",
|
|
84705
|
+
internalType: "uint256",
|
|
84706
|
+
type: "uint256"
|
|
84707
|
+
},
|
|
84708
|
+
{
|
|
84709
|
+
name: "cumulativeQuotaInterest",
|
|
84710
|
+
internalType: "uint128",
|
|
84711
|
+
type: "uint128"
|
|
84712
|
+
},
|
|
84713
|
+
{ name: "accruedInterest", internalType: "uint256", type: "uint256" },
|
|
84714
|
+
{ name: "accruedFees", internalType: "uint256", type: "uint256" },
|
|
84715
|
+
{ name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
|
|
84716
|
+
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
84717
|
+
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
84718
|
+
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
84719
|
+
{
|
|
84720
|
+
name: "enabledTokensMask",
|
|
84721
|
+
internalType: "uint256",
|
|
84722
|
+
type: "uint256"
|
|
84723
|
+
},
|
|
84724
|
+
{ name: "healthFactor", internalType: "uint256", type: "uint256" },
|
|
84725
|
+
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
84726
|
+
{
|
|
84727
|
+
name: "aggregatedBorrowRate",
|
|
84728
|
+
internalType: "uint256",
|
|
84729
|
+
type: "uint256"
|
|
84730
|
+
},
|
|
84731
|
+
{
|
|
84732
|
+
name: "balances",
|
|
84733
|
+
internalType: "struct TokenBalance[]",
|
|
84734
|
+
type: "tuple[]",
|
|
84735
|
+
components: [
|
|
84736
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84737
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
84738
|
+
{ name: "isForbidden", internalType: "bool", type: "bool" },
|
|
84739
|
+
{ name: "isEnabled", internalType: "bool", type: "bool" },
|
|
84740
|
+
{ name: "isQuoted", internalType: "bool", type: "bool" },
|
|
84741
|
+
{ name: "quota", internalType: "uint256", type: "uint256" },
|
|
84742
|
+
{ name: "quotaRate", internalType: "uint16", type: "uint16" },
|
|
84743
|
+
{
|
|
84744
|
+
name: "quotaCumulativeIndexLU",
|
|
84745
|
+
internalType: "uint256",
|
|
84746
|
+
type: "uint256"
|
|
84747
|
+
}
|
|
84748
|
+
]
|
|
84749
|
+
},
|
|
84750
|
+
{ name: "since", internalType: "uint64", type: "uint64" },
|
|
84751
|
+
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
84752
|
+
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
84753
|
+
{ name: "activeBots", internalType: "address[]", type: "address[]" }
|
|
84754
|
+
]
|
|
84755
|
+
}
|
|
84756
|
+
],
|
|
84757
|
+
stateMutability: "nonpayable"
|
|
84758
|
+
},
|
|
84759
|
+
{
|
|
84760
|
+
type: "function",
|
|
84761
|
+
inputs: [{ name: "_pool", internalType: "address", type: "address" }],
|
|
84762
|
+
name: "getPoolData",
|
|
84763
|
+
outputs: [
|
|
84764
|
+
{
|
|
84765
|
+
name: "",
|
|
84766
|
+
internalType: "struct PoolData",
|
|
84767
|
+
type: "tuple",
|
|
84768
|
+
components: [
|
|
84769
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84770
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84771
|
+
{ name: "dieselToken", internalType: "address", type: "address" },
|
|
84772
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
84773
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
84774
|
+
{
|
|
84775
|
+
name: "baseInterestIndex",
|
|
84776
|
+
internalType: "uint256",
|
|
84777
|
+
type: "uint256"
|
|
84778
|
+
},
|
|
84779
|
+
{
|
|
84780
|
+
name: "availableLiquidity",
|
|
84781
|
+
internalType: "uint256",
|
|
84782
|
+
type: "uint256"
|
|
84783
|
+
},
|
|
84784
|
+
{
|
|
84785
|
+
name: "expectedLiquidity",
|
|
84786
|
+
internalType: "uint256",
|
|
84787
|
+
type: "uint256"
|
|
84788
|
+
},
|
|
84789
|
+
{ name: "totalBorrowed", internalType: "uint256", type: "uint256" },
|
|
84790
|
+
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
84791
|
+
{
|
|
84792
|
+
name: "creditManagerDebtParams",
|
|
84793
|
+
internalType: "struct CreditManagerDebtParams[]",
|
|
84794
|
+
type: "tuple[]",
|
|
84795
|
+
components: [
|
|
84796
|
+
{
|
|
84797
|
+
name: "creditManager",
|
|
84798
|
+
internalType: "address",
|
|
84799
|
+
type: "address"
|
|
84800
|
+
},
|
|
84801
|
+
{ name: "borrowed", internalType: "uint256", type: "uint256" },
|
|
84802
|
+
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
84803
|
+
{
|
|
84804
|
+
name: "availableToBorrow",
|
|
84805
|
+
internalType: "uint256",
|
|
84806
|
+
type: "uint256"
|
|
84807
|
+
}
|
|
84808
|
+
]
|
|
84809
|
+
},
|
|
84810
|
+
{ name: "totalAssets", internalType: "uint256", type: "uint256" },
|
|
84811
|
+
{ name: "totalSupply", internalType: "uint256", type: "uint256" },
|
|
84812
|
+
{ name: "supplyRate", internalType: "uint256", type: "uint256" },
|
|
84813
|
+
{
|
|
84814
|
+
name: "baseInterestRate",
|
|
84815
|
+
internalType: "uint256",
|
|
84816
|
+
type: "uint256"
|
|
84817
|
+
},
|
|
84818
|
+
{ name: "dieselRate_RAY", internalType: "uint256", type: "uint256" },
|
|
84819
|
+
{ name: "withdrawFee", internalType: "uint256", type: "uint256" },
|
|
84820
|
+
{
|
|
84821
|
+
name: "lastBaseInterestUpdate",
|
|
84822
|
+
internalType: "uint256",
|
|
84823
|
+
type: "uint256"
|
|
84824
|
+
},
|
|
84825
|
+
{
|
|
84826
|
+
name: "baseInterestIndexLU",
|
|
84827
|
+
internalType: "uint256",
|
|
84828
|
+
type: "uint256"
|
|
84829
|
+
},
|
|
84830
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
84831
|
+
{ name: "poolQuotaKeeper", internalType: "address", type: "address" },
|
|
84832
|
+
{ name: "gauge", internalType: "address", type: "address" },
|
|
84833
|
+
{
|
|
84834
|
+
name: "quotas",
|
|
84835
|
+
internalType: "struct QuotaInfo[]",
|
|
84836
|
+
type: "tuple[]",
|
|
84837
|
+
components: [
|
|
84838
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84839
|
+
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
84840
|
+
{
|
|
84841
|
+
name: "quotaIncreaseFee",
|
|
84842
|
+
internalType: "uint16",
|
|
84843
|
+
type: "uint16"
|
|
84844
|
+
},
|
|
84845
|
+
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
84846
|
+
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
84847
|
+
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
84848
|
+
]
|
|
84849
|
+
},
|
|
84850
|
+
{
|
|
84851
|
+
name: "zappers",
|
|
84852
|
+
internalType: "struct ZapperInfo[]",
|
|
84853
|
+
type: "tuple[]",
|
|
84854
|
+
components: [
|
|
84855
|
+
{ name: "zapper", internalType: "address", type: "address" },
|
|
84856
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
84857
|
+
{ name: "tokenOut", internalType: "address", type: "address" }
|
|
84858
|
+
]
|
|
84859
|
+
},
|
|
84860
|
+
{
|
|
84861
|
+
name: "lirm",
|
|
84862
|
+
internalType: "struct LinearModel",
|
|
84863
|
+
type: "tuple",
|
|
84864
|
+
components: [
|
|
84865
|
+
{
|
|
84866
|
+
name: "interestModel",
|
|
84867
|
+
internalType: "address",
|
|
84868
|
+
type: "address"
|
|
84869
|
+
},
|
|
84870
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
84871
|
+
{ name: "U_1", internalType: "uint16", type: "uint16" },
|
|
84872
|
+
{ name: "U_2", internalType: "uint16", type: "uint16" },
|
|
84873
|
+
{ name: "R_base", internalType: "uint16", type: "uint16" },
|
|
84874
|
+
{ name: "R_slope1", internalType: "uint16", type: "uint16" },
|
|
84875
|
+
{ name: "R_slope2", internalType: "uint16", type: "uint16" },
|
|
84876
|
+
{ name: "R_slope3", internalType: "uint16", type: "uint16" },
|
|
84877
|
+
{
|
|
84878
|
+
name: "isBorrowingMoreU2Forbidden",
|
|
84879
|
+
internalType: "bool",
|
|
84880
|
+
type: "bool"
|
|
84881
|
+
}
|
|
84882
|
+
]
|
|
84883
|
+
},
|
|
84884
|
+
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
84885
|
+
]
|
|
84886
|
+
}
|
|
84887
|
+
],
|
|
84888
|
+
stateMutability: "view"
|
|
84889
|
+
},
|
|
84890
|
+
{
|
|
84891
|
+
type: "function",
|
|
84892
|
+
inputs: [],
|
|
84893
|
+
name: "getPoolsV3List",
|
|
84894
|
+
outputs: [
|
|
84895
|
+
{
|
|
84896
|
+
name: "",
|
|
84897
|
+
internalType: "struct PoolData[]",
|
|
84898
|
+
type: "tuple[]",
|
|
84899
|
+
components: [
|
|
84900
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
84901
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
84902
|
+
{ name: "dieselToken", internalType: "address", type: "address" },
|
|
84903
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
84904
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
84905
|
+
{
|
|
84906
|
+
name: "baseInterestIndex",
|
|
84907
|
+
internalType: "uint256",
|
|
84908
|
+
type: "uint256"
|
|
84909
|
+
},
|
|
84910
|
+
{
|
|
84911
|
+
name: "availableLiquidity",
|
|
84912
|
+
internalType: "uint256",
|
|
84913
|
+
type: "uint256"
|
|
84914
|
+
},
|
|
84915
|
+
{
|
|
84916
|
+
name: "expectedLiquidity",
|
|
84917
|
+
internalType: "uint256",
|
|
84918
|
+
type: "uint256"
|
|
84919
|
+
},
|
|
84920
|
+
{ name: "totalBorrowed", internalType: "uint256", type: "uint256" },
|
|
84921
|
+
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
84922
|
+
{
|
|
84923
|
+
name: "creditManagerDebtParams",
|
|
84924
|
+
internalType: "struct CreditManagerDebtParams[]",
|
|
84925
|
+
type: "tuple[]",
|
|
84926
|
+
components: [
|
|
84927
|
+
{
|
|
84928
|
+
name: "creditManager",
|
|
84929
|
+
internalType: "address",
|
|
84930
|
+
type: "address"
|
|
84931
|
+
},
|
|
84932
|
+
{ name: "borrowed", internalType: "uint256", type: "uint256" },
|
|
84933
|
+
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
84934
|
+
{
|
|
84935
|
+
name: "availableToBorrow",
|
|
84936
|
+
internalType: "uint256",
|
|
84937
|
+
type: "uint256"
|
|
84938
|
+
}
|
|
84939
|
+
]
|
|
84940
|
+
},
|
|
84941
|
+
{ name: "totalAssets", internalType: "uint256", type: "uint256" },
|
|
84942
|
+
{ name: "totalSupply", internalType: "uint256", type: "uint256" },
|
|
84943
|
+
{ name: "supplyRate", internalType: "uint256", type: "uint256" },
|
|
84944
|
+
{
|
|
84945
|
+
name: "baseInterestRate",
|
|
84946
|
+
internalType: "uint256",
|
|
84947
|
+
type: "uint256"
|
|
84948
|
+
},
|
|
84949
|
+
{ name: "dieselRate_RAY", internalType: "uint256", type: "uint256" },
|
|
84950
|
+
{ name: "withdrawFee", internalType: "uint256", type: "uint256" },
|
|
84951
|
+
{
|
|
84952
|
+
name: "lastBaseInterestUpdate",
|
|
84953
|
+
internalType: "uint256",
|
|
84954
|
+
type: "uint256"
|
|
84955
|
+
},
|
|
84956
|
+
{
|
|
84957
|
+
name: "baseInterestIndexLU",
|
|
84958
|
+
internalType: "uint256",
|
|
84959
|
+
type: "uint256"
|
|
84960
|
+
},
|
|
84961
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
84962
|
+
{ name: "poolQuotaKeeper", internalType: "address", type: "address" },
|
|
84963
|
+
{ name: "gauge", internalType: "address", type: "address" },
|
|
84964
|
+
{
|
|
84965
|
+
name: "quotas",
|
|
84966
|
+
internalType: "struct QuotaInfo[]",
|
|
84967
|
+
type: "tuple[]",
|
|
84968
|
+
components: [
|
|
84969
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
84970
|
+
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
84971
|
+
{
|
|
84972
|
+
name: "quotaIncreaseFee",
|
|
84973
|
+
internalType: "uint16",
|
|
84974
|
+
type: "uint16"
|
|
84975
|
+
},
|
|
84976
|
+
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
84977
|
+
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
84978
|
+
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
84979
|
+
]
|
|
84980
|
+
},
|
|
84981
|
+
{
|
|
84982
|
+
name: "zappers",
|
|
84983
|
+
internalType: "struct ZapperInfo[]",
|
|
84984
|
+
type: "tuple[]",
|
|
84985
|
+
components: [
|
|
84986
|
+
{ name: "zapper", internalType: "address", type: "address" },
|
|
84987
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
84988
|
+
{ name: "tokenOut", internalType: "address", type: "address" }
|
|
84989
|
+
]
|
|
84990
|
+
},
|
|
84991
|
+
{
|
|
84992
|
+
name: "lirm",
|
|
84993
|
+
internalType: "struct LinearModel",
|
|
84994
|
+
type: "tuple",
|
|
84995
|
+
components: [
|
|
84996
|
+
{
|
|
84997
|
+
name: "interestModel",
|
|
84998
|
+
internalType: "address",
|
|
84999
|
+
type: "address"
|
|
85000
|
+
},
|
|
85001
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
85002
|
+
{ name: "U_1", internalType: "uint16", type: "uint16" },
|
|
85003
|
+
{ name: "U_2", internalType: "uint16", type: "uint16" },
|
|
85004
|
+
{ name: "R_base", internalType: "uint16", type: "uint16" },
|
|
85005
|
+
{ name: "R_slope1", internalType: "uint16", type: "uint16" },
|
|
85006
|
+
{ name: "R_slope2", internalType: "uint16", type: "uint16" },
|
|
85007
|
+
{ name: "R_slope3", internalType: "uint16", type: "uint16" },
|
|
85008
|
+
{
|
|
85009
|
+
name: "isBorrowingMoreU2Forbidden",
|
|
85010
|
+
internalType: "bool",
|
|
85011
|
+
type: "bool"
|
|
85012
|
+
}
|
|
85013
|
+
]
|
|
85014
|
+
},
|
|
85015
|
+
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
85016
|
+
]
|
|
85017
|
+
}
|
|
85018
|
+
],
|
|
85019
|
+
stateMutability: "view"
|
|
85020
|
+
},
|
|
85021
|
+
{
|
|
85022
|
+
type: "function",
|
|
85023
|
+
inputs: [],
|
|
85024
|
+
name: "version",
|
|
85025
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
85026
|
+
stateMutability: "view"
|
|
85027
|
+
}
|
|
85028
|
+
];
|
|
85029
|
+
|
|
85030
|
+
// src/sdk/sdk-legacy/types/IDegenDistributor.ts
|
|
85031
|
+
var iDegenDistributorAbi = [
|
|
85032
|
+
{
|
|
85033
|
+
type: "function",
|
|
85034
|
+
inputs: [
|
|
85035
|
+
{ name: "index", internalType: "uint256", type: "uint256" },
|
|
85036
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
85037
|
+
{ name: "totalAmount", internalType: "uint256", type: "uint256" },
|
|
85038
|
+
{ name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" }
|
|
85039
|
+
],
|
|
85040
|
+
name: "claim",
|
|
85041
|
+
outputs: [],
|
|
85042
|
+
stateMutability: "nonpayable"
|
|
85043
|
+
},
|
|
85044
|
+
{
|
|
85045
|
+
type: "function",
|
|
85046
|
+
inputs: [{ name: "user", internalType: "address", type: "address" }],
|
|
85047
|
+
name: "claimed",
|
|
85048
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
85049
|
+
stateMutability: "view"
|
|
85050
|
+
},
|
|
85051
|
+
{
|
|
85052
|
+
type: "function",
|
|
85053
|
+
inputs: [],
|
|
85054
|
+
name: "merkleRoot",
|
|
85055
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
85056
|
+
stateMutability: "view"
|
|
85057
|
+
},
|
|
85058
|
+
{
|
|
85059
|
+
type: "event",
|
|
85060
|
+
anonymous: false,
|
|
85061
|
+
inputs: [
|
|
85062
|
+
{
|
|
85063
|
+
name: "account",
|
|
85064
|
+
internalType: "address",
|
|
85065
|
+
type: "address",
|
|
85066
|
+
indexed: true
|
|
85067
|
+
},
|
|
85068
|
+
{
|
|
85069
|
+
name: "amount",
|
|
85070
|
+
internalType: "uint256",
|
|
85071
|
+
type: "uint256",
|
|
85072
|
+
indexed: false
|
|
85073
|
+
}
|
|
85074
|
+
],
|
|
85075
|
+
name: "Claimed"
|
|
85076
|
+
},
|
|
85077
|
+
{
|
|
85078
|
+
type: "event",
|
|
85079
|
+
anonymous: false,
|
|
85080
|
+
inputs: [
|
|
85081
|
+
{
|
|
85082
|
+
name: "oldRoot",
|
|
85083
|
+
internalType: "bytes32",
|
|
85084
|
+
type: "bytes32",
|
|
85085
|
+
indexed: false
|
|
85086
|
+
},
|
|
85087
|
+
{
|
|
85088
|
+
name: "newRoot",
|
|
85089
|
+
internalType: "bytes32",
|
|
85090
|
+
type: "bytes32",
|
|
85091
|
+
indexed: true
|
|
85092
|
+
}
|
|
85093
|
+
],
|
|
85094
|
+
name: "RootUpdated"
|
|
85095
|
+
}
|
|
85096
|
+
];
|
|
85097
|
+
|
|
85098
|
+
// src/sdk/sdk-legacy/types/IERC20Permit.ts
|
|
85099
|
+
var ierc20PermitAbi = [
|
|
85100
|
+
{
|
|
85101
|
+
type: "function",
|
|
85102
|
+
inputs: [],
|
|
85103
|
+
name: "DOMAIN_SEPARATOR",
|
|
85104
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
85105
|
+
stateMutability: "view"
|
|
85106
|
+
},
|
|
85107
|
+
{
|
|
85108
|
+
type: "function",
|
|
85109
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
85110
|
+
name: "nonces",
|
|
85111
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
85112
|
+
stateMutability: "view"
|
|
85113
|
+
},
|
|
85114
|
+
{
|
|
85115
|
+
type: "function",
|
|
85116
|
+
inputs: [
|
|
85117
|
+
{ name: "owner", internalType: "address", type: "address" },
|
|
85118
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
85119
|
+
{ name: "value", internalType: "uint256", type: "uint256" },
|
|
85120
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
85121
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
85122
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
85123
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
85124
|
+
],
|
|
85125
|
+
name: "permit",
|
|
85126
|
+
outputs: [],
|
|
85127
|
+
stateMutability: "nonpayable"
|
|
85128
|
+
}
|
|
85129
|
+
];
|
|
85130
|
+
|
|
85131
|
+
// src/sdk/sdk-legacy/types/IERC20ZapperDeposits.ts
|
|
85132
|
+
var ierc20ZapperDepositsAbi = [
|
|
85133
|
+
{
|
|
85134
|
+
type: "function",
|
|
85135
|
+
inputs: [
|
|
85136
|
+
{ name: "tokenInAmount", internalType: "uint256", type: "uint256" },
|
|
85137
|
+
{ name: "receiver", internalType: "address", type: "address" }
|
|
85138
|
+
],
|
|
85139
|
+
name: "deposit",
|
|
85140
|
+
outputs: [
|
|
85141
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
|
|
85142
|
+
],
|
|
85143
|
+
stateMutability: "nonpayable"
|
|
85144
|
+
},
|
|
85145
|
+
{
|
|
85146
|
+
type: "function",
|
|
85147
|
+
inputs: [
|
|
85148
|
+
{ name: "tokenInAmount", internalType: "uint256", type: "uint256" },
|
|
85149
|
+
{ name: "receiver", internalType: "address", type: "address" },
|
|
85150
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
85151
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
85152
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
85153
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
85154
|
+
],
|
|
85155
|
+
name: "depositWithPermit",
|
|
85156
|
+
outputs: [
|
|
85157
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
|
|
85158
|
+
],
|
|
85159
|
+
stateMutability: "nonpayable"
|
|
85160
|
+
},
|
|
85161
|
+
{
|
|
85162
|
+
type: "function",
|
|
85163
|
+
inputs: [
|
|
85164
|
+
{ name: "tokenInAmount", internalType: "uint256", type: "uint256" },
|
|
85165
|
+
{ name: "receiver", internalType: "address", type: "address" },
|
|
85166
|
+
{ name: "nonce", internalType: "uint256", type: "uint256" },
|
|
85167
|
+
{ name: "expiry", internalType: "uint256", type: "uint256" },
|
|
85168
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
85169
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
85170
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
85171
|
+
],
|
|
85172
|
+
name: "depositWithPermitAllowed",
|
|
85173
|
+
outputs: [
|
|
85174
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
|
|
85175
|
+
],
|
|
85176
|
+
stateMutability: "nonpayable"
|
|
85177
|
+
},
|
|
85178
|
+
{
|
|
85179
|
+
type: "function",
|
|
85180
|
+
inputs: [
|
|
85181
|
+
{ name: "tokenInAmount", internalType: "uint256", type: "uint256" },
|
|
85182
|
+
{ name: "receiver", internalType: "address", type: "address" },
|
|
85183
|
+
{ name: "referralCode", internalType: "uint256", type: "uint256" }
|
|
85184
|
+
],
|
|
85185
|
+
name: "depositWithReferral",
|
|
85186
|
+
outputs: [
|
|
85187
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
|
|
85188
|
+
],
|
|
85189
|
+
stateMutability: "nonpayable"
|
|
85190
|
+
},
|
|
85191
|
+
{
|
|
85192
|
+
type: "function",
|
|
85193
|
+
inputs: [
|
|
85194
|
+
{ name: "tokenInAmount", internalType: "uint256", type: "uint256" },
|
|
85195
|
+
{ name: "receiver", internalType: "address", type: "address" },
|
|
85196
|
+
{ name: "referralCode", internalType: "uint256", type: "uint256" },
|
|
85197
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
85198
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
85199
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
85200
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
85201
|
+
],
|
|
85202
|
+
name: "depositWithReferralAndPermit",
|
|
85203
|
+
outputs: [
|
|
85204
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
|
|
85205
|
+
],
|
|
85206
|
+
stateMutability: "nonpayable"
|
|
85207
|
+
},
|
|
85208
|
+
{
|
|
85209
|
+
type: "function",
|
|
85210
|
+
inputs: [
|
|
85211
|
+
{ name: "tokenInAmount", internalType: "uint256", type: "uint256" },
|
|
85212
|
+
{ name: "receiver", internalType: "address", type: "address" },
|
|
85213
|
+
{ name: "referralCode", internalType: "uint256", type: "uint256" },
|
|
85214
|
+
{ name: "nonce", internalType: "uint256", type: "uint256" },
|
|
85215
|
+
{ name: "expiry", internalType: "uint256", type: "uint256" },
|
|
85216
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
85217
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
85218
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
85219
|
+
],
|
|
85220
|
+
name: "depositWithReferralAndPermitAllowed",
|
|
85221
|
+
outputs: [
|
|
85222
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
|
|
85223
|
+
],
|
|
85224
|
+
stateMutability: "nonpayable"
|
|
85225
|
+
}
|
|
85226
|
+
];
|
|
85227
|
+
|
|
85228
|
+
// src/sdk/sdk-legacy/types/IETHZapperDeposits.ts
|
|
85229
|
+
var iethZapperDepositsAbi = [
|
|
85230
|
+
{
|
|
85231
|
+
type: "function",
|
|
85232
|
+
inputs: [{ name: "receiver", internalType: "address", type: "address" }],
|
|
85233
|
+
name: "deposit",
|
|
85234
|
+
outputs: [
|
|
85235
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
|
|
85236
|
+
],
|
|
85237
|
+
stateMutability: "payable"
|
|
85238
|
+
},
|
|
85239
|
+
{
|
|
85240
|
+
type: "function",
|
|
85241
|
+
inputs: [
|
|
85242
|
+
{ name: "receiver", internalType: "address", type: "address" },
|
|
85243
|
+
{ name: "referralCode", internalType: "uint256", type: "uint256" }
|
|
85244
|
+
],
|
|
85245
|
+
name: "depositWithReferral",
|
|
85246
|
+
outputs: [
|
|
85247
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
|
|
85248
|
+
],
|
|
85249
|
+
stateMutability: "payable"
|
|
85250
|
+
}
|
|
85251
|
+
];
|
|
85252
|
+
|
|
85253
|
+
// src/sdk/sdk-legacy/types/IFarmingPool.ts
|
|
85254
|
+
var iFarmingPoolAbi = [
|
|
85255
|
+
{
|
|
85256
|
+
type: "function",
|
|
85257
|
+
inputs: [
|
|
85258
|
+
{ name: "owner", internalType: "address", type: "address" },
|
|
85259
|
+
{ name: "spender", internalType: "address", type: "address" }
|
|
85260
|
+
],
|
|
85261
|
+
name: "allowance",
|
|
85262
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
85263
|
+
stateMutability: "view"
|
|
85264
|
+
},
|
|
85265
|
+
{
|
|
85266
|
+
type: "function",
|
|
85267
|
+
inputs: [
|
|
85268
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
85269
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
85270
|
+
],
|
|
85271
|
+
name: "approve",
|
|
85272
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
85273
|
+
stateMutability: "nonpayable"
|
|
85274
|
+
},
|
|
85275
|
+
{
|
|
85276
|
+
type: "function",
|
|
85277
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
85278
|
+
name: "balanceOf",
|
|
85279
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
85280
|
+
stateMutability: "view"
|
|
85281
|
+
},
|
|
85282
|
+
{
|
|
85283
|
+
type: "function",
|
|
85284
|
+
inputs: [],
|
|
85285
|
+
name: "claim",
|
|
85286
|
+
outputs: [],
|
|
85287
|
+
stateMutability: "nonpayable"
|
|
85288
|
+
},
|
|
85289
|
+
{
|
|
85290
|
+
type: "function",
|
|
85291
|
+
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
85292
|
+
name: "deposit",
|
|
85293
|
+
outputs: [],
|
|
85294
|
+
stateMutability: "nonpayable"
|
|
85295
|
+
},
|
|
85296
|
+
{
|
|
85297
|
+
type: "function",
|
|
85298
|
+
inputs: [],
|
|
85299
|
+
name: "distributor",
|
|
85300
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
85301
|
+
stateMutability: "view"
|
|
85302
|
+
},
|
|
85303
|
+
{
|
|
85304
|
+
type: "function",
|
|
85305
|
+
inputs: [],
|
|
85306
|
+
name: "exit",
|
|
85307
|
+
outputs: [],
|
|
85308
|
+
stateMutability: "nonpayable"
|
|
85309
|
+
},
|
|
85310
|
+
{
|
|
85311
|
+
type: "function",
|
|
85312
|
+
inputs: [],
|
|
85313
|
+
name: "farmInfo",
|
|
85314
|
+
outputs: [
|
|
85315
|
+
{
|
|
85316
|
+
name: "",
|
|
85317
|
+
internalType: "struct FarmAccounting.Info",
|
|
85318
|
+
type: "tuple",
|
|
85319
|
+
components: [
|
|
85320
|
+
{ name: "finished", internalType: "uint40", type: "uint40" },
|
|
85321
|
+
{ name: "duration", internalType: "uint32", type: "uint32" },
|
|
85322
|
+
{ name: "reward", internalType: "uint184", type: "uint184" },
|
|
85323
|
+
{ name: "balance", internalType: "uint256", type: "uint256" }
|
|
85324
|
+
]
|
|
85325
|
+
}
|
|
85326
|
+
],
|
|
85327
|
+
stateMutability: "view"
|
|
85328
|
+
},
|
|
85329
|
+
{
|
|
85330
|
+
type: "function",
|
|
85331
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
85332
|
+
name: "farmed",
|
|
85333
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
85334
|
+
stateMutability: "view"
|
|
85335
|
+
},
|
|
85336
|
+
{
|
|
85337
|
+
type: "function",
|
|
85338
|
+
inputs: [
|
|
85339
|
+
{ name: "token", internalType: "contract IERC20", type: "address" },
|
|
85340
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
85341
|
+
],
|
|
85342
|
+
name: "rescueFunds",
|
|
85343
|
+
outputs: [],
|
|
85344
|
+
stateMutability: "nonpayable"
|
|
85345
|
+
},
|
|
85346
|
+
{
|
|
85347
|
+
type: "function",
|
|
85348
|
+
inputs: [
|
|
85349
|
+
{ name: "distributor_", internalType: "address", type: "address" }
|
|
85350
|
+
],
|
|
85351
|
+
name: "setDistributor",
|
|
85352
|
+
outputs: [],
|
|
85353
|
+
stateMutability: "nonpayable"
|
|
85354
|
+
},
|
|
85355
|
+
{
|
|
85356
|
+
type: "function",
|
|
85357
|
+
inputs: [
|
|
85358
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
85359
|
+
{ name: "period", internalType: "uint256", type: "uint256" }
|
|
85360
|
+
],
|
|
85361
|
+
name: "startFarming",
|
|
85362
|
+
outputs: [],
|
|
85363
|
+
stateMutability: "nonpayable"
|
|
85364
|
+
},
|
|
85365
|
+
{
|
|
85366
|
+
type: "function",
|
|
85367
|
+
inputs: [],
|
|
85368
|
+
name: "totalSupply",
|
|
85369
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
85370
|
+
stateMutability: "view"
|
|
85371
|
+
},
|
|
85372
|
+
{
|
|
85373
|
+
type: "function",
|
|
85374
|
+
inputs: [
|
|
85375
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
85376
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
85377
|
+
],
|
|
85378
|
+
name: "transfer",
|
|
85379
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
85380
|
+
stateMutability: "nonpayable"
|
|
85381
|
+
},
|
|
85382
|
+
{
|
|
85383
|
+
type: "function",
|
|
85384
|
+
inputs: [
|
|
85385
|
+
{ name: "from", internalType: "address", type: "address" },
|
|
85386
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
85387
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
85388
|
+
],
|
|
85389
|
+
name: "transferFrom",
|
|
85390
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
85391
|
+
stateMutability: "nonpayable"
|
|
85392
|
+
},
|
|
85393
|
+
{
|
|
85394
|
+
type: "function",
|
|
85395
|
+
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
85396
|
+
name: "withdraw",
|
|
85397
|
+
outputs: [],
|
|
85398
|
+
stateMutability: "nonpayable"
|
|
85399
|
+
},
|
|
85400
|
+
{
|
|
85401
|
+
type: "event",
|
|
85402
|
+
anonymous: false,
|
|
85403
|
+
inputs: [
|
|
85404
|
+
{
|
|
85405
|
+
name: "owner",
|
|
85406
|
+
internalType: "address",
|
|
85407
|
+
type: "address",
|
|
85408
|
+
indexed: true
|
|
83810
85409
|
},
|
|
83811
85410
|
{
|
|
83812
85411
|
name: "spender",
|
|
@@ -84139,138 +85738,32 @@ var iMulticall3Abi = [
|
|
|
84139
85738
|
}
|
|
84140
85739
|
];
|
|
84141
85740
|
|
|
84142
|
-
// src/sdk/sdk-legacy/types/
|
|
84143
|
-
var
|
|
84144
|
-
{
|
|
84145
|
-
type: "function",
|
|
84146
|
-
inputs: [],
|
|
84147
|
-
name: "_gearboxAdapterType",
|
|
84148
|
-
outputs: [{ name: "", internalType: "enum AdapterType", type: "uint8" }],
|
|
84149
|
-
stateMutability: "view"
|
|
84150
|
-
},
|
|
84151
|
-
{
|
|
84152
|
-
type: "function",
|
|
84153
|
-
inputs: [],
|
|
84154
|
-
name: "_gearboxAdapterVersion",
|
|
84155
|
-
outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
|
|
84156
|
-
stateMutability: "view"
|
|
84157
|
-
},
|
|
84158
|
-
{
|
|
84159
|
-
type: "function",
|
|
84160
|
-
inputs: [],
|
|
84161
|
-
name: "addressProvider",
|
|
84162
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
84163
|
-
stateMutability: "view"
|
|
84164
|
-
},
|
|
84165
|
-
{
|
|
84166
|
-
type: "function",
|
|
84167
|
-
inputs: [],
|
|
84168
|
-
name: "creditManager",
|
|
84169
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
84170
|
-
stateMutability: "view"
|
|
84171
|
-
},
|
|
84172
|
-
{
|
|
84173
|
-
type: "function",
|
|
84174
|
-
inputs: [],
|
|
84175
|
-
name: "getReward",
|
|
84176
|
-
outputs: [
|
|
84177
|
-
{ name: "tokensToEnable", internalType: "uint256", type: "uint256" },
|
|
84178
|
-
{ name: "tokensToDisable", internalType: "uint256", type: "uint256" }
|
|
84179
|
-
],
|
|
84180
|
-
stateMutability: "nonpayable"
|
|
84181
|
-
},
|
|
84182
|
-
{
|
|
84183
|
-
type: "function",
|
|
84184
|
-
inputs: [],
|
|
84185
|
-
name: "rewardsToken",
|
|
84186
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
84187
|
-
stateMutability: "view"
|
|
84188
|
-
},
|
|
84189
|
-
{
|
|
84190
|
-
type: "function",
|
|
84191
|
-
inputs: [],
|
|
84192
|
-
name: "rewardsTokenMask",
|
|
84193
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
84194
|
-
stateMutability: "view"
|
|
84195
|
-
},
|
|
84196
|
-
{
|
|
84197
|
-
type: "function",
|
|
84198
|
-
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
84199
|
-
name: "stake",
|
|
84200
|
-
outputs: [
|
|
84201
|
-
{ name: "tokensToEnable", internalType: "uint256", type: "uint256" },
|
|
84202
|
-
{ name: "tokensToDisable", internalType: "uint256", type: "uint256" }
|
|
84203
|
-
],
|
|
84204
|
-
stateMutability: "nonpayable"
|
|
84205
|
-
},
|
|
85741
|
+
// src/sdk/sdk-legacy/types/IOffchainOracle.ts
|
|
85742
|
+
var iOffchainOracleAbi = [
|
|
84206
85743
|
{
|
|
84207
85744
|
type: "function",
|
|
84208
85745
|
inputs: [
|
|
84209
|
-
{ name: "
|
|
85746
|
+
{ name: "srcToken", internalType: "address", type: "address" },
|
|
85747
|
+
{ name: "dstToken", internalType: "address", type: "address" },
|
|
85748
|
+
{ name: "useWrappers", internalType: "bool", type: "bool" }
|
|
84210
85749
|
],
|
|
84211
|
-
name: "
|
|
85750
|
+
name: "getRate",
|
|
84212
85751
|
outputs: [
|
|
84213
|
-
{ name: "
|
|
84214
|
-
{ name: "tokensToDisable", internalType: "uint256", type: "uint256" }
|
|
85752
|
+
{ name: "weightedRate", internalType: "uint256", type: "uint256" }
|
|
84215
85753
|
],
|
|
84216
|
-
stateMutability: "nonpayable"
|
|
84217
|
-
},
|
|
84218
|
-
{
|
|
84219
|
-
type: "function",
|
|
84220
|
-
inputs: [],
|
|
84221
|
-
name: "stakedPhantomToken",
|
|
84222
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
84223
|
-
stateMutability: "view"
|
|
84224
|
-
},
|
|
84225
|
-
{
|
|
84226
|
-
type: "function",
|
|
84227
|
-
inputs: [],
|
|
84228
|
-
name: "stakedPhantomTokenMask",
|
|
84229
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
84230
|
-
stateMutability: "view"
|
|
84231
|
-
},
|
|
84232
|
-
{
|
|
84233
|
-
type: "function",
|
|
84234
|
-
inputs: [],
|
|
84235
|
-
name: "stakingToken",
|
|
84236
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
84237
|
-
stateMutability: "view"
|
|
84238
|
-
},
|
|
84239
|
-
{
|
|
84240
|
-
type: "function",
|
|
84241
|
-
inputs: [],
|
|
84242
|
-
name: "stakingTokenMask",
|
|
84243
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
84244
|
-
stateMutability: "view"
|
|
84245
|
-
},
|
|
84246
|
-
{
|
|
84247
|
-
type: "function",
|
|
84248
|
-
inputs: [],
|
|
84249
|
-
name: "targetContract",
|
|
84250
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
84251
85754
|
stateMutability: "view"
|
|
84252
85755
|
},
|
|
84253
|
-
{
|
|
84254
|
-
type: "function",
|
|
84255
|
-
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
84256
|
-
name: "withdraw",
|
|
84257
|
-
outputs: [
|
|
84258
|
-
{ name: "tokensToEnable", internalType: "uint256", type: "uint256" },
|
|
84259
|
-
{ name: "tokensToDisable", internalType: "uint256", type: "uint256" }
|
|
84260
|
-
],
|
|
84261
|
-
stateMutability: "nonpayable"
|
|
84262
|
-
},
|
|
84263
85756
|
{
|
|
84264
85757
|
type: "function",
|
|
84265
85758
|
inputs: [
|
|
84266
|
-
{ name: "
|
|
85759
|
+
{ name: "srcToken", internalType: "address", type: "address" },
|
|
85760
|
+
{ name: "useSrcWrappers", internalType: "bool", type: "bool" }
|
|
84267
85761
|
],
|
|
84268
|
-
name: "
|
|
85762
|
+
name: "getRateToEth",
|
|
84269
85763
|
outputs: [
|
|
84270
|
-
{ name: "
|
|
84271
|
-
{ name: "tokensToDisable", internalType: "uint256", type: "uint256" }
|
|
85764
|
+
{ name: "weightedRate", internalType: "uint256", type: "uint256" }
|
|
84272
85765
|
],
|
|
84273
|
-
stateMutability: "
|
|
85766
|
+
stateMutability: "view"
|
|
84274
85767
|
}
|
|
84275
85768
|
];
|
|
84276
85769
|
|
|
@@ -85086,7 +86579,7 @@ var StakingRewards = class _StakingRewards {
|
|
|
85086
86579
|
acc.push([
|
|
85087
86580
|
{
|
|
85088
86581
|
address: a.adapter,
|
|
85089
|
-
abi:
|
|
86582
|
+
abi: iStakingRewardsAdapterAbi,
|
|
85090
86583
|
functionName: "rewardsToken",
|
|
85091
86584
|
args: []
|
|
85092
86585
|
}
|
|
@@ -85343,10 +86836,10 @@ var TxAddLiquidity = class extends EVMTx {
|
|
|
85343
86836
|
this.poolName = opts.poolName;
|
|
85344
86837
|
}
|
|
85345
86838
|
toString() {
|
|
85346
|
-
const { title, decimals = 18 } = this.token;
|
|
86839
|
+
const { title, decimals: decimals2 = 18 } = this.token;
|
|
85347
86840
|
return `${this.poolName}: Deposit ${formatBN(
|
|
85348
86841
|
this.amount,
|
|
85349
|
-
|
|
86842
|
+
decimals2
|
|
85350
86843
|
)} ${title}`;
|
|
85351
86844
|
}
|
|
85352
86845
|
serialize() {
|
|
@@ -85367,10 +86860,10 @@ var TxRemoveLiquidity = class extends EVMTx {
|
|
|
85367
86860
|
this.poolName = opts.poolName;
|
|
85368
86861
|
}
|
|
85369
86862
|
toString() {
|
|
85370
|
-
const { title, decimals = 18 } = this.token;
|
|
86863
|
+
const { title, decimals: decimals2 = 18 } = this.token;
|
|
85371
86864
|
return `${this.poolName}: Withdraw ${formatBN(
|
|
85372
86865
|
this.amount,
|
|
85373
|
-
|
|
86866
|
+
decimals2
|
|
85374
86867
|
)} ${title}`;
|
|
85375
86868
|
}
|
|
85376
86869
|
serialize() {
|
|
@@ -85601,8 +87094,8 @@ var TxClaimRewards = class extends EVMTx {
|
|
|
85601
87094
|
}
|
|
85602
87095
|
toString() {
|
|
85603
87096
|
const rewardsString = this.rewards.length <= 2 ? this.rewards.map(({ token, balance }) => {
|
|
85604
|
-
const { title, decimals = 18 } = token;
|
|
85605
|
-
return `${formatBN(balance,
|
|
87097
|
+
const { title, decimals: decimals2 = 18 } = token;
|
|
87098
|
+
return `${formatBN(balance, decimals2)} ${title}`;
|
|
85606
87099
|
}).join(", ") : this.rewards.map(({ token }) => {
|
|
85607
87100
|
const { title } = token;
|
|
85608
87101
|
return title;
|
|
@@ -85791,10 +87284,10 @@ var TxWithdrawCollateral = class extends EVMTx {
|
|
|
85791
87284
|
this.creditManagerName = opts.creditManagerName;
|
|
85792
87285
|
}
|
|
85793
87286
|
toString() {
|
|
85794
|
-
const { title: symbol, decimals } = this.token;
|
|
87287
|
+
const { title: symbol, decimals: decimals2 } = this.token;
|
|
85795
87288
|
return `Credit Account ${this.creditManagerName}: withdrawn ${formatBN(
|
|
85796
87289
|
this.amount,
|
|
85797
|
-
|
|
87290
|
+
decimals2 || 18
|
|
85798
87291
|
)} ${symbol}`;
|
|
85799
87292
|
}
|
|
85800
87293
|
serialize() {
|
|
@@ -86491,8 +87984,8 @@ var GearboxRewardsExtraApy = class {
|
|
|
86491
87984
|
(sum, r) => r.effective_balance + sum,
|
|
86492
87985
|
0
|
|
86493
87986
|
);
|
|
86494
|
-
const { decimals = 18 } = tokensList[token] || {};
|
|
86495
|
-
return { token, balance: toBN(String(balance),
|
|
87987
|
+
const { decimals: decimals2 = 18 } = tokensList[token] || {};
|
|
87988
|
+
return { token, balance: toBN(String(balance), decimals2) };
|
|
86496
87989
|
}
|
|
86497
87990
|
static getPointsByPool({
|
|
86498
87991
|
totalTokenBalances,
|
|
@@ -86529,8 +88022,8 @@ var GearboxRewardsExtraApy = class {
|
|
|
86529
88022
|
static getPoolTokenPoints(tokenBalanceInPool, pool, tokensList, pointsInfo) {
|
|
86530
88023
|
if (!tokenBalanceInPool) return null;
|
|
86531
88024
|
if (pool.expectedLiquidity <= 0) return 0n;
|
|
86532
|
-
const { decimals = 18 } = tokensList[tokenBalanceInPool.token] || {};
|
|
86533
|
-
const targetFactor = 10n ** BigInt(
|
|
88025
|
+
const { decimals: decimals2 = 18 } = tokensList[tokenBalanceInPool.token] || {};
|
|
88026
|
+
const targetFactor = 10n ** BigInt(decimals2);
|
|
86534
88027
|
const { decimals: underlyingDecimals = 18 } = tokensList[pool.underlyingToken] || {};
|
|
86535
88028
|
const underlyingFactor = 10n ** BigInt(underlyingDecimals);
|
|
86536
88029
|
const defaultPoints = pointsInfo.amount * targetFactor / PERCENTAGE_FACTOR;
|
|
@@ -86630,6 +88123,7 @@ exports.AP_WETH_TOKEN = AP_WETH_TOKEN;
|
|
|
86630
88123
|
exports.AP_ZAPPER_REGISTER = AP_ZAPPER_REGISTER;
|
|
86631
88124
|
exports.AP_ZERO_PRICE_FEED = AP_ZERO_PRICE_FEED;
|
|
86632
88125
|
exports.AbstractPriceFeedContract = AbstractPriceFeedContract;
|
|
88126
|
+
exports.AdapterInterface = AdapterInterface;
|
|
86633
88127
|
exports.AddressLabeller = AddressLabeller;
|
|
86634
88128
|
exports.AddressMap = AddressMap;
|
|
86635
88129
|
exports.AddressProviderContractV3 = AddressProviderContractV3;
|
|
@@ -86645,6 +88139,7 @@ exports.BotListContract = BotListContract;
|
|
|
86645
88139
|
exports.BotPermissions = BotPermissions;
|
|
86646
88140
|
exports.BotsService = BotsService;
|
|
86647
88141
|
exports.BoundedPriceFeedContract = BoundedPriceFeedContract;
|
|
88142
|
+
exports.CAMELOT_V3_QUOTER = CAMELOT_V3_QUOTER;
|
|
86648
88143
|
exports.CREDIT_SESSION_ID_BY_STATUS = CREDIT_SESSION_ID_BY_STATUS;
|
|
86649
88144
|
exports.CREDIT_SESSION_STATUS_BY_ID = CREDIT_SESSION_STATUS_BY_ID;
|
|
86650
88145
|
exports.CamelotV3AdapterContract = CamelotV3AdapterContract;
|
|
@@ -86668,14 +88163,20 @@ exports.CreditSession = CreditSession;
|
|
|
86668
88163
|
exports.CreditSessionFiltered = CreditSessionFiltered;
|
|
86669
88164
|
exports.Curve2AssetsAdapterContract = Curve2AssetsAdapterContract;
|
|
86670
88165
|
exports.Curve3AssetsAdapterContract = Curve3AssetsAdapterContract;
|
|
88166
|
+
exports.Curve3CrvUnderlyingTokenIndex = Curve3CrvUnderlyingTokenIndex;
|
|
86671
88167
|
exports.Curve4AssetsAdapterContract = Curve4AssetsAdapterContract;
|
|
86672
88168
|
exports.CurveCryptoPriceFeedContract = CurveCryptoPriceFeedContract;
|
|
86673
88169
|
exports.CurveStablePriceFeedContract = CurveStablePriceFeedContract;
|
|
86674
88170
|
exports.CurveUSDPriceFeedContract = CurveUSDPriceFeedContract;
|
|
86675
88171
|
exports.CurveV1AdapterStETHContract = CurveV1AdapterStETHContract;
|
|
86676
88172
|
exports.CurveV1AdapterStableNGContract = CurveV1AdapterStableNGContract;
|
|
88173
|
+
exports.DUMB_ADDRESS = DUMB_ADDRESS;
|
|
88174
|
+
exports.DUMB_ADDRESS2 = DUMB_ADDRESS2;
|
|
88175
|
+
exports.DUMB_ADDRESS3 = DUMB_ADDRESS3;
|
|
88176
|
+
exports.DUMB_ADDRESS4 = DUMB_ADDRESS4;
|
|
86677
88177
|
exports.DaiUsdsAdapterContract = DaiUsdsAdapterContract;
|
|
86678
88178
|
exports.ERC4626AdapterContract = ERC4626AdapterContract;
|
|
88179
|
+
exports.ETH_ADDRESS = ETH_ADDRESS;
|
|
86679
88180
|
exports.EVMEvent = EVMEvent;
|
|
86680
88181
|
exports.EVMTx = EVMTx;
|
|
86681
88182
|
exports.Erc4626PriceFeedContract = Erc4626PriceFeedContract;
|
|
@@ -86695,6 +88196,7 @@ exports.LinearModelContract = LinearModelContract;
|
|
|
86695
88196
|
exports.MAX_INT = MAX_INT;
|
|
86696
88197
|
exports.MAX_UINT16 = MAX_UINT16;
|
|
86697
88198
|
exports.MAX_UINT256 = MAX_UINT256;
|
|
88199
|
+
exports.MELLOW_COLLECTOR = MELLOW_COLLECTOR;
|
|
86698
88200
|
exports.MIN_INT96 = MIN_INT96;
|
|
86699
88201
|
exports.MULTICALL_ADDRESS = MULTICALL_ADDRESS;
|
|
86700
88202
|
exports.MarketFactory = MarketFactory;
|
|
@@ -86703,12 +88205,17 @@ exports.MellowLRTPriceFeedContract = MellowLRTPriceFeedContract;
|
|
|
86703
88205
|
exports.MellowVaultAdapterContract = MellowVaultAdapterContract;
|
|
86704
88206
|
exports.NOT_DEPLOYED = NOT_DEPLOYED;
|
|
86705
88207
|
exports.NO_VERSION = NO_VERSION;
|
|
88208
|
+
exports.PANCAKESWAP_V3_QUOTER = PANCAKESWAP_V3_QUOTER;
|
|
88209
|
+
exports.PENDLE_ROUTER_STATIC_ARBITRUM = PENDLE_ROUTER_STATIC_ARBITRUM;
|
|
88210
|
+
exports.PENDLE_ROUTER_STATIC_MAINNET = PENDLE_ROUTER_STATIC_MAINNET;
|
|
88211
|
+
exports.PENDLE_ROUTER_STATIC_OPTIMISM = PENDLE_ROUTER_STATIC_OPTIMISM;
|
|
86706
88212
|
exports.PERCENTAGE_DECIMALS = PERCENTAGE_DECIMALS;
|
|
86707
88213
|
exports.PERCENTAGE_FACTOR = PERCENTAGE_FACTOR;
|
|
86708
88214
|
exports.PRICE_DECIMALS = PRICE_DECIMALS;
|
|
86709
88215
|
exports.PRICE_DECIMALS_POW = PRICE_DECIMALS_POW;
|
|
86710
88216
|
exports.PendleRouterAdapterContract = PendleRouterAdapterContract;
|
|
86711
88217
|
exports.PendleTWAPPTPriceFeed = PendleTWAPPTPriceFeed;
|
|
88218
|
+
exports.PhantomTokenType = PhantomTokenType;
|
|
86712
88219
|
exports.PoolContract = PoolContract;
|
|
86713
88220
|
exports.PoolData_Legacy = PoolData_Legacy;
|
|
86714
88221
|
exports.PoolFactory = PoolFactory;
|
|
@@ -86719,6 +88226,7 @@ exports.PriceFeedRegister = PriceFeedRegister;
|
|
|
86719
88226
|
exports.PriceOracleV300Contract = PriceOracleV300Contract;
|
|
86720
88227
|
exports.PriceOracleV310Contract = PriceOracleV310Contract;
|
|
86721
88228
|
exports.PriceUtils = PriceUtils;
|
|
88229
|
+
exports.Protocols = Protocols;
|
|
86722
88230
|
exports.Provider = Provider;
|
|
86723
88231
|
exports.RAMP_DURATION_BY_NETWORK = RAMP_DURATION_BY_NETWORK;
|
|
86724
88232
|
exports.RAY = RAY;
|
|
@@ -86735,6 +88243,7 @@ exports.TESTNET_CHAINS = TESTNET_CHAINS;
|
|
|
86735
88243
|
exports.TIMELOCK = TIMELOCK;
|
|
86736
88244
|
exports.TXSwap = TXSwap;
|
|
86737
88245
|
exports.TokenData = TokenData;
|
|
88246
|
+
exports.TokenType = TokenType;
|
|
86738
88247
|
exports.TokensMeta = TokensMeta;
|
|
86739
88248
|
exports.TxAddBot = TxAddBot;
|
|
86740
88249
|
exports.TxAddCollateral = TxAddCollateral;
|
|
@@ -86760,12 +88269,16 @@ exports.TxUnstakeDiesel = TxUnstakeDiesel;
|
|
|
86760
88269
|
exports.TxUpdateQuota = TxUpdateQuota;
|
|
86761
88270
|
exports.TxWithdrawCollateral = TxWithdrawCollateral;
|
|
86762
88271
|
exports.TypedObjectUtils = TypedObjectUtils;
|
|
88272
|
+
exports.UNISWAP_V3_QUOTER = UNISWAP_V3_QUOTER;
|
|
86763
88273
|
exports.URLApi = URLApi;
|
|
86764
88274
|
exports.USDC = USDC;
|
|
86765
88275
|
exports.UniswapV2AdapterContract = UniswapV2AdapterContract;
|
|
86766
88276
|
exports.UniswapV3AdapterContract = UniswapV3AdapterContract;
|
|
86767
88277
|
exports.UserCreditSessionsBuilder = UserCreditSessionsBuilder;
|
|
86768
88278
|
exports.UserPoolData = UserPoolData;
|
|
88279
|
+
exports.VELODROME_CL_QUOTER = VELODROME_CL_QUOTER;
|
|
88280
|
+
exports.VELODROME_V2_CL_FACTORY = VELODROME_V2_CL_FACTORY;
|
|
88281
|
+
exports.VELODROME_V2_DEFAULT_FACTORY = VELODROME_V2_DEFAULT_FACTORY;
|
|
86769
88282
|
exports.VelodromeV2RouterAdapterContract = VelodromeV2RouterAdapterContract;
|
|
86770
88283
|
exports.VotingContractStatus = VotingContractStatus;
|
|
86771
88284
|
exports.WAD = WAD;
|
|
@@ -86776,16 +88289,23 @@ exports.WstETHV1AdapterContract = WstETHV1AdapterContract;
|
|
|
86776
88289
|
exports.YearnPriceFeedContract = YearnPriceFeedContract;
|
|
86777
88290
|
exports.YearnV2RouterAdapterContract = YearnV2RouterAdapterContract;
|
|
86778
88291
|
exports.ZeroPriceFeedContract = ZeroPriceFeedContract;
|
|
88292
|
+
exports.aaveV2Tokens = aaveV2Tokens;
|
|
86779
88293
|
exports.aaveV2WrapperAbi = aaveV2WrapperAbi;
|
|
86780
88294
|
exports.accountFactoryV3Abi = accountFactoryV3Abi;
|
|
86781
88295
|
exports.aclAbi = aclAbi;
|
|
86782
88296
|
exports.aclNonReentrantTraitAbi = aclNonReentrantTraitAbi;
|
|
86783
88297
|
exports.assetsMap = assetsMap;
|
|
86784
88298
|
exports.auraDepositorAbi = auraDepositorAbi;
|
|
88299
|
+
exports.auraLpTokenByPid = auraLpTokenByPid;
|
|
88300
|
+
exports.auraLpTokens = auraLpTokens;
|
|
86785
88301
|
exports.auraPathResolverAbi = auraPathResolverAbi;
|
|
88302
|
+
exports.auraPoolByPid = auraPoolByPid;
|
|
88303
|
+
exports.auraStakedTokens = auraStakedTokens;
|
|
88304
|
+
exports.auraTokens = auraTokens;
|
|
86786
88305
|
exports.auraWithdrawerAbi = auraWithdrawerAbi;
|
|
86787
88306
|
exports.balancerLpDepositorAbi = balancerLpDepositorAbi;
|
|
86788
88307
|
exports.balancerLpPathResolverAbi = balancerLpPathResolverAbi;
|
|
88308
|
+
exports.balancerLpTokens = balancerLpTokens;
|
|
86789
88309
|
exports.balancerLpWithdrawerAbi = balancerLpWithdrawerAbi;
|
|
86790
88310
|
exports.balancerSwapperAbi = balancerSwapperAbi;
|
|
86791
88311
|
exports.balancerV2VaultAdapterAbi = balancerV2VaultAdapterAbi;
|
|
@@ -86805,11 +88325,22 @@ exports.chains = chains;
|
|
|
86805
88325
|
exports.childLogger = childLogger;
|
|
86806
88326
|
exports.closePathResolverAbi = closePathResolverAbi;
|
|
86807
88327
|
exports.compositePriceFeedAbi = compositePriceFeedAbi;
|
|
88328
|
+
exports.compoundV2Tokens = compoundV2Tokens;
|
|
86808
88329
|
exports.compoundV2WrapperAbi = compoundV2WrapperAbi;
|
|
88330
|
+
exports.connectors = connectors;
|
|
88331
|
+
exports.contractParams = contractParams;
|
|
88332
|
+
exports.contractsByAddress = contractsByAddress;
|
|
88333
|
+
exports.contractsByNetwork = contractsByNetwork;
|
|
86809
88334
|
exports.contractsRegisterAbi = contractsRegisterAbi;
|
|
86810
88335
|
exports.controllerTimelockV3Abi = controllerTimelockV3Abi;
|
|
86811
88336
|
exports.convexDepositorAbi = convexDepositorAbi;
|
|
88337
|
+
exports.convexL2StakedTokens = convexL2StakedTokens;
|
|
88338
|
+
exports.convexLpTokenByPid = convexLpTokenByPid;
|
|
88339
|
+
exports.convexLpTokens = convexLpTokens;
|
|
86812
88340
|
exports.convexPathResolverAbi = convexPathResolverAbi;
|
|
88341
|
+
exports.convexPoolByPid = convexPoolByPid;
|
|
88342
|
+
exports.convexStakedPhantomTokens = convexStakedPhantomTokens;
|
|
88343
|
+
exports.convexTokens = convexTokens;
|
|
86813
88344
|
exports.convexV1BaseRewardPoolAdapterAbi = convexV1BaseRewardPoolAdapterAbi;
|
|
86814
88345
|
exports.convexV1BoosterAdapterAbi = convexV1BoosterAdapterAbi;
|
|
86815
88346
|
exports.convexWithdrawerAbi = convexWithdrawerAbi;
|
|
@@ -86824,8 +88355,10 @@ exports.curveCryptoLpPriceFeedAbi = curveCryptoLpPriceFeedAbi;
|
|
|
86824
88355
|
exports.curveLpDepositorAbi = curveLpDepositorAbi;
|
|
86825
88356
|
exports.curveLpPathResolverAbi = curveLpPathResolverAbi;
|
|
86826
88357
|
exports.curveLpWithdrawerAbi = curveLpWithdrawerAbi;
|
|
88358
|
+
exports.curveMetaTokens = curveMetaTokens;
|
|
86827
88359
|
exports.curveStableLpPriceFeedAbi = curveStableLpPriceFeedAbi;
|
|
86828
88360
|
exports.curveSwapperAbi = curveSwapperAbi;
|
|
88361
|
+
exports.curveTokens = curveTokens;
|
|
86829
88362
|
exports.curveUsdPriceFeedAbi = curveUsdPriceFeedAbi;
|
|
86830
88363
|
exports.curveV1Adapter2AssetsAbi = curveV1Adapter2AssetsAbi;
|
|
86831
88364
|
exports.curveV1Adapter3AssetsAbi = curveV1Adapter3AssetsAbi;
|
|
@@ -86834,6 +88367,7 @@ exports.curveV1AdapterDepositAbi = curveV1AdapterDepositAbi;
|
|
|
86834
88367
|
exports.curveV1AdapterStEthAbi = curveV1AdapterStEthAbi;
|
|
86835
88368
|
exports.curveV1AdapterStableNgAbi = curveV1AdapterStableNgAbi;
|
|
86836
88369
|
exports.dataCompressorV3Abi = dataCompressorV3Abi;
|
|
88370
|
+
exports.decimals = decimals;
|
|
86837
88371
|
exports.degenDistributorV3Abi = degenDistributorV3Abi;
|
|
86838
88372
|
exports.degenNftv2Abi = degenNftv2Abi;
|
|
86839
88373
|
exports.detectChain = detectChain;
|
|
@@ -86843,9 +88377,11 @@ exports.erc4626AdapterAbi = erc4626AdapterAbi;
|
|
|
86843
88377
|
exports.erc4626DepositorAbi = erc4626DepositorAbi;
|
|
86844
88378
|
exports.erc4626PathResolverAbi = erc4626PathResolverAbi;
|
|
86845
88379
|
exports.erc4626PriceFeedAbi = erc4626PriceFeedAbi;
|
|
88380
|
+
exports.erc4626Tokens = erc4626Tokens;
|
|
86846
88381
|
exports.erc4626WithdrawerAbi = erc4626WithdrawerAbi;
|
|
86847
88382
|
exports.errorAbis = errorAbis;
|
|
86848
88383
|
exports.etherscanUrl = etherscanUrl;
|
|
88384
|
+
exports.extractTokenData = extractTokenData;
|
|
86849
88385
|
exports.faucetAbi = faucetAbi;
|
|
86850
88386
|
exports.filterDust = filterDust;
|
|
86851
88387
|
exports.fmtBinaryMask = fmtBinaryMask;
|
|
@@ -86859,24 +88395,33 @@ exports.formatNumberToString_ = formatNumberToString_;
|
|
|
86859
88395
|
exports.formatPercentage = formatPercentage;
|
|
86860
88396
|
exports.gaugeV3Abi = gaugeV3Abi;
|
|
86861
88397
|
exports.gearStakingV3Abi = gearStakingV3Abi;
|
|
88398
|
+
exports.gearTokens = gearTokens;
|
|
86862
88399
|
exports.getAddressProvider = getAddressProvider;
|
|
88400
|
+
exports.getConnectors = getConnectors;
|
|
86863
88401
|
exports.getCurveAPY = getCurveAPY;
|
|
86864
88402
|
exports.getCurveGearPool = getCurveGearPool;
|
|
88403
|
+
exports.getDecimals = getDecimals;
|
|
86865
88404
|
exports.getDefiLamaAPY = getDefiLamaAPY;
|
|
86866
88405
|
exports.getLidoAPY = getLidoAPY;
|
|
86867
88406
|
exports.getNetworkType = getNetworkType;
|
|
86868
88407
|
exports.getPendleAPY = getPendleAPY;
|
|
86869
88408
|
exports.getProtocolData = getProtocolData;
|
|
86870
88409
|
exports.getSkyAPY = getSkyAPY;
|
|
88410
|
+
exports.getTokenSymbol = getTokenSymbol;
|
|
88411
|
+
exports.getTokenSymbolOrETH = getTokenSymbolOrETH;
|
|
88412
|
+
exports.getTokenSymbolOrTicker = getTokenSymbolOrTicker;
|
|
86871
88413
|
exports.getYearnAPY = getYearnAPY;
|
|
86872
88414
|
exports.halfRAY = halfRAY;
|
|
86873
88415
|
exports.iAdapterAbi = iAdapterAbi;
|
|
86874
88416
|
exports.iAddressProviderV3Abi = iAddressProviderV3Abi;
|
|
86875
88417
|
exports.iAddressProviderV3_1Abi = iAddressProviderV3_1Abi;
|
|
88418
|
+
exports.iAirdropDistributorAbi = iAirdropDistributorAbi;
|
|
86876
88419
|
exports.iArbTokenAbi = iArbTokenAbi;
|
|
86877
88420
|
exports.iBalancerStablePoolAbi = iBalancerStablePoolAbi;
|
|
86878
88421
|
exports.iBalancerWeightedPoolAbi = iBalancerWeightedPoolAbi;
|
|
88422
|
+
exports.iBaseRewardPoolAbi = iBaseRewardPoolAbi;
|
|
86879
88423
|
exports.iCamelotV3QuoterAbi = iCamelotV3QuoterAbi;
|
|
88424
|
+
exports.iConvexTokenAbi = iConvexTokenAbi;
|
|
86880
88425
|
exports.iCreditAccountCompressorAbi = iCreditAccountCompressorAbi;
|
|
86881
88426
|
exports.iCreditConfiguratorV310Abi = iCreditConfiguratorV310Abi;
|
|
86882
88427
|
exports.iCreditFacadeV2Abi = iCreditFacadeV2Abi;
|
|
@@ -86892,15 +88437,21 @@ exports.iCreditFacadeV3MulticallAbi = iCreditFacadeV3MulticallAbi;
|
|
|
86892
88437
|
exports.iCreditManagerV310Abi = iCreditManagerV310Abi;
|
|
86893
88438
|
exports.iCurvePoolAbi = iCurvePoolAbi;
|
|
86894
88439
|
exports.iDaiUsdsAdapterAbi = iDaiUsdsAdapterAbi;
|
|
88440
|
+
exports.iDataCompressorV3Abi = iDataCompressorV3Abi;
|
|
88441
|
+
exports.iDegenDistributorAbi = iDegenDistributorAbi;
|
|
86895
88442
|
exports.iDegenNftv2Abi = iDegenNftv2Abi;
|
|
86896
88443
|
exports.iDegenNftv2EventsAbi = iDegenNftv2EventsAbi;
|
|
86897
88444
|
exports.iDegenNftv2ExceptionsAbi = iDegenNftv2ExceptionsAbi;
|
|
86898
88445
|
exports.iExceptionsAbi = iExceptionsAbi;
|
|
88446
|
+
exports.iFarmingPoolAbi = iFarmingPoolAbi;
|
|
88447
|
+
exports.iInterestRateModelAbi = iInterestRateModelAbi;
|
|
86899
88448
|
exports.iLegacyMintableErc20Abi = iLegacyMintableErc20Abi;
|
|
86900
88449
|
exports.iMarketCompressorAbi = iMarketCompressorAbi;
|
|
86901
88450
|
exports.iMarketConfiguratorV310Abi = iMarketConfiguratorV310Abi;
|
|
86902
88451
|
exports.iMellowVaultAbi = iMellowVaultAbi;
|
|
86903
88452
|
exports.iMellowVaultAdapterAbi = iMellowVaultAdapterAbi;
|
|
88453
|
+
exports.iMulticall3Abi = iMulticall3Abi;
|
|
88454
|
+
exports.iOffchainOracleAbi = iOffchainOracleAbi;
|
|
86904
88455
|
exports.iOptimismMintableErc20Abi = iOptimismMintableErc20Abi;
|
|
86905
88456
|
exports.iPendleRouterAdapterAbi = iPendleRouterAdapterAbi;
|
|
86906
88457
|
exports.iPoolV3Abi = iPoolV3Abi;
|
|
@@ -86921,17 +88472,45 @@ exports.iVersionAbi = iVersionAbi;
|
|
|
86921
88472
|
exports.iZapperAbi = iZapperAbi;
|
|
86922
88473
|
exports.ierc20Abi = ierc20Abi;
|
|
86923
88474
|
exports.ierc20MetadataAbi = ierc20MetadataAbi;
|
|
88475
|
+
exports.ierc20PermitAbi = ierc20PermitAbi;
|
|
88476
|
+
exports.ierc20ZapperDepositsAbi = ierc20ZapperDepositsAbi;
|
|
88477
|
+
exports.iethZapperDepositsAbi = iethZapperDepositsAbi;
|
|
86924
88478
|
exports.ilpPriceFeedAbi = ilpPriceFeedAbi;
|
|
86925
88479
|
exports.ilpPriceFeedEventsAbi = ilpPriceFeedEventsAbi;
|
|
86926
88480
|
exports.ilpPriceFeedExceptionsAbi = ilpPriceFeedExceptionsAbi;
|
|
86927
88481
|
exports.inflationAttackBlockerAbi = inflationAttackBlockerAbi;
|
|
86928
88482
|
exports.insolvencyCheckerAbi = insolvencyCheckerAbi;
|
|
88483
|
+
exports.isAaveV2LPToken = isAaveV2LPToken;
|
|
88484
|
+
exports.isAuraLPToken = isAuraLPToken;
|
|
88485
|
+
exports.isAuraStakedToken = isAuraStakedToken;
|
|
88486
|
+
exports.isAuraToken = isAuraToken;
|
|
88487
|
+
exports.isBalancerLPToken = isBalancerLPToken;
|
|
88488
|
+
exports.isCompoundV2LPToken = isCompoundV2LPToken;
|
|
88489
|
+
exports.isConvexL2StakedToken = isConvexL2StakedToken;
|
|
88490
|
+
exports.isConvexLPToken = isConvexLPToken;
|
|
88491
|
+
exports.isConvexStakedPhantomToken = isConvexStakedPhantomToken;
|
|
88492
|
+
exports.isConvexToken = isConvexToken;
|
|
88493
|
+
exports.isCurveLPToken = isCurveLPToken;
|
|
88494
|
+
exports.isCurveMetaToken = isCurveMetaToken;
|
|
88495
|
+
exports.isDieselSimpleToken = isDieselSimpleToken;
|
|
88496
|
+
exports.isDieselStakedToken = isDieselStakedToken;
|
|
88497
|
+
exports.isDieselToken = isDieselToken;
|
|
88498
|
+
exports.isDieselWithStkToken = isDieselWithStkToken;
|
|
88499
|
+
exports.isERC4626LPToken = isERC4626LPToken;
|
|
86929
88500
|
exports.isExtendedProtocol = isExtendedProtocol;
|
|
86930
88501
|
exports.isExtraFarmToken = isExtraFarmToken;
|
|
86931
88502
|
exports.isFarmToken = isFarmToken;
|
|
88503
|
+
exports.isLPToken = isLPToken;
|
|
86932
88504
|
exports.isLRT_LSTToken = isLRT_LSTToken;
|
|
88505
|
+
exports.isNormalToken = isNormalToken;
|
|
88506
|
+
exports.isStakingRewardsPhantomToken = isStakingRewardsPhantomToken;
|
|
88507
|
+
exports.isSupportedContract = isSupportedContract;
|
|
86933
88508
|
exports.isSupportedNetwork = isSupportedNetwork;
|
|
88509
|
+
exports.isSupportedToken = isSupportedToken;
|
|
86934
88510
|
exports.isTokenWithAPY = isTokenWithAPY;
|
|
88511
|
+
exports.isWrappedToken = isWrappedToken;
|
|
88512
|
+
exports.isYearnLPToken = isYearnLPToken;
|
|
88513
|
+
exports.isZircuitStakedPhantomToken = isZircuitStakedPhantomToken;
|
|
86935
88514
|
exports.iwstEthAbi = iwstEthAbi;
|
|
86936
88515
|
exports.iyVaultAbi = iyVaultAbi;
|
|
86937
88516
|
exports.json_parse = json_parse;
|
|
@@ -86939,8 +88518,11 @@ exports.json_stringify = json_stringify;
|
|
|
86939
88518
|
exports.lidoSwapperAbi = lidoSwapperAbi;
|
|
86940
88519
|
exports.lidoV1AdapterAbi = lidoV1AdapterAbi;
|
|
86941
88520
|
exports.linearInterestRateModelV3Abi = linearInterestRateModelV3Abi;
|
|
88521
|
+
exports.lpTokens = lpTokens;
|
|
86942
88522
|
exports.mellowLrtPriceFeedAbi = mellowLrtPriceFeedAbi;
|
|
86943
88523
|
exports.multiPauseAbi = multiPauseAbi;
|
|
88524
|
+
exports.nonQuoted = nonQuoted;
|
|
88525
|
+
exports.normalTokens = normalTokens;
|
|
86944
88526
|
exports.numberWithCommas = numberWithCommas;
|
|
86945
88527
|
exports.overrideAggregatorAbi = overrideAggregatorAbi;
|
|
86946
88528
|
exports.partialLiquidationBotV3Abi = partialLiquidationBotV3Abi;
|
|
@@ -86960,13 +88542,21 @@ exports.sendRawTx = sendRawTx;
|
|
|
86960
88542
|
exports.shortAddress = shortAddress;
|
|
86961
88543
|
exports.shortHash = shortHash;
|
|
86962
88544
|
exports.simulateMulticall = simulateMulticall;
|
|
88545
|
+
exports.stakingRewardsPhantomTokens = stakingRewardsPhantomTokens;
|
|
88546
|
+
exports.stakingRewardsTokens = stakingRewardsTokens;
|
|
88547
|
+
exports.supportedTokens = supportedTokens;
|
|
86963
88548
|
exports.susdeOverriderAbi = susdeOverriderAbi;
|
|
86964
88549
|
exports.swapAggregatorAbi = swapAggregatorAbi;
|
|
88550
|
+
exports.tickerInfoTokensByNetwork = tickerInfoTokensByNetwork;
|
|
88551
|
+
exports.tickerSymbolByAddress = tickerSymbolByAddress;
|
|
88552
|
+
exports.tickerTokensByNetwork = tickerTokensByNetwork;
|
|
86965
88553
|
exports.toBN = toBN;
|
|
86966
88554
|
exports.toBigInt = toBigInt;
|
|
86967
88555
|
exports.toHumanFormat = toHumanFormat;
|
|
86968
88556
|
exports.toSignificant = toSignificant;
|
|
88557
|
+
exports.tokenDataByNetwork = tokenDataByNetwork;
|
|
86969
88558
|
exports.tokenStealerAbi = tokenStealerAbi;
|
|
88559
|
+
exports.tokenSymbolByAddress = tokenSymbolByAddress;
|
|
86970
88560
|
exports.tokenToTicker = tokenToTicker;
|
|
86971
88561
|
exports.underlyingDepositZapperAbi = underlyingDepositZapperAbi;
|
|
86972
88562
|
exports.underlyingFarmingZapperAbi = underlyingFarmingZapperAbi;
|
|
@@ -86979,13 +88569,19 @@ exports.velodromeV2SwapperAbi = velodromeV2SwapperAbi;
|
|
|
86979
88569
|
exports.wethDepositZapperAbi = wethDepositZapperAbi;
|
|
86980
88570
|
exports.wethFarmingZapperAbi = wethFarmingZapperAbi;
|
|
86981
88571
|
exports.wrapAggregatorAbi = wrapAggregatorAbi;
|
|
88572
|
+
exports.wrappedAaveV2Tokens = wrappedAaveV2Tokens;
|
|
88573
|
+
exports.wrappedTokens = wrappedTokens;
|
|
86982
88574
|
exports.wstEthPriceFeedAbi = wstEthPriceFeedAbi;
|
|
86983
88575
|
exports.wstEthSwapperAbi = wstEthSwapperAbi;
|
|
86984
88576
|
exports.wstEthv1AdapterAbi = wstEthv1AdapterAbi;
|
|
86985
88577
|
exports.yearnDepositorAbi = yearnDepositorAbi;
|
|
86986
88578
|
exports.yearnPathResolverAbi = yearnPathResolverAbi;
|
|
86987
88579
|
exports.yearnPriceFeedAbi = yearnPriceFeedAbi;
|
|
88580
|
+
exports.yearnTokens = yearnTokens;
|
|
86988
88581
|
exports.yearnV2AdapterAbi = yearnV2AdapterAbi;
|
|
86989
88582
|
exports.yearnWithdrawerAbi = yearnWithdrawerAbi;
|
|
86990
88583
|
exports.zapperRegisterAbi = zapperRegisterAbi;
|
|
86991
88584
|
exports.zeroPriceFeedAbi = zeroPriceFeedAbi;
|
|
88585
|
+
exports.zircuitStakedPhantomTokens = zircuitStakedPhantomTokens;
|
|
88586
|
+
exports.zircuitStakedTokenByToken = zircuitStakedTokenByToken;
|
|
88587
|
+
exports.zircuitTokens = zircuitTokens;
|