@gearbox-protocol/sdk 3.0.0-vfour.172 → 3.0.0-vfour.174
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/dev/index.cjs +42 -18
- package/dist/cjs/dev/index.d.ts +2 -3
- package/dist/cjs/sdk/index.cjs +20 -30
- package/dist/cjs/sdk/index.d.ts +9 -9
- package/dist/esm/dev/index.d.mts +2 -3
- package/dist/esm/dev/index.mjs +43 -19
- package/dist/esm/sdk/index.d.mts +9 -9
- package/dist/esm/sdk/index.mjs +20 -30
- package/package.json +1 -1
package/dist/cjs/dev/index.cjs
CHANGED
|
@@ -53,13 +53,14 @@ async function evmMineDetailed(client, timestamp) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
// src/dev/AccountOpener.ts
|
|
56
|
-
var AccountOpener = class {
|
|
56
|
+
var AccountOpener = class extends sdk.SDKConstruct {
|
|
57
57
|
#service;
|
|
58
58
|
#anvil;
|
|
59
59
|
#logger;
|
|
60
60
|
#borrower;
|
|
61
61
|
#faucet;
|
|
62
62
|
constructor(service, options = {}) {
|
|
63
|
+
super(service.sdk);
|
|
63
64
|
this.#service = service;
|
|
64
65
|
this.#logger = sdk.childLogger("AccountOpener", service.sdk.logger);
|
|
65
66
|
this.#anvil = createAnvilClient({
|
|
@@ -137,22 +138,23 @@ var AccountOpener = class {
|
|
|
137
138
|
});
|
|
138
139
|
logger?.debug(strategy, "found open strategy");
|
|
139
140
|
const debt = minDebt * BigInt(leverage - 1);
|
|
140
|
-
const
|
|
141
|
-
|
|
141
|
+
const averageQuota = this.#getCollateralQuota(
|
|
142
|
+
cm,
|
|
143
|
+
collateral,
|
|
144
|
+
strategy.amount,
|
|
145
|
+
debt
|
|
146
|
+
);
|
|
147
|
+
const minQuota = this.#getCollateralQuota(
|
|
148
|
+
cm,
|
|
149
|
+
collateral,
|
|
150
|
+
strategy.minAmount,
|
|
151
|
+
debt
|
|
152
|
+
);
|
|
153
|
+
logger?.debug({ averageQuota, minQuota }, "calculated quotas");
|
|
142
154
|
const { tx, calls } = await this.#service.openCA({
|
|
143
155
|
creditManager: cm.creditManager.address,
|
|
144
|
-
averageQuota
|
|
145
|
-
|
|
146
|
-
token: collateral,
|
|
147
|
-
balance: this.#calcQuota(strategy.amount, debt, collateralLT)
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
minQuota: inUnderlying ? [] : [
|
|
151
|
-
{
|
|
152
|
-
token: collateral,
|
|
153
|
-
balance: this.#calcQuota(strategy.minAmount, debt, collateralLT)
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
+
averageQuota,
|
|
157
|
+
minQuota,
|
|
156
158
|
collateral: [{ token: underlying, balance: minDebt }],
|
|
157
159
|
debt,
|
|
158
160
|
calls: strategy.calls,
|
|
@@ -347,15 +349,37 @@ var AccountOpener = class {
|
|
|
347
349
|
}
|
|
348
350
|
return this.#borrower;
|
|
349
351
|
}
|
|
352
|
+
#getCollateralQuota(cm, collateral, amount, debt) {
|
|
353
|
+
const { underlying, collateralTokens } = cm;
|
|
354
|
+
const inUnderlying = collateral.toLowerCase() === underlying.toLowerCase();
|
|
355
|
+
if (inUnderlying) {
|
|
356
|
+
return [];
|
|
357
|
+
}
|
|
358
|
+
const collateralLT = BigInt(collateralTokens[collateral]);
|
|
359
|
+
const market = this.sdk.marketRegister.findByCreditManager(
|
|
360
|
+
cm.creditManager.address
|
|
361
|
+
);
|
|
362
|
+
const quotaInfo = market.pool.pqk.quotas.mustGet(collateral);
|
|
363
|
+
const availableQuota = quotaInfo.limit - quotaInfo.totalQuoted;
|
|
364
|
+
if (availableQuota <= 0n) {
|
|
365
|
+
throw new Error(
|
|
366
|
+
`quota exceeded for asset ${this.labelAddress(collateral)} in ${cm.name}`
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
const desiredQuota = this.#calcQuota(amount, debt, collateralLT);
|
|
370
|
+
return [
|
|
371
|
+
{
|
|
372
|
+
token: collateral,
|
|
373
|
+
balance: desiredQuota < availableQuota ? desiredQuota : availableQuota
|
|
374
|
+
}
|
|
375
|
+
];
|
|
376
|
+
}
|
|
350
377
|
#calcQuota(amount, debt, lt) {
|
|
351
378
|
let quota = amount * lt / sdk.PERCENTAGE_FACTOR;
|
|
352
379
|
quota = debt < quota ? debt : quota;
|
|
353
380
|
quota = quota * (sdk.PERCENTAGE_FACTOR + 500n) / sdk.PERCENTAGE_FACTOR;
|
|
354
381
|
return quota / sdk.PERCENTAGE_FACTOR * sdk.PERCENTAGE_FACTOR;
|
|
355
382
|
}
|
|
356
|
-
get sdk() {
|
|
357
|
-
return this.#service.sdk;
|
|
358
|
-
}
|
|
359
383
|
};
|
|
360
384
|
async function calcLiquidatableLTs(sdk$1, ca, factor = 9990n, logger) {
|
|
361
385
|
const cm = sdk$1.marketRegister.findCreditManager(ca.creditManager);
|
package/dist/cjs/dev/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, TestRpcSchema, Hex, Block, Prettify, Client, Transport, Chain, TestActions, PublicClient, WalletClient } from 'viem';
|
|
2
|
-
import { CreditAccountsService, CreditAccountData, GearboxSDK, ILogger, CreditManagerState } from '../sdk';
|
|
2
|
+
import { SDKConstruct, CreditAccountsService, CreditAccountData, GearboxSDK, ILogger, CreditManagerState } from '../sdk';
|
|
3
3
|
|
|
4
4
|
interface AccountOpenerOptions {
|
|
5
5
|
faucet?: Address;
|
|
@@ -10,7 +10,7 @@ interface TargetAccount {
|
|
|
10
10
|
leverage?: number;
|
|
11
11
|
slippage?: number;
|
|
12
12
|
}
|
|
13
|
-
declare class AccountOpener {
|
|
13
|
+
declare class AccountOpener extends SDKConstruct {
|
|
14
14
|
#private;
|
|
15
15
|
constructor(service: CreditAccountsService, options?: AccountOpenerOptions);
|
|
16
16
|
get borrower(): Address;
|
|
@@ -19,7 +19,6 @@ declare class AccountOpener {
|
|
|
19
19
|
*/
|
|
20
20
|
openCreditAccounts(targets: TargetAccount[]): Promise<CreditAccountData[]>;
|
|
21
21
|
getOpenedAccounts(): Promise<CreditAccountData[]>;
|
|
22
|
-
private get sdk();
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
/**
|
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -58621,7 +58621,7 @@ var PoolQuotaKeeperContract = class extends BaseContract {
|
|
|
58621
58621
|
quotas: this.quotas.entries().reduce(
|
|
58622
58622
|
(acc, [address, params]) => ({
|
|
58623
58623
|
...acc,
|
|
58624
|
-
[address]: {
|
|
58624
|
+
[this.labelAddress(address)]: {
|
|
58625
58625
|
rate: percentFmt(params.rate, raw),
|
|
58626
58626
|
quotaIncreaseFee: percentFmt(params.quotaIncreaseFee, raw),
|
|
58627
58627
|
totalQuoted: formatBNvalue(
|
|
@@ -58656,8 +58656,8 @@ var PoolQuotaKeeperContract = class extends BaseContract {
|
|
|
58656
58656
|
}
|
|
58657
58657
|
};
|
|
58658
58658
|
|
|
58659
|
-
// src/sdk/market/
|
|
58660
|
-
var
|
|
58659
|
+
// src/sdk/market/PoolSuite.ts
|
|
58660
|
+
var PoolSuite = class extends SDKConstruct {
|
|
58661
58661
|
pool;
|
|
58662
58662
|
pqk;
|
|
58663
58663
|
gauge;
|
|
@@ -65657,16 +65657,10 @@ var PriceOracleBaseContract = class extends BaseContract {
|
|
|
65657
65657
|
return {
|
|
65658
65658
|
...super.stateHuman(raw),
|
|
65659
65659
|
mainPriceFeeds: Object.fromEntries(
|
|
65660
|
-
this.mainPriceFeeds.entries().map(([token, v]) => [
|
|
65661
|
-
this.labelAddress(token),
|
|
65662
|
-
v.stateHuman(raw)
|
|
65663
|
-
])
|
|
65660
|
+
this.mainPriceFeeds.entries().map(([token, v]) => [this.labelAddress(token), v.stateHuman(raw)])
|
|
65664
65661
|
),
|
|
65665
65662
|
reservePriceFeeds: Object.fromEntries(
|
|
65666
|
-
this.reservePriceFeeds.entries().map(([token, v]) => [
|
|
65667
|
-
this.labelAddress(token),
|
|
65668
|
-
v.stateHuman(raw)
|
|
65669
|
-
])
|
|
65663
|
+
this.reservePriceFeeds.entries().map(([token, v]) => [this.labelAddress(token), v.stateHuman(raw)])
|
|
65670
65664
|
)
|
|
65671
65665
|
};
|
|
65672
65666
|
}
|
|
@@ -65753,7 +65747,7 @@ var PriceOracleV310Contract = class extends PriceOracleBaseContract {
|
|
|
65753
65747
|
var MarketSuite = class extends SDKConstruct {
|
|
65754
65748
|
acl;
|
|
65755
65749
|
configurator;
|
|
65756
|
-
|
|
65750
|
+
pool;
|
|
65757
65751
|
priceOracle;
|
|
65758
65752
|
creditManagers = [];
|
|
65759
65753
|
/**
|
|
@@ -65783,7 +65777,7 @@ var MarketSuite = class extends SDKConstruct {
|
|
|
65783
65777
|
sdk.tokensMeta.upsert(t.addr, t);
|
|
65784
65778
|
sdk.provider.addressLabels.set(t.addr, t.symbol);
|
|
65785
65779
|
}
|
|
65786
|
-
this.
|
|
65780
|
+
this.pool = new PoolSuite(sdk, marketData);
|
|
65787
65781
|
this.zappers = marketData.zappers;
|
|
65788
65782
|
for (let i = 0; i < marketData.creditManagers.length; i++) {
|
|
65789
65783
|
this.creditManagers.push(new CreditSuite(sdk, marketData, i));
|
|
@@ -65803,11 +65797,11 @@ var MarketSuite = class extends SDKConstruct {
|
|
|
65803
65797
|
}
|
|
65804
65798
|
}
|
|
65805
65799
|
get dirty() {
|
|
65806
|
-
return this.configurator.dirty || this.
|
|
65800
|
+
return this.configurator.dirty || this.pool.dirty || this.priceOracle.dirty || this.creditManagers.some((cm) => cm.dirty);
|
|
65807
65801
|
}
|
|
65808
65802
|
stateHuman(raw = true) {
|
|
65809
65803
|
return {
|
|
65810
|
-
pool: this.
|
|
65804
|
+
pool: this.pool.stateHuman(raw),
|
|
65811
65805
|
creditManagers: this.creditManagers.map((cm) => cm.stateHuman(raw)),
|
|
65812
65806
|
priceOracle: this.priceOracle.stateHuman(raw),
|
|
65813
65807
|
pausableAdmins: this.state.pausableAdmins.map((a) => this.labelAddress(a)),
|
|
@@ -65855,7 +65849,7 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65855
65849
|
await this.#loadMarkets(marketConfigurators, [], ignoreUpdateablePrices);
|
|
65856
65850
|
}
|
|
65857
65851
|
async syncState() {
|
|
65858
|
-
const pools = this.markets.filter((m) => m.dirty).map((m) => m.
|
|
65852
|
+
const pools = this.markets.filter((m) => m.dirty).map((m) => m.pool.pool.address);
|
|
65859
65853
|
if (pools.length) {
|
|
65860
65854
|
this.#logger?.debug(`need to reload ${pools.length} markets`);
|
|
65861
65855
|
await this.#loadMarkets([], pools);
|
|
@@ -65940,7 +65934,7 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65940
65934
|
return this.markets.map((market) => market.stateHuman(raw));
|
|
65941
65935
|
}
|
|
65942
65936
|
get pools() {
|
|
65943
|
-
return this.markets.map((market) => market.
|
|
65937
|
+
return this.markets.map((market) => market.pool);
|
|
65944
65938
|
}
|
|
65945
65939
|
get creditManagers() {
|
|
65946
65940
|
return this.markets.flatMap((market) => market.creditManagers);
|
|
@@ -66841,8 +66835,8 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66841
66835
|
to,
|
|
66842
66836
|
calls: openPathCalls
|
|
66843
66837
|
} = props;
|
|
66844
|
-
const
|
|
66845
|
-
const cm =
|
|
66838
|
+
const cmSuite = this.sdk.marketRegister.findCreditManager(creditManager);
|
|
66839
|
+
const cm = cmSuite.creditManager;
|
|
66846
66840
|
const priceUpdatesCalls = await this.getPriceUpdatesForFacade(
|
|
66847
66841
|
cm.address,
|
|
66848
66842
|
undefined,
|
|
@@ -66856,13 +66850,9 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66856
66850
|
...openPathCalls,
|
|
66857
66851
|
...withdrawDebt ? [this.#prepareWithdrawToken(cm.creditFacade, cm.underlying, debt, to)] : []
|
|
66858
66852
|
];
|
|
66859
|
-
const tx =
|
|
66860
|
-
to,
|
|
66861
|
-
calls,
|
|
66862
|
-
referralCode
|
|
66863
|
-
);
|
|
66853
|
+
const tx = cmSuite.creditFacade.openCreditAccount(to, calls, referralCode);
|
|
66864
66854
|
tx.value = ethAmount.toString(10);
|
|
66865
|
-
return { calls, tx, creditFacade:
|
|
66855
|
+
return { calls, tx, creditFacade: cmSuite.creditFacade };
|
|
66866
66856
|
}
|
|
66867
66857
|
/**
|
|
66868
66858
|
* Internal wrapper for CreditAccountCompressor.getCreditAccounts + price updates wrapped into multicall
|
|
@@ -66913,7 +66903,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66913
66903
|
const market = this.sdk.marketRegister.findByCreditManager(
|
|
66914
66904
|
acc.creditManager
|
|
66915
66905
|
);
|
|
66916
|
-
const pool = market.
|
|
66906
|
+
const pool = market.pool.pool.address;
|
|
66917
66907
|
oracleByPool.set(pool, market.priceOracle);
|
|
66918
66908
|
for (const t of acc.tokens) {
|
|
66919
66909
|
if (t.balance > 10n) {
|
|
@@ -66924,9 +66914,9 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66924
66914
|
}
|
|
66925
66915
|
}
|
|
66926
66916
|
const priceFeeds = [];
|
|
66927
|
-
for (const [pool,
|
|
66917
|
+
for (const [pool, oracle] of oracleByPool.entries()) {
|
|
66928
66918
|
const tokens = Array.from(tokensByPool.get(pool) ?? []);
|
|
66929
|
-
priceFeeds.push(...
|
|
66919
|
+
priceFeeds.push(...oracle.priceFeedsForTokens(tokens));
|
|
66930
66920
|
}
|
|
66931
66921
|
return this.sdk.priceFeeds.generatePriceFeedsUpdateTxs(priceFeeds);
|
|
66932
66922
|
}
|
|
@@ -66937,7 +66927,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66937
66927
|
const caBalancesRecord = creditAccount ? assetsMap(creditAccount.tokens) : creditAccount;
|
|
66938
66928
|
const market = this.sdk.marketRegister.findByCreditManager(creditManager);
|
|
66939
66929
|
const cm = this.sdk.marketRegister.findCreditManager(creditManager).creditManager;
|
|
66940
|
-
const pool = market.
|
|
66930
|
+
const pool = market.pool.pool.address;
|
|
66941
66931
|
oracleByPool.set(pool, market.priceOracle);
|
|
66942
66932
|
const insertToken = (p, t) => {
|
|
66943
66933
|
const tokens = tokensByPool.get(p) ?? /* @__PURE__ */ new Set();
|
|
@@ -73827,8 +73817,8 @@ exports.PendleTWAPPTPriceFeed = PendleTWAPPTPriceFeed;
|
|
|
73827
73817
|
exports.PhantomTokenType = PhantomTokenType;
|
|
73828
73818
|
exports.PoolContract = PoolContract;
|
|
73829
73819
|
exports.PoolData_Legacy = PoolData_Legacy;
|
|
73830
|
-
exports.PoolFactory = PoolFactory;
|
|
73831
73820
|
exports.PoolQuotaKeeperContract = PoolQuotaKeeperContract;
|
|
73821
|
+
exports.PoolSuite = PoolSuite;
|
|
73832
73822
|
exports.PositionUtils = PositionUtils;
|
|
73833
73823
|
exports.PriceFeedRef = PriceFeedRef;
|
|
73834
73824
|
exports.PriceFeedRegister = PriceFeedRegister;
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -84575,7 +84575,7 @@ type PriceFeedRegisterHooks = {
|
|
|
84575
84575
|
};
|
|
84576
84576
|
/**
|
|
84577
84577
|
* PriceFeedRegister acts as a chain-level cache to avoid creating multiple contract instances.
|
|
84578
|
-
* It's reused by
|
|
84578
|
+
* It's reused by PriceOracles belonging to different markets
|
|
84579
84579
|
*
|
|
84580
84580
|
**/
|
|
84581
84581
|
declare class PriceFeedRegister extends SDKConstruct implements IHooks<PriceFeedRegisterHooks> {
|
|
@@ -84625,7 +84625,7 @@ declare class RedstonePriceFeedContract extends AbstractPriceFeedContract<abi$j>
|
|
|
84625
84625
|
|
|
84626
84626
|
/**
|
|
84627
84627
|
* Helper method to convert our RawTx into viem's multicall format
|
|
84628
|
-
* Involves decoding what was previously encoded, but it's better than adding another method to
|
|
84628
|
+
* Involves decoding what was previously encoded, but it's better than adding another method to PriceOracle
|
|
84629
84629
|
* @param tx
|
|
84630
84630
|
* @returns
|
|
84631
84631
|
*/
|
|
@@ -90726,7 +90726,7 @@ declare class PoolQuotaKeeperContract extends BaseContract<abi$7> {
|
|
|
90726
90726
|
processLog(log: Log<bigint, number, false, undefined, undefined, abi$7, ContractEventName<abi$7>>): void;
|
|
90727
90727
|
}
|
|
90728
90728
|
|
|
90729
|
-
declare class
|
|
90729
|
+
declare class PoolSuite extends SDKConstruct {
|
|
90730
90730
|
readonly pool: PoolContract;
|
|
90731
90731
|
readonly pqk: PoolQuotaKeeperContract;
|
|
90732
90732
|
readonly gauge: GaugeContract;
|
|
@@ -90734,7 +90734,7 @@ declare class PoolFactory extends SDKConstruct {
|
|
|
90734
90734
|
constructor(sdk: GearboxSDK, data: MarketData);
|
|
90735
90735
|
get underlying(): Address;
|
|
90736
90736
|
get dirty(): boolean;
|
|
90737
|
-
stateHuman(raw?: boolean):
|
|
90737
|
+
stateHuman(raw?: boolean): PoolSuiteStateHuman;
|
|
90738
90738
|
}
|
|
90739
90739
|
|
|
90740
90740
|
type abi$6 = typeof priceOracleV3Abi;
|
|
@@ -90753,7 +90753,7 @@ declare class PriceOracleV310Contract extends PriceOracleBaseContract<abi$5> {
|
|
|
90753
90753
|
declare class MarketSuite extends SDKConstruct {
|
|
90754
90754
|
readonly acl: Address;
|
|
90755
90755
|
readonly configurator: MarketConfiguratorContract;
|
|
90756
|
-
readonly
|
|
90756
|
+
readonly pool: PoolSuite;
|
|
90757
90757
|
readonly priceOracle: PriceOracleV300Contract | PriceOracleV310Contract;
|
|
90758
90758
|
readonly creditManagers: CreditSuite[];
|
|
90759
90759
|
/**
|
|
@@ -90778,7 +90778,7 @@ declare class MarketRegister extends SDKConstruct {
|
|
|
90778
90778
|
updatePrices(oracles?: Address[]): Promise<void>;
|
|
90779
90779
|
get state(): MarketData[];
|
|
90780
90780
|
stateHuman(raw?: boolean): MarketStateHuman[];
|
|
90781
|
-
get pools():
|
|
90781
|
+
get pools(): PoolSuite[];
|
|
90782
90782
|
get creditManagers(): CreditSuite[];
|
|
90783
90783
|
get marketConfigurators(): MarketConfiguratorContract[];
|
|
90784
90784
|
findCreditManager(creditManager: Address): CreditSuite;
|
|
@@ -90937,7 +90937,7 @@ interface LinearModelStateHuman extends BaseContractStateHuman {
|
|
|
90937
90937
|
Rslope3: string;
|
|
90938
90938
|
isBorrowingMoreU2Forbidden: boolean;
|
|
90939
90939
|
}
|
|
90940
|
-
interface
|
|
90940
|
+
interface PoolSuiteStateHuman {
|
|
90941
90941
|
pool: PoolStateHuman;
|
|
90942
90942
|
poolQuotaKeeper: PoolQuotaKeeperStateHuman;
|
|
90943
90943
|
linearModel?: LinearModelStateHuman;
|
|
@@ -90948,7 +90948,7 @@ interface ZapperStateHuman extends BaseContractStateHuman {
|
|
|
90948
90948
|
tokenOut: string;
|
|
90949
90949
|
}
|
|
90950
90950
|
interface MarketStateHuman {
|
|
90951
|
-
pool:
|
|
90951
|
+
pool: PoolSuiteStateHuman;
|
|
90952
90952
|
creditManagers: CreditSuiteStateHuman[];
|
|
90953
90953
|
priceOracle: PriceOracleV3StateHuman;
|
|
90954
90954
|
pausableAdmins: string[];
|
|
@@ -97930,4 +97930,4 @@ type MulticallErrorType = GetChainContractAddressErrorType | ReadContractErrorTy
|
|
|
97930
97930
|
*/
|
|
97931
97931
|
declare function simulateMulticall<const contracts extends readonly unknown[], chain extends Chain | undefined, allowFailure extends boolean = true>(client: Client<Transport, chain>, parameters: MulticallParameters<contracts, allowFailure>): Promise<MulticallReturnType<contracts, allowFailure>>;
|
|
97932
97932
|
|
|
97933
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveV2LPToken, type AaveV2Params, type AaveV2PoolTokenData, type AaveV2TokenWrapperContract, type AaveV3Params, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AdapterInterface, type AdapterWithType, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, type AddressProviderState, type AddressProviderV3StateHuman, type AllLPTokens, type Asset, type AssetPriceFeedStateHuman, AssetUtils, type AssetWithAmountInTarget, type AssetWithView, type AuraExtraPoolParams, type AuraLPToken, type AuraLPTokenData, type AuraParams, type AuraPoolContract, type AuraPoolParams, type AuraStakedToken, type AuraStakedTokenData, BLOCKS_PER_WEEK_BY_NETWORK, type BalancerLPToken, type BalancerLpTokenData, type BalancerParams, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, type BaseContractOptions, type BaseContractParams, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, BigIntMath, type BigNumberish, type BotAddresses, type BotBaseType, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, type CaTokenBalance, type CalcAvgQuotaBorrowRateProps, type CalcDefaultQuotaProps, type CalcHealthFactorProps, type CalcMaxLendingDebtProps, type CalcOverallAPYProps, type CalcQuotaBorrowRateProps, type CalcQuotaUpdateProps, type CalcRecommendedQuotaProps, type CalcRelativeBaseBorrowRateProps, CamelotV3AdapterContract, type CamelotV3Params, ChainlinkPriceFeedContract, type ChartsAggregatedPoolPayload, type ChartsAggregatedStats, ChartsCreditManagerData, type ChartsCreditManagerPayload, ChartsPoolData, type ChartsPoolDataPayload, type ClaimFarmRewardsProps, type ClaimLmRewardsV2Props, type ClaimLmRewardsV3Props, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type CompoundV2LPToken, type CompoundV2Params, type CompoundV2PoolContract, type CompoundV2PoolTokenData, type ConnectionOptions, type ContractMethod, type ContractParams, type ConvexExtraPoolParams, type ConvexL2Params, type ConvexL2PoolParams, type ConvexL2StakedToken, type ConvexL2StakedTokenData, type ConvexLPToken, type ConvexLPTokenData, type ConvexParams, type ConvexPhantomTokenData, type ConvexPoolContract, type ConvexPoolParams, type ConvexStakedPhantomToken, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataPayload, type CreditAccountDataSlice, CreditAccountData_Legacy, type CreditAccountFilter, type CreditAccountServiceOptions, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, type CreditManagerData, type CreditManagerDataPayload, CreditManagerData_Legacy, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerDebtParamsSDK, type CreditManagerState, type CreditManagerStateHuman, type CreditManagerType, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, type CreditSessionAsset, type CreditSessionBalancePayload, CreditSessionFiltered, type CreditSessionFilteredPayload, type CreditSessionPayload, type CreditSessionReward, type CreditSessionSortFields, type CreditSessionSortType, type CreditSessionStatus, type CreditSessionsAggregatedStats, type CreditSessionsAggregatedStatsPayload, CreditSuite, type CreditSuiteStateHuman, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurveGEARPoolParams, type CurveLPToken, type CurveLPTokenData, type CurveMetaTokens, type CurveParams, type CurvePoolContract, type CurvePoolStruct, CurveStablePriceFeedContract, type CurveSteCRVPoolParams, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, type DaiUsdsParams, type DieselSimpleTokenData, type DieselSimpleTokenTypes, type DieselStakedTokenData, type DieselStakedTokenTypes, type DieselTokenData, type DieselTokenTypes, type DieselTokenWithStkTypes, type DieselWithStkTokenV3Data, type Display, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, Erc4626PriceFeedContract, type EtherscanURLParam, EventOrTx, type EventOrTxProps, type ExtendedProtocols, type ExtraRewardApy, type FarmInfo, type FindClosePathInput, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxBackendApi, type GearboxExtraMerkleLmReward, type GearboxLmReward, type GearboxMerkleV2LmReward, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, type GearboxStakedV3LmReward, type GearboxState, type GearboxStateHuman, type GearboxToken, type GearboxTokenData, type GetAddressProviderOptions, type GetLmRewardsInfoProps, type GetLmRewardsProps, type GetPointsByPoolProps, type GetTotalTokensOnProtocolProps, type GraphPayload, type IAdapterContract$1 as IAdapterContract, type IAddressProviderContract, type IBaseContract$1 as IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LEVERAGE_DECIMALS, type LPPriceFeedStateHuman, type LPTokenDataI, type LPTokens, type LidoParams, type LidoWsthETHParams, type LinearModel, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, type MarketData, MarketRegister, type MarketStateHuman, MarketSuite, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MellowVaultContract, type MellowVaultParams, type MerkleDistributorInfo, type MetaCurveLPTokenData, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type NormalToken, type NormalTokenData, type OnDemandPriceUpdate, type OpenCAProps, type OpenStrategyResult, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PartialRecord, type PathFinderCloseResult, type PathFinderOpenStrategyResult, type PathFinderResult, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PendleRouterParams, PendleTWAPPTPriceFeed, type PermitResult, PhantomTokenType, PoolContract, type PoolData, type PoolDataExtraPayload, type PoolDataPayload, PoolData_Legacy, PoolFactory, type PoolFactoryStateHuman, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, type PoolType, type PoolZapper, PositionUtils, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, PriceFeedType, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, PriceUtils, Protocols, Provider, type QuotaInfo, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type ReleaseAt, RewardClaimer, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, type SecondaryStatus, type SendRawTxParameters, StakingRewardsAdapterContract, type StakingRewardsContract, type StakingRewardsParams, type StakingRewardsPhantomToken, type StakingRewardsPhantomTokenData, type SupportedContract, type SupportedToken, type SupportedValue, type SwapOperation, type SwapTask, type SyncStateOptions, TESTNET_CHAINS, TIMELOCK, type TVL, TXSwap, type TickerInfo, type TickerToken, type TimeToLiquidationProps, type TokenBase, TokenData, type TokenDataI, type TokenDataPayload, type TokenMetaData, type TokenNetwork, TokenType, type TokensAPYList, TokensMeta, type TokensWithAPY, type TransportOptions, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, type TxSerialized, TxSerializer, TxStakeDiesel, type TxStatus, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, UniswapV2AdapterContract, type UniswapV2Contract, type UniswapV2Params, UniswapV3AdapterContract, type UniswapV3Params, type UniversalParams, type UpdatePriceFeedsResult, type UserCreditSessions, type UserCreditSessionsAggregatedStatsPayload, UserCreditSessionsBuilder, type UserPoolAggregatedStatsPayload, UserPoolData, type UserPoolPayload, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, type VelodromeV2Params, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, type WrapResult, type WrappedAaveV2LPToken, type WrappedAaveV2PoolTokenData, type WrappedToken, type WrappedTokenData, type WrapperAaveV2Params, WstETHPriceFeedContract, WstETHV1AdapterContract, type YearnLPToken, type YearnParams, YearnPriceFeedContract, YearnV2RouterAdapterContract, type YearnVaultContract, type YearnVaultOfCurveLPTokenData, type YearnVaultOfMetaCurveLPTokenData, type YearnVaultTokenData, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, type ZircuitParams, type ZircuitPhantomTokenData, type ZircuitStakedPhantomToken, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|
|
97933
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveV2LPToken, type AaveV2Params, type AaveV2PoolTokenData, type AaveV2TokenWrapperContract, type AaveV3Params, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AdapterInterface, type AdapterWithType, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, type AddressProviderState, type AddressProviderV3StateHuman, type AllLPTokens, type Asset, type AssetPriceFeedStateHuman, AssetUtils, type AssetWithAmountInTarget, type AssetWithView, type AuraExtraPoolParams, type AuraLPToken, type AuraLPTokenData, type AuraParams, type AuraPoolContract, type AuraPoolParams, type AuraStakedToken, type AuraStakedTokenData, BLOCKS_PER_WEEK_BY_NETWORK, type BalancerLPToken, type BalancerLpTokenData, type BalancerParams, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, type BaseContractOptions, type BaseContractParams, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, BigIntMath, type BigNumberish, type BotAddresses, type BotBaseType, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, type CaTokenBalance, type CalcAvgQuotaBorrowRateProps, type CalcDefaultQuotaProps, type CalcHealthFactorProps, type CalcMaxLendingDebtProps, type CalcOverallAPYProps, type CalcQuotaBorrowRateProps, type CalcQuotaUpdateProps, type CalcRecommendedQuotaProps, type CalcRelativeBaseBorrowRateProps, CamelotV3AdapterContract, type CamelotV3Params, ChainlinkPriceFeedContract, type ChartsAggregatedPoolPayload, type ChartsAggregatedStats, ChartsCreditManagerData, type ChartsCreditManagerPayload, ChartsPoolData, type ChartsPoolDataPayload, type ClaimFarmRewardsProps, type ClaimLmRewardsV2Props, type ClaimLmRewardsV3Props, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type CompoundV2LPToken, type CompoundV2Params, type CompoundV2PoolContract, type CompoundV2PoolTokenData, type ConnectionOptions, type ContractMethod, type ContractParams, type ConvexExtraPoolParams, type ConvexL2Params, type ConvexL2PoolParams, type ConvexL2StakedToken, type ConvexL2StakedTokenData, type ConvexLPToken, type ConvexLPTokenData, type ConvexParams, type ConvexPhantomTokenData, type ConvexPoolContract, type ConvexPoolParams, type ConvexStakedPhantomToken, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataPayload, type CreditAccountDataSlice, CreditAccountData_Legacy, type CreditAccountFilter, type CreditAccountServiceOptions, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, type CreditManagerData, type CreditManagerDataPayload, CreditManagerData_Legacy, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerDebtParamsSDK, type CreditManagerState, type CreditManagerStateHuman, type CreditManagerType, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, type CreditSessionAsset, type CreditSessionBalancePayload, CreditSessionFiltered, type CreditSessionFilteredPayload, type CreditSessionPayload, type CreditSessionReward, type CreditSessionSortFields, type CreditSessionSortType, type CreditSessionStatus, type CreditSessionsAggregatedStats, type CreditSessionsAggregatedStatsPayload, CreditSuite, type CreditSuiteStateHuman, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurveGEARPoolParams, type CurveLPToken, type CurveLPTokenData, type CurveMetaTokens, type CurveParams, type CurvePoolContract, type CurvePoolStruct, CurveStablePriceFeedContract, type CurveSteCRVPoolParams, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, type DaiUsdsParams, type DieselSimpleTokenData, type DieselSimpleTokenTypes, type DieselStakedTokenData, type DieselStakedTokenTypes, type DieselTokenData, type DieselTokenTypes, type DieselTokenWithStkTypes, type DieselWithStkTokenV3Data, type Display, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, Erc4626PriceFeedContract, type EtherscanURLParam, EventOrTx, type EventOrTxProps, type ExtendedProtocols, type ExtraRewardApy, type FarmInfo, type FindClosePathInput, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxBackendApi, type GearboxExtraMerkleLmReward, type GearboxLmReward, type GearboxMerkleV2LmReward, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, type GearboxStakedV3LmReward, type GearboxState, type GearboxStateHuman, type GearboxToken, type GearboxTokenData, type GetAddressProviderOptions, type GetLmRewardsInfoProps, type GetLmRewardsProps, type GetPointsByPoolProps, type GetTotalTokensOnProtocolProps, type GraphPayload, type IAdapterContract$1 as IAdapterContract, type IAddressProviderContract, type IBaseContract$1 as IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LEVERAGE_DECIMALS, type LPPriceFeedStateHuman, type LPTokenDataI, type LPTokens, type LidoParams, type LidoWsthETHParams, type LinearModel, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, type MarketData, MarketRegister, type MarketStateHuman, MarketSuite, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MellowVaultContract, type MellowVaultParams, type MerkleDistributorInfo, type MetaCurveLPTokenData, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type NormalToken, type NormalTokenData, type OnDemandPriceUpdate, type OpenCAProps, type OpenStrategyResult, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PartialRecord, type PathFinderCloseResult, type PathFinderOpenStrategyResult, type PathFinderResult, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PendleRouterParams, PendleTWAPPTPriceFeed, type PermitResult, PhantomTokenType, PoolContract, type PoolData, type PoolDataExtraPayload, type PoolDataPayload, PoolData_Legacy, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, type PoolType, type PoolZapper, PositionUtils, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, PriceFeedType, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, PriceUtils, Protocols, Provider, type QuotaInfo, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type ReleaseAt, RewardClaimer, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, type SecondaryStatus, type SendRawTxParameters, StakingRewardsAdapterContract, type StakingRewardsContract, type StakingRewardsParams, type StakingRewardsPhantomToken, type StakingRewardsPhantomTokenData, type SupportedContract, type SupportedToken, type SupportedValue, type SwapOperation, type SwapTask, type SyncStateOptions, TESTNET_CHAINS, TIMELOCK, type TVL, TXSwap, type TickerInfo, type TickerToken, type TimeToLiquidationProps, type TokenBase, TokenData, type TokenDataI, type TokenDataPayload, type TokenMetaData, type TokenNetwork, TokenType, type TokensAPYList, TokensMeta, type TokensWithAPY, type TransportOptions, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, type TxSerialized, TxSerializer, TxStakeDiesel, type TxStatus, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, UniswapV2AdapterContract, type UniswapV2Contract, type UniswapV2Params, UniswapV3AdapterContract, type UniswapV3Params, type UniversalParams, type UpdatePriceFeedsResult, type UserCreditSessions, type UserCreditSessionsAggregatedStatsPayload, UserCreditSessionsBuilder, type UserPoolAggregatedStatsPayload, UserPoolData, type UserPoolPayload, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, type VelodromeV2Params, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, type WrapResult, type WrappedAaveV2LPToken, type WrappedAaveV2PoolTokenData, type WrappedToken, type WrappedTokenData, type WrapperAaveV2Params, WstETHPriceFeedContract, WstETHV1AdapterContract, type YearnLPToken, type YearnParams, YearnPriceFeedContract, YearnV2RouterAdapterContract, type YearnVaultContract, type YearnVaultOfCurveLPTokenData, type YearnVaultOfMetaCurveLPTokenData, type YearnVaultTokenData, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, type ZircuitParams, type ZircuitPhantomTokenData, type ZircuitStakedPhantomToken, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|
package/dist/esm/dev/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, TestRpcSchema, Hex, Block, Prettify, Client, Transport, Chain, TestActions, PublicClient, WalletClient } from 'viem';
|
|
2
|
-
import { CreditAccountsService, CreditAccountData, GearboxSDK, ILogger, CreditManagerState } from '../sdk/index.d.mts';
|
|
2
|
+
import { SDKConstruct, CreditAccountsService, CreditAccountData, GearboxSDK, ILogger, CreditManagerState } from '../sdk/index.d.mts';
|
|
3
3
|
|
|
4
4
|
interface AccountOpenerOptions {
|
|
5
5
|
faucet?: Address;
|
|
@@ -10,7 +10,7 @@ interface TargetAccount {
|
|
|
10
10
|
leverage?: number;
|
|
11
11
|
slippage?: number;
|
|
12
12
|
}
|
|
13
|
-
declare class AccountOpener {
|
|
13
|
+
declare class AccountOpener extends SDKConstruct {
|
|
14
14
|
#private;
|
|
15
15
|
constructor(service: CreditAccountsService, options?: AccountOpenerOptions);
|
|
16
16
|
get borrower(): Address;
|
|
@@ -19,7 +19,6 @@ declare class AccountOpener {
|
|
|
19
19
|
*/
|
|
20
20
|
openCreditAccounts(targets: TargetAccount[]): Promise<CreditAccountData[]>;
|
|
21
21
|
getOpenedAccounts(): Promise<CreditAccountData[]>;
|
|
22
|
-
private get sdk();
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
/**
|
package/dist/esm/dev/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createTestClient, publicActions, walletActions, toHex, isAddress, parseEther, createWalletClient, http, createPublicClient } from 'viem';
|
|
2
2
|
import { privateKeyToAccount, generatePrivateKey } from 'viem/accounts';
|
|
3
|
-
import { childLogger, AddressMap, sendRawTx, ADDRESS_0X0, formatBN, ierc20Abi, MAX_UINT256, iDegenNftv2Abi, PERCENTAGE_FACTOR, GearboxSDK, json_stringify, WAD } from '../sdk/index.mjs';
|
|
3
|
+
import { SDKConstruct, childLogger, AddressMap, sendRawTx, ADDRESS_0X0, formatBN, ierc20Abi, MAX_UINT256, iDegenNftv2Abi, PERCENTAGE_FACTOR, GearboxSDK, json_stringify, WAD } from '../sdk/index.mjs';
|
|
4
4
|
import { writeFile, readFile } from 'node:fs/promises';
|
|
5
5
|
|
|
6
6
|
// src/dev/AccountOpener.ts
|
|
@@ -51,13 +51,14 @@ async function evmMineDetailed(client, timestamp) {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// src/dev/AccountOpener.ts
|
|
54
|
-
var AccountOpener = class {
|
|
54
|
+
var AccountOpener = class extends SDKConstruct {
|
|
55
55
|
#service;
|
|
56
56
|
#anvil;
|
|
57
57
|
#logger;
|
|
58
58
|
#borrower;
|
|
59
59
|
#faucet;
|
|
60
60
|
constructor(service, options = {}) {
|
|
61
|
+
super(service.sdk);
|
|
61
62
|
this.#service = service;
|
|
62
63
|
this.#logger = childLogger("AccountOpener", service.sdk.logger);
|
|
63
64
|
this.#anvil = createAnvilClient({
|
|
@@ -135,22 +136,23 @@ var AccountOpener = class {
|
|
|
135
136
|
});
|
|
136
137
|
logger?.debug(strategy, "found open strategy");
|
|
137
138
|
const debt = minDebt * BigInt(leverage - 1);
|
|
138
|
-
const
|
|
139
|
-
|
|
139
|
+
const averageQuota = this.#getCollateralQuota(
|
|
140
|
+
cm,
|
|
141
|
+
collateral,
|
|
142
|
+
strategy.amount,
|
|
143
|
+
debt
|
|
144
|
+
);
|
|
145
|
+
const minQuota = this.#getCollateralQuota(
|
|
146
|
+
cm,
|
|
147
|
+
collateral,
|
|
148
|
+
strategy.minAmount,
|
|
149
|
+
debt
|
|
150
|
+
);
|
|
151
|
+
logger?.debug({ averageQuota, minQuota }, "calculated quotas");
|
|
140
152
|
const { tx, calls } = await this.#service.openCA({
|
|
141
153
|
creditManager: cm.creditManager.address,
|
|
142
|
-
averageQuota
|
|
143
|
-
|
|
144
|
-
token: collateral,
|
|
145
|
-
balance: this.#calcQuota(strategy.amount, debt, collateralLT)
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
minQuota: inUnderlying ? [] : [
|
|
149
|
-
{
|
|
150
|
-
token: collateral,
|
|
151
|
-
balance: this.#calcQuota(strategy.minAmount, debt, collateralLT)
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
+
averageQuota,
|
|
155
|
+
minQuota,
|
|
154
156
|
collateral: [{ token: underlying, balance: minDebt }],
|
|
155
157
|
debt,
|
|
156
158
|
calls: strategy.calls,
|
|
@@ -345,15 +347,37 @@ var AccountOpener = class {
|
|
|
345
347
|
}
|
|
346
348
|
return this.#borrower;
|
|
347
349
|
}
|
|
350
|
+
#getCollateralQuota(cm, collateral, amount, debt) {
|
|
351
|
+
const { underlying, collateralTokens } = cm;
|
|
352
|
+
const inUnderlying = collateral.toLowerCase() === underlying.toLowerCase();
|
|
353
|
+
if (inUnderlying) {
|
|
354
|
+
return [];
|
|
355
|
+
}
|
|
356
|
+
const collateralLT = BigInt(collateralTokens[collateral]);
|
|
357
|
+
const market = this.sdk.marketRegister.findByCreditManager(
|
|
358
|
+
cm.creditManager.address
|
|
359
|
+
);
|
|
360
|
+
const quotaInfo = market.pool.pqk.quotas.mustGet(collateral);
|
|
361
|
+
const availableQuota = quotaInfo.limit - quotaInfo.totalQuoted;
|
|
362
|
+
if (availableQuota <= 0n) {
|
|
363
|
+
throw new Error(
|
|
364
|
+
`quota exceeded for asset ${this.labelAddress(collateral)} in ${cm.name}`
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
const desiredQuota = this.#calcQuota(amount, debt, collateralLT);
|
|
368
|
+
return [
|
|
369
|
+
{
|
|
370
|
+
token: collateral,
|
|
371
|
+
balance: desiredQuota < availableQuota ? desiredQuota : availableQuota
|
|
372
|
+
}
|
|
373
|
+
];
|
|
374
|
+
}
|
|
348
375
|
#calcQuota(amount, debt, lt) {
|
|
349
376
|
let quota = amount * lt / PERCENTAGE_FACTOR;
|
|
350
377
|
quota = debt < quota ? debt : quota;
|
|
351
378
|
quota = quota * (PERCENTAGE_FACTOR + 500n) / PERCENTAGE_FACTOR;
|
|
352
379
|
return quota / PERCENTAGE_FACTOR * PERCENTAGE_FACTOR;
|
|
353
380
|
}
|
|
354
|
-
get sdk() {
|
|
355
|
-
return this.#service.sdk;
|
|
356
|
-
}
|
|
357
381
|
};
|
|
358
382
|
async function calcLiquidatableLTs(sdk, ca, factor = 9990n, logger) {
|
|
359
383
|
const cm = sdk.marketRegister.findCreditManager(ca.creditManager);
|
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -84575,7 +84575,7 @@ type PriceFeedRegisterHooks = {
|
|
|
84575
84575
|
};
|
|
84576
84576
|
/**
|
|
84577
84577
|
* PriceFeedRegister acts as a chain-level cache to avoid creating multiple contract instances.
|
|
84578
|
-
* It's reused by
|
|
84578
|
+
* It's reused by PriceOracles belonging to different markets
|
|
84579
84579
|
*
|
|
84580
84580
|
**/
|
|
84581
84581
|
declare class PriceFeedRegister extends SDKConstruct implements IHooks<PriceFeedRegisterHooks> {
|
|
@@ -84625,7 +84625,7 @@ declare class RedstonePriceFeedContract extends AbstractPriceFeedContract<abi$j>
|
|
|
84625
84625
|
|
|
84626
84626
|
/**
|
|
84627
84627
|
* Helper method to convert our RawTx into viem's multicall format
|
|
84628
|
-
* Involves decoding what was previously encoded, but it's better than adding another method to
|
|
84628
|
+
* Involves decoding what was previously encoded, but it's better than adding another method to PriceOracle
|
|
84629
84629
|
* @param tx
|
|
84630
84630
|
* @returns
|
|
84631
84631
|
*/
|
|
@@ -90726,7 +90726,7 @@ declare class PoolQuotaKeeperContract extends BaseContract<abi$7> {
|
|
|
90726
90726
|
processLog(log: Log<bigint, number, false, undefined, undefined, abi$7, ContractEventName<abi$7>>): void;
|
|
90727
90727
|
}
|
|
90728
90728
|
|
|
90729
|
-
declare class
|
|
90729
|
+
declare class PoolSuite extends SDKConstruct {
|
|
90730
90730
|
readonly pool: PoolContract;
|
|
90731
90731
|
readonly pqk: PoolQuotaKeeperContract;
|
|
90732
90732
|
readonly gauge: GaugeContract;
|
|
@@ -90734,7 +90734,7 @@ declare class PoolFactory extends SDKConstruct {
|
|
|
90734
90734
|
constructor(sdk: GearboxSDK, data: MarketData);
|
|
90735
90735
|
get underlying(): Address;
|
|
90736
90736
|
get dirty(): boolean;
|
|
90737
|
-
stateHuman(raw?: boolean):
|
|
90737
|
+
stateHuman(raw?: boolean): PoolSuiteStateHuman;
|
|
90738
90738
|
}
|
|
90739
90739
|
|
|
90740
90740
|
type abi$6 = typeof priceOracleV3Abi;
|
|
@@ -90753,7 +90753,7 @@ declare class PriceOracleV310Contract extends PriceOracleBaseContract<abi$5> {
|
|
|
90753
90753
|
declare class MarketSuite extends SDKConstruct {
|
|
90754
90754
|
readonly acl: Address;
|
|
90755
90755
|
readonly configurator: MarketConfiguratorContract;
|
|
90756
|
-
readonly
|
|
90756
|
+
readonly pool: PoolSuite;
|
|
90757
90757
|
readonly priceOracle: PriceOracleV300Contract | PriceOracleV310Contract;
|
|
90758
90758
|
readonly creditManagers: CreditSuite[];
|
|
90759
90759
|
/**
|
|
@@ -90778,7 +90778,7 @@ declare class MarketRegister extends SDKConstruct {
|
|
|
90778
90778
|
updatePrices(oracles?: Address[]): Promise<void>;
|
|
90779
90779
|
get state(): MarketData[];
|
|
90780
90780
|
stateHuman(raw?: boolean): MarketStateHuman[];
|
|
90781
|
-
get pools():
|
|
90781
|
+
get pools(): PoolSuite[];
|
|
90782
90782
|
get creditManagers(): CreditSuite[];
|
|
90783
90783
|
get marketConfigurators(): MarketConfiguratorContract[];
|
|
90784
90784
|
findCreditManager(creditManager: Address): CreditSuite;
|
|
@@ -90937,7 +90937,7 @@ interface LinearModelStateHuman extends BaseContractStateHuman {
|
|
|
90937
90937
|
Rslope3: string;
|
|
90938
90938
|
isBorrowingMoreU2Forbidden: boolean;
|
|
90939
90939
|
}
|
|
90940
|
-
interface
|
|
90940
|
+
interface PoolSuiteStateHuman {
|
|
90941
90941
|
pool: PoolStateHuman;
|
|
90942
90942
|
poolQuotaKeeper: PoolQuotaKeeperStateHuman;
|
|
90943
90943
|
linearModel?: LinearModelStateHuman;
|
|
@@ -90948,7 +90948,7 @@ interface ZapperStateHuman extends BaseContractStateHuman {
|
|
|
90948
90948
|
tokenOut: string;
|
|
90949
90949
|
}
|
|
90950
90950
|
interface MarketStateHuman {
|
|
90951
|
-
pool:
|
|
90951
|
+
pool: PoolSuiteStateHuman;
|
|
90952
90952
|
creditManagers: CreditSuiteStateHuman[];
|
|
90953
90953
|
priceOracle: PriceOracleV3StateHuman;
|
|
90954
90954
|
pausableAdmins: string[];
|
|
@@ -97930,4 +97930,4 @@ type MulticallErrorType = GetChainContractAddressErrorType | ReadContractErrorTy
|
|
|
97930
97930
|
*/
|
|
97931
97931
|
declare function simulateMulticall<const contracts extends readonly unknown[], chain extends Chain | undefined, allowFailure extends boolean = true>(client: Client<Transport, chain>, parameters: MulticallParameters<contracts, allowFailure>): Promise<MulticallReturnType<contracts, allowFailure>>;
|
|
97932
97932
|
|
|
97933
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveV2LPToken, type AaveV2Params, type AaveV2PoolTokenData, type AaveV2TokenWrapperContract, type AaveV3Params, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AdapterInterface, type AdapterWithType, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, type AddressProviderState, type AddressProviderV3StateHuman, type AllLPTokens, type Asset, type AssetPriceFeedStateHuman, AssetUtils, type AssetWithAmountInTarget, type AssetWithView, type AuraExtraPoolParams, type AuraLPToken, type AuraLPTokenData, type AuraParams, type AuraPoolContract, type AuraPoolParams, type AuraStakedToken, type AuraStakedTokenData, BLOCKS_PER_WEEK_BY_NETWORK, type BalancerLPToken, type BalancerLpTokenData, type BalancerParams, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, type BaseContractOptions, type BaseContractParams, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, BigIntMath, type BigNumberish, type BotAddresses, type BotBaseType, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, type CaTokenBalance, type CalcAvgQuotaBorrowRateProps, type CalcDefaultQuotaProps, type CalcHealthFactorProps, type CalcMaxLendingDebtProps, type CalcOverallAPYProps, type CalcQuotaBorrowRateProps, type CalcQuotaUpdateProps, type CalcRecommendedQuotaProps, type CalcRelativeBaseBorrowRateProps, CamelotV3AdapterContract, type CamelotV3Params, ChainlinkPriceFeedContract, type ChartsAggregatedPoolPayload, type ChartsAggregatedStats, ChartsCreditManagerData, type ChartsCreditManagerPayload, ChartsPoolData, type ChartsPoolDataPayload, type ClaimFarmRewardsProps, type ClaimLmRewardsV2Props, type ClaimLmRewardsV3Props, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type CompoundV2LPToken, type CompoundV2Params, type CompoundV2PoolContract, type CompoundV2PoolTokenData, type ConnectionOptions, type ContractMethod, type ContractParams, type ConvexExtraPoolParams, type ConvexL2Params, type ConvexL2PoolParams, type ConvexL2StakedToken, type ConvexL2StakedTokenData, type ConvexLPToken, type ConvexLPTokenData, type ConvexParams, type ConvexPhantomTokenData, type ConvexPoolContract, type ConvexPoolParams, type ConvexStakedPhantomToken, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataPayload, type CreditAccountDataSlice, CreditAccountData_Legacy, type CreditAccountFilter, type CreditAccountServiceOptions, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, type CreditManagerData, type CreditManagerDataPayload, CreditManagerData_Legacy, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerDebtParamsSDK, type CreditManagerState, type CreditManagerStateHuman, type CreditManagerType, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, type CreditSessionAsset, type CreditSessionBalancePayload, CreditSessionFiltered, type CreditSessionFilteredPayload, type CreditSessionPayload, type CreditSessionReward, type CreditSessionSortFields, type CreditSessionSortType, type CreditSessionStatus, type CreditSessionsAggregatedStats, type CreditSessionsAggregatedStatsPayload, CreditSuite, type CreditSuiteStateHuman, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurveGEARPoolParams, type CurveLPToken, type CurveLPTokenData, type CurveMetaTokens, type CurveParams, type CurvePoolContract, type CurvePoolStruct, CurveStablePriceFeedContract, type CurveSteCRVPoolParams, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, type DaiUsdsParams, type DieselSimpleTokenData, type DieselSimpleTokenTypes, type DieselStakedTokenData, type DieselStakedTokenTypes, type DieselTokenData, type DieselTokenTypes, type DieselTokenWithStkTypes, type DieselWithStkTokenV3Data, type Display, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, Erc4626PriceFeedContract, type EtherscanURLParam, EventOrTx, type EventOrTxProps, type ExtendedProtocols, type ExtraRewardApy, type FarmInfo, type FindClosePathInput, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxBackendApi, type GearboxExtraMerkleLmReward, type GearboxLmReward, type GearboxMerkleV2LmReward, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, type GearboxStakedV3LmReward, type GearboxState, type GearboxStateHuman, type GearboxToken, type GearboxTokenData, type GetAddressProviderOptions, type GetLmRewardsInfoProps, type GetLmRewardsProps, type GetPointsByPoolProps, type GetTotalTokensOnProtocolProps, type GraphPayload, type IAdapterContract$1 as IAdapterContract, type IAddressProviderContract, type IBaseContract$1 as IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LEVERAGE_DECIMALS, type LPPriceFeedStateHuman, type LPTokenDataI, type LPTokens, type LidoParams, type LidoWsthETHParams, type LinearModel, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, type MarketData, MarketRegister, type MarketStateHuman, MarketSuite, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MellowVaultContract, type MellowVaultParams, type MerkleDistributorInfo, type MetaCurveLPTokenData, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type NormalToken, type NormalTokenData, type OnDemandPriceUpdate, type OpenCAProps, type OpenStrategyResult, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PartialRecord, type PathFinderCloseResult, type PathFinderOpenStrategyResult, type PathFinderResult, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PendleRouterParams, PendleTWAPPTPriceFeed, type PermitResult, PhantomTokenType, PoolContract, type PoolData, type PoolDataExtraPayload, type PoolDataPayload, PoolData_Legacy, PoolFactory, type PoolFactoryStateHuman, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, type PoolType, type PoolZapper, PositionUtils, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, PriceFeedType, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, PriceUtils, Protocols, Provider, type QuotaInfo, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type ReleaseAt, RewardClaimer, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, type SecondaryStatus, type SendRawTxParameters, StakingRewardsAdapterContract, type StakingRewardsContract, type StakingRewardsParams, type StakingRewardsPhantomToken, type StakingRewardsPhantomTokenData, type SupportedContract, type SupportedToken, type SupportedValue, type SwapOperation, type SwapTask, type SyncStateOptions, TESTNET_CHAINS, TIMELOCK, type TVL, TXSwap, type TickerInfo, type TickerToken, type TimeToLiquidationProps, type TokenBase, TokenData, type TokenDataI, type TokenDataPayload, type TokenMetaData, type TokenNetwork, TokenType, type TokensAPYList, TokensMeta, type TokensWithAPY, type TransportOptions, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, type TxSerialized, TxSerializer, TxStakeDiesel, type TxStatus, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, UniswapV2AdapterContract, type UniswapV2Contract, type UniswapV2Params, UniswapV3AdapterContract, type UniswapV3Params, type UniversalParams, type UpdatePriceFeedsResult, type UserCreditSessions, type UserCreditSessionsAggregatedStatsPayload, UserCreditSessionsBuilder, type UserPoolAggregatedStatsPayload, UserPoolData, type UserPoolPayload, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, type VelodromeV2Params, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, type WrapResult, type WrappedAaveV2LPToken, type WrappedAaveV2PoolTokenData, type WrappedToken, type WrappedTokenData, type WrapperAaveV2Params, WstETHPriceFeedContract, WstETHV1AdapterContract, type YearnLPToken, type YearnParams, YearnPriceFeedContract, YearnV2RouterAdapterContract, type YearnVaultContract, type YearnVaultOfCurveLPTokenData, type YearnVaultOfMetaCurveLPTokenData, type YearnVaultTokenData, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, type ZircuitParams, type ZircuitPhantomTokenData, type ZircuitStakedPhantomToken, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|
|
97933
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveV2LPToken, type AaveV2Params, type AaveV2PoolTokenData, type AaveV2TokenWrapperContract, type AaveV3Params, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AdapterInterface, type AdapterWithType, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, type AddressProviderState, type AddressProviderV3StateHuman, type AllLPTokens, type Asset, type AssetPriceFeedStateHuman, AssetUtils, type AssetWithAmountInTarget, type AssetWithView, type AuraExtraPoolParams, type AuraLPToken, type AuraLPTokenData, type AuraParams, type AuraPoolContract, type AuraPoolParams, type AuraStakedToken, type AuraStakedTokenData, BLOCKS_PER_WEEK_BY_NETWORK, type BalancerLPToken, type BalancerLpTokenData, type BalancerParams, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, type BaseContractOptions, type BaseContractParams, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, BigIntMath, type BigNumberish, type BotAddresses, type BotBaseType, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, type CaTokenBalance, type CalcAvgQuotaBorrowRateProps, type CalcDefaultQuotaProps, type CalcHealthFactorProps, type CalcMaxLendingDebtProps, type CalcOverallAPYProps, type CalcQuotaBorrowRateProps, type CalcQuotaUpdateProps, type CalcRecommendedQuotaProps, type CalcRelativeBaseBorrowRateProps, CamelotV3AdapterContract, type CamelotV3Params, ChainlinkPriceFeedContract, type ChartsAggregatedPoolPayload, type ChartsAggregatedStats, ChartsCreditManagerData, type ChartsCreditManagerPayload, ChartsPoolData, type ChartsPoolDataPayload, type ClaimFarmRewardsProps, type ClaimLmRewardsV2Props, type ClaimLmRewardsV3Props, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type CompoundV2LPToken, type CompoundV2Params, type CompoundV2PoolContract, type CompoundV2PoolTokenData, type ConnectionOptions, type ContractMethod, type ContractParams, type ConvexExtraPoolParams, type ConvexL2Params, type ConvexL2PoolParams, type ConvexL2StakedToken, type ConvexL2StakedTokenData, type ConvexLPToken, type ConvexLPTokenData, type ConvexParams, type ConvexPhantomTokenData, type ConvexPoolContract, type ConvexPoolParams, type ConvexStakedPhantomToken, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataPayload, type CreditAccountDataSlice, CreditAccountData_Legacy, type CreditAccountFilter, type CreditAccountServiceOptions, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, type CreditManagerData, type CreditManagerDataPayload, CreditManagerData_Legacy, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerDebtParamsSDK, type CreditManagerState, type CreditManagerStateHuman, type CreditManagerType, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, type CreditSessionAsset, type CreditSessionBalancePayload, CreditSessionFiltered, type CreditSessionFilteredPayload, type CreditSessionPayload, type CreditSessionReward, type CreditSessionSortFields, type CreditSessionSortType, type CreditSessionStatus, type CreditSessionsAggregatedStats, type CreditSessionsAggregatedStatsPayload, CreditSuite, type CreditSuiteStateHuman, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurveGEARPoolParams, type CurveLPToken, type CurveLPTokenData, type CurveMetaTokens, type CurveParams, type CurvePoolContract, type CurvePoolStruct, CurveStablePriceFeedContract, type CurveSteCRVPoolParams, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, type DaiUsdsParams, type DieselSimpleTokenData, type DieselSimpleTokenTypes, type DieselStakedTokenData, type DieselStakedTokenTypes, type DieselTokenData, type DieselTokenTypes, type DieselTokenWithStkTypes, type DieselWithStkTokenV3Data, type Display, ERC4626AdapterContract, type ERC4626LPToken, type ERC4626Params, type ERC4626VaultContract, type ERC4626VaultOfCurveLPTokenData, type ERC4626VaultTokenData, ETH_ADDRESS, EVMEvent, type EVMEventProps, EVMTx, type EVMTxProps, Erc4626PriceFeedContract, type EtherscanURLParam, EventOrTx, type EventOrTxProps, type ExtendedProtocols, type ExtraRewardApy, type FarmInfo, type FindClosePathInput, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxBackendApi, type GearboxExtraMerkleLmReward, type GearboxLmReward, type GearboxMerkleV2LmReward, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, type GearboxStakedV3LmReward, type GearboxState, type GearboxStateHuman, type GearboxToken, type GearboxTokenData, type GetAddressProviderOptions, type GetLmRewardsInfoProps, type GetLmRewardsProps, type GetPointsByPoolProps, type GetTotalTokensOnProtocolProps, type GraphPayload, type IAdapterContract$1 as IAdapterContract, type IAddressProviderContract, type IBaseContract$1 as IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LEVERAGE_DECIMALS, type LPPriceFeedStateHuman, type LPTokenDataI, type LPTokens, type LidoParams, type LidoWsthETHParams, type LinearModel, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, type MarketData, MarketRegister, type MarketStateHuman, MarketSuite, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MellowVaultContract, type MellowVaultParams, type MerkleDistributorInfo, type MetaCurveLPTokenData, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type NormalToken, type NormalTokenData, type OnDemandPriceUpdate, type OpenCAProps, type OpenStrategyResult, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PartialRecord, type PathFinderCloseResult, type PathFinderOpenStrategyResult, type PathFinderResult, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PendleRouterParams, PendleTWAPPTPriceFeed, type PermitResult, PhantomTokenType, PoolContract, type PoolData, type PoolDataExtraPayload, type PoolDataPayload, PoolData_Legacy, type PoolPointsInfo, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, type PoolType, type PoolZapper, PositionUtils, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, PriceFeedType, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, PriceUtils, Protocols, Provider, type QuotaInfo, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type ReleaseAt, RewardClaimer, type Rewards, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, type SecondaryStatus, type SendRawTxParameters, StakingRewardsAdapterContract, type StakingRewardsContract, type StakingRewardsParams, type StakingRewardsPhantomToken, type StakingRewardsPhantomTokenData, type SupportedContract, type SupportedToken, type SupportedValue, type SwapOperation, type SwapTask, type SyncStateOptions, TESTNET_CHAINS, TIMELOCK, type TVL, TXSwap, type TickerInfo, type TickerToken, type TimeToLiquidationProps, type TokenBase, TokenData, type TokenDataI, type TokenDataPayload, type TokenMetaData, type TokenNetwork, TokenType, type TokensAPYList, TokensMeta, type TokensWithAPY, type TransportOptions, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, type TxSerialized, TxSerializer, TxStakeDiesel, type TxStatus, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, UniswapV2AdapterContract, type UniswapV2Contract, type UniswapV2Params, UniswapV3AdapterContract, type UniswapV3Params, type UniversalParams, type UpdatePriceFeedsResult, type UserCreditSessions, type UserCreditSessionsAggregatedStatsPayload, UserCreditSessionsBuilder, type UserPoolAggregatedStatsPayload, UserPoolData, type UserPoolPayload, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, type VelodromeV2Params, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, type WrapResult, type WrappedAaveV2LPToken, type WrappedAaveV2PoolTokenData, type WrappedToken, type WrappedTokenData, type WrapperAaveV2Params, WstETHPriceFeedContract, WstETHV1AdapterContract, type YearnLPToken, type YearnParams, YearnPriceFeedContract, YearnV2RouterAdapterContract, type YearnVaultContract, type YearnVaultOfCurveLPTokenData, type YearnVaultOfMetaCurveLPTokenData, type YearnVaultTokenData, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, type ZircuitParams, type ZircuitPhantomTokenData, type ZircuitStakedPhantomToken, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -58615,7 +58615,7 @@ var PoolQuotaKeeperContract = class extends BaseContract {
|
|
|
58615
58615
|
quotas: this.quotas.entries().reduce(
|
|
58616
58616
|
(acc, [address, params]) => ({
|
|
58617
58617
|
...acc,
|
|
58618
|
-
[address]: {
|
|
58618
|
+
[this.labelAddress(address)]: {
|
|
58619
58619
|
rate: percentFmt(params.rate, raw),
|
|
58620
58620
|
quotaIncreaseFee: percentFmt(params.quotaIncreaseFee, raw),
|
|
58621
58621
|
totalQuoted: formatBNvalue(
|
|
@@ -58650,8 +58650,8 @@ var PoolQuotaKeeperContract = class extends BaseContract {
|
|
|
58650
58650
|
}
|
|
58651
58651
|
};
|
|
58652
58652
|
|
|
58653
|
-
// src/sdk/market/
|
|
58654
|
-
var
|
|
58653
|
+
// src/sdk/market/PoolSuite.ts
|
|
58654
|
+
var PoolSuite = class extends SDKConstruct {
|
|
58655
58655
|
pool;
|
|
58656
58656
|
pqk;
|
|
58657
58657
|
gauge;
|
|
@@ -65651,16 +65651,10 @@ var PriceOracleBaseContract = class extends BaseContract {
|
|
|
65651
65651
|
return {
|
|
65652
65652
|
...super.stateHuman(raw),
|
|
65653
65653
|
mainPriceFeeds: Object.fromEntries(
|
|
65654
|
-
this.mainPriceFeeds.entries().map(([token, v]) => [
|
|
65655
|
-
this.labelAddress(token),
|
|
65656
|
-
v.stateHuman(raw)
|
|
65657
|
-
])
|
|
65654
|
+
this.mainPriceFeeds.entries().map(([token, v]) => [this.labelAddress(token), v.stateHuman(raw)])
|
|
65658
65655
|
),
|
|
65659
65656
|
reservePriceFeeds: Object.fromEntries(
|
|
65660
|
-
this.reservePriceFeeds.entries().map(([token, v]) => [
|
|
65661
|
-
this.labelAddress(token),
|
|
65662
|
-
v.stateHuman(raw)
|
|
65663
|
-
])
|
|
65657
|
+
this.reservePriceFeeds.entries().map(([token, v]) => [this.labelAddress(token), v.stateHuman(raw)])
|
|
65664
65658
|
)
|
|
65665
65659
|
};
|
|
65666
65660
|
}
|
|
@@ -65747,7 +65741,7 @@ var PriceOracleV310Contract = class extends PriceOracleBaseContract {
|
|
|
65747
65741
|
var MarketSuite = class extends SDKConstruct {
|
|
65748
65742
|
acl;
|
|
65749
65743
|
configurator;
|
|
65750
|
-
|
|
65744
|
+
pool;
|
|
65751
65745
|
priceOracle;
|
|
65752
65746
|
creditManagers = [];
|
|
65753
65747
|
/**
|
|
@@ -65777,7 +65771,7 @@ var MarketSuite = class extends SDKConstruct {
|
|
|
65777
65771
|
sdk.tokensMeta.upsert(t.addr, t);
|
|
65778
65772
|
sdk.provider.addressLabels.set(t.addr, t.symbol);
|
|
65779
65773
|
}
|
|
65780
|
-
this.
|
|
65774
|
+
this.pool = new PoolSuite(sdk, marketData);
|
|
65781
65775
|
this.zappers = marketData.zappers;
|
|
65782
65776
|
for (let i = 0; i < marketData.creditManagers.length; i++) {
|
|
65783
65777
|
this.creditManagers.push(new CreditSuite(sdk, marketData, i));
|
|
@@ -65797,11 +65791,11 @@ var MarketSuite = class extends SDKConstruct {
|
|
|
65797
65791
|
}
|
|
65798
65792
|
}
|
|
65799
65793
|
get dirty() {
|
|
65800
|
-
return this.configurator.dirty || this.
|
|
65794
|
+
return this.configurator.dirty || this.pool.dirty || this.priceOracle.dirty || this.creditManagers.some((cm) => cm.dirty);
|
|
65801
65795
|
}
|
|
65802
65796
|
stateHuman(raw = true) {
|
|
65803
65797
|
return {
|
|
65804
|
-
pool: this.
|
|
65798
|
+
pool: this.pool.stateHuman(raw),
|
|
65805
65799
|
creditManagers: this.creditManagers.map((cm) => cm.stateHuman(raw)),
|
|
65806
65800
|
priceOracle: this.priceOracle.stateHuman(raw),
|
|
65807
65801
|
pausableAdmins: this.state.pausableAdmins.map((a) => this.labelAddress(a)),
|
|
@@ -65849,7 +65843,7 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65849
65843
|
await this.#loadMarkets(marketConfigurators, [], ignoreUpdateablePrices);
|
|
65850
65844
|
}
|
|
65851
65845
|
async syncState() {
|
|
65852
|
-
const pools = this.markets.filter((m) => m.dirty).map((m) => m.
|
|
65846
|
+
const pools = this.markets.filter((m) => m.dirty).map((m) => m.pool.pool.address);
|
|
65853
65847
|
if (pools.length) {
|
|
65854
65848
|
this.#logger?.debug(`need to reload ${pools.length} markets`);
|
|
65855
65849
|
await this.#loadMarkets([], pools);
|
|
@@ -65934,7 +65928,7 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
65934
65928
|
return this.markets.map((market) => market.stateHuman(raw));
|
|
65935
65929
|
}
|
|
65936
65930
|
get pools() {
|
|
65937
|
-
return this.markets.map((market) => market.
|
|
65931
|
+
return this.markets.map((market) => market.pool);
|
|
65938
65932
|
}
|
|
65939
65933
|
get creditManagers() {
|
|
65940
65934
|
return this.markets.flatMap((market) => market.creditManagers);
|
|
@@ -66835,8 +66829,8 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66835
66829
|
to,
|
|
66836
66830
|
calls: openPathCalls
|
|
66837
66831
|
} = props;
|
|
66838
|
-
const
|
|
66839
|
-
const cm =
|
|
66832
|
+
const cmSuite = this.sdk.marketRegister.findCreditManager(creditManager);
|
|
66833
|
+
const cm = cmSuite.creditManager;
|
|
66840
66834
|
const priceUpdatesCalls = await this.getPriceUpdatesForFacade(
|
|
66841
66835
|
cm.address,
|
|
66842
66836
|
undefined,
|
|
@@ -66850,13 +66844,9 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66850
66844
|
...openPathCalls,
|
|
66851
66845
|
...withdrawDebt ? [this.#prepareWithdrawToken(cm.creditFacade, cm.underlying, debt, to)] : []
|
|
66852
66846
|
];
|
|
66853
|
-
const tx =
|
|
66854
|
-
to,
|
|
66855
|
-
calls,
|
|
66856
|
-
referralCode
|
|
66857
|
-
);
|
|
66847
|
+
const tx = cmSuite.creditFacade.openCreditAccount(to, calls, referralCode);
|
|
66858
66848
|
tx.value = ethAmount.toString(10);
|
|
66859
|
-
return { calls, tx, creditFacade:
|
|
66849
|
+
return { calls, tx, creditFacade: cmSuite.creditFacade };
|
|
66860
66850
|
}
|
|
66861
66851
|
/**
|
|
66862
66852
|
* Internal wrapper for CreditAccountCompressor.getCreditAccounts + price updates wrapped into multicall
|
|
@@ -66907,7 +66897,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66907
66897
|
const market = this.sdk.marketRegister.findByCreditManager(
|
|
66908
66898
|
acc.creditManager
|
|
66909
66899
|
);
|
|
66910
|
-
const pool = market.
|
|
66900
|
+
const pool = market.pool.pool.address;
|
|
66911
66901
|
oracleByPool.set(pool, market.priceOracle);
|
|
66912
66902
|
for (const t of acc.tokens) {
|
|
66913
66903
|
if (t.balance > 10n) {
|
|
@@ -66918,9 +66908,9 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66918
66908
|
}
|
|
66919
66909
|
}
|
|
66920
66910
|
const priceFeeds = [];
|
|
66921
|
-
for (const [pool,
|
|
66911
|
+
for (const [pool, oracle] of oracleByPool.entries()) {
|
|
66922
66912
|
const tokens = Array.from(tokensByPool.get(pool) ?? []);
|
|
66923
|
-
priceFeeds.push(...
|
|
66913
|
+
priceFeeds.push(...oracle.priceFeedsForTokens(tokens));
|
|
66924
66914
|
}
|
|
66925
66915
|
return this.sdk.priceFeeds.generatePriceFeedsUpdateTxs(priceFeeds);
|
|
66926
66916
|
}
|
|
@@ -66931,7 +66921,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66931
66921
|
const caBalancesRecord = creditAccount ? assetsMap(creditAccount.tokens) : creditAccount;
|
|
66932
66922
|
const market = this.sdk.marketRegister.findByCreditManager(creditManager);
|
|
66933
66923
|
const cm = this.sdk.marketRegister.findCreditManager(creditManager).creditManager;
|
|
66934
|
-
const pool = market.
|
|
66924
|
+
const pool = market.pool.pool.address;
|
|
66935
66925
|
oracleByPool.set(pool, market.priceOracle);
|
|
66936
66926
|
const insertToken = (p, t) => {
|
|
66937
66927
|
const tokens = tokensByPool.get(p) ?? /* @__PURE__ */ new Set();
|
|
@@ -73691,4 +73681,4 @@ var GearboxSDK = class _GearboxSDK {
|
|
|
73691
73681
|
}
|
|
73692
73682
|
};
|
|
73693
73683
|
|
|
73694
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractPriceFeedContract, AdapterInterface, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, AssetUtils, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, BaseContract, BigIntMath, BotListContract, BotPermissions, BotsService, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, CamelotV3AdapterContract, ChainlinkPriceFeedContract, ChartsCreditManagerData, ChartsPoolData, CompositePriceFeedContract, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, CreditAccountData_Legacy, CreditAccountsService, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, CreditFacadeV300Contract, CreditFacadeV310Contract, CreditManagerData_Legacy, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, CreditSessionFiltered, CreditSuite, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, ERC4626AdapterContract, ETH_ADDRESS, EVMEvent, EVMTx, Erc4626PriceFeedContract, EventOrTx, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, GaugeStakingService, GearStakingContract, GearboxBackendApi, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, LEVERAGE_DECIMALS, LinearModelContract, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, MarketRegister, MarketSuite, MellowLRTPriceFeedContract, MellowVaultAdapterContract, NOT_DEPLOYED, NO_VERSION, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PhantomTokenType, PoolContract, PoolData_Legacy,
|
|
73684
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractPriceFeedContract, AdapterInterface, AddressLabeller, AddressMap, AddressProviderContractV3, AddressProviderContractV3_1, AssetUtils, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, BaseContract, BigIntMath, BotListContract, BotPermissions, BotsService, BoundedPriceFeedContract, CAMELOT_V3_QUOTER, CREDIT_SESSION_ID_BY_STATUS, CREDIT_SESSION_STATUS_BY_ID, CamelotV3AdapterContract, ChainlinkPriceFeedContract, ChartsCreditManagerData, ChartsPoolData, CompositePriceFeedContract, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, CreditAccountData_Legacy, CreditAccountsService, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, CreditFacadeV300Contract, CreditFacadeV310Contract, CreditManagerData_Legacy, CreditManagerV300Contract, CreditManagerV310Contract, CreditSession, CreditSessionFiltered, CreditSuite, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve3CrvUnderlyingTokenIndex, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DEPRECIATED_POOLS, DUMB_ADDRESS, DUMB_ADDRESS2, DUMB_ADDRESS3, DUMB_ADDRESS4, DaiUsdsAdapterContract, ERC4626AdapterContract, ETH_ADDRESS, EVMEvent, EVMTx, Erc4626PriceFeedContract, EventOrTx, GAUGE_COMPRESSORS, GEARBOX_MULTISIG, GEARBOX_RISK_CURATORS, GaugeContract, GaugeStakingService, GearStakingContract, GearboxBackendApi, GearboxRewardsApi, GearboxRewardsApy, GearboxRewardsExtraApy, GearboxSDK, LEVERAGE_DECIMALS, LinearModelContract, MAX_INT, MAX_UINT16, MAX_UINT256, MELLOW_COLLECTOR, MIN_INT96, MULTICALL_ADDRESS, MarketRegister, MarketSuite, MellowLRTPriceFeedContract, MellowVaultAdapterContract, NOT_DEPLOYED, NO_VERSION, PANCAKESWAP_V3_QUOTER, PENDLE_ROUTER_STATIC_ARBITRUM, PENDLE_ROUTER_STATIC_MAINNET, PENDLE_ROUTER_STATIC_OPTIMISM, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PhantomTokenType, PoolContract, PoolData_Legacy, PoolQuotaKeeperContract, PoolSuite, PositionUtils, PriceFeedRef, PriceFeedRegister, PriceFeedType, PriceOracleV300Contract, PriceOracleV310Contract, PriceUtils, Protocols, Provider, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RedstonePriceFeedContract, RewardClaimer, RouterV3Contract, SDKConstruct, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, SUPPORTED_CHAINS, StakingRewardsAdapterContract, TESTNET_CHAINS, TIMELOCK, TXSwap, TokenData, TokenType, TokensMeta, TxAddBot, TxAddCollateral, TxAddLiquidity, TxApprove, TxClaimNFT, TxClaimRewards, TxCloseAccount, TxDecreaseBorrowAmount, TxGaugeClaim, TxGaugeStake, TxGaugeUnstake, TxGaugeVote, TxIncreaseBorrowAmount, TxLiquidateAccount, TxOpenMultitokenAccount, TxRemoveBot, TxRemoveLiquidity, TxRepayAccount, TxSerializer, TxStakeDiesel, TxUnstakeDiesel, TxUpdateQuota, TxWithdrawCollateral, TypedObjectUtils, UNISWAP_V3_QUOTER, URLApi, USDC, USDT, UniswapV2AdapterContract, UniswapV3AdapterContract, UserCreditSessionsBuilder, UserPoolData, VELODROME_CL_QUOTER, VELODROME_V2_CL_FACTORY, VELODROME_V2_DEFAULT_FACTORY, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WETH, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, YearnV2RouterAdapterContract, ZeroPriceFeedContract, aaveV2Tokens, aaveV2WrapperAbi, accountFactoryV3Abi, aclAbi, aclNonReentrantTraitAbi, assetsMap, auraDepositorAbi, auraLpTokenByPid, auraLpTokens, auraPathResolverAbi, auraPoolByPid, auraStakedTokens, auraTokens, auraWithdrawerAbi, balancerLpDepositorAbi, balancerLpPathResolverAbi, balancerLpTokens, balancerLpWithdrawerAbi, balancerSwapperAbi, balancerV2VaultAdapterAbi, balancesMap, batchLiquidationEstimatorAbi, batchesChainAbi, botListV3Abi, botPermissionsToString, boundedPriceFeedAbi, bptStablePriceFeedAbi, bptWeightedPriceFeedAbi, bytes32ToString, camelotV3AdapterAbi, camelotV3SwapperAbi, chainlinkReadableAggregatorAbi, chains, childLogger, closePathResolverAbi, compositePriceFeedAbi, compoundV2Tokens, compoundV2WrapperAbi, connectors, contractParams, contractsByAddress, contractsByNetwork, contractsRegisterAbi, controllerTimelockV3Abi, convexDepositorAbi, convexL2StakedTokens, convexLpTokenByPid, convexLpTokens, convexPathResolverAbi, convexPoolByPid, convexStakedPhantomTokens, convexTokens, convexV1BaseRewardPoolAdapterAbi, convexV1BoosterAdapterAbi, convexWithdrawerAbi, createAdapter, createRawTx, createTransport, creditConfiguratorV3Abi, creditFacadeV3Abi, creditManagerV3Abi, creditManagerV3UsdtAbi, curveCryptoLpPriceFeedAbi, curveLpDepositorAbi, curveLpPathResolverAbi, curveLpWithdrawerAbi, curveMetaTokens, curveStableLpPriceFeedAbi, curveSwapperAbi, curveTokens, curveUsdPriceFeedAbi, curveV1Adapter2AssetsAbi, curveV1Adapter3AssetsAbi, curveV1Adapter4AssetsAbi, curveV1AdapterDepositAbi, curveV1AdapterStEthAbi, curveV1AdapterStableNgAbi, dataCompressorV3Abi, decimals, degenDistributorV3Abi, degenNftv2Abi, detectChain, detectNetwork, erc20Abi, erc4626AdapterAbi, erc4626DepositorAbi, erc4626PathResolverAbi, erc4626PriceFeedAbi, erc4626Tokens, erc4626WithdrawerAbi, errorAbis, etherscanUrl, faucetAbi, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, gaugeV3Abi, gearStakingV3Abi, gearTokens, getAddressProvider, getConnectors, getDecimals, getNetworkType, getProtocolData, getTokenSymbol, getTokenSymbolOrTicker, halfRAY, iAdapterAbi, iAddressProviderV3Abi, iAddressProviderV3_1Abi, iAirdropDistributorAbi, iArbTokenAbi, iBalancerStablePoolAbi, iBalancerWeightedPoolAbi, iBaseRewardPoolAbi, iCamelotV3QuoterAbi, iConvexTokenAbi, iCreditAccountCompressorAbi, iCreditConfiguratorV310Abi, iCreditFacadeV2Abi, iCreditFacadeV2EventsAbi, iCreditFacadeV2ExceptionsAbi, iCreditFacadeV2ExtendedAbi, iCreditFacadeV2V2Abi, iCreditFacadeV310Abi, iCreditFacadeV310MulticallAbi, iCreditFacadeV3Abi, iCreditFacadeV3EventsAbi, iCreditFacadeV3MulticallAbi, iCreditManagerV310Abi, iCurvePoolAbi, iDaiUsdsAdapterAbi, iDataCompressorV3Abi, iDegenDistributorAbi, iDegenNftv2Abi, iDegenNftv2EventsAbi, iDegenNftv2ExceptionsAbi, iExceptionsAbi, iFarmingPoolAbi, iInterestRateModelAbi, iLegacyMintableErc20Abi, iMarketCompressorAbi, iMarketConfiguratorV310Abi, iMellowVaultAbi, iMellowVaultAdapterAbi, iMulticall3Abi, iOffchainOracleAbi, iOptimismMintableErc20Abi, iPendleRouterAdapterAbi, iPoolV3Abi, iPoolV3EventsAbi, iPriceFeedAbi, iPriceFeedCompressorAbi, iPriceOracleV310Abi, iPriceOracleV3Abi, iPriceOracleV3EventsAbi, iRedstoneErrorsAbi, iRedstonePriceFeedEventsAbi, iRedstonePriceFeedExceptionsAbi, iRouterV3ErrorsAbi, iStakingRewardsAdapterAbi, iSwapperAbi, iUpdatablePriceFeedAbi, iVersionAbi, iZapperAbi, ierc20Abi, ierc20MetadataAbi, ierc20PermitAbi, ierc20ZapperDepositsAbi, iethZapperDepositsAbi, ilpPriceFeedAbi, ilpPriceFeedEventsAbi, ilpPriceFeedExceptionsAbi, inflationAttackBlockerAbi, insolvencyCheckerAbi, isAaveV2LPToken, isAuraLPToken, isAuraStakedToken, isAuraToken, isBalancerLPToken, isCompoundV2LPToken, isConvexL2StakedToken, isConvexLPToken, isConvexStakedPhantomToken, isConvexToken, isCurveLPToken, isCurveMetaToken, isDieselSimpleToken, isDieselStakedToken, isDieselToken, isDieselWithStkToken, isERC4626LPToken, isExtendedProtocol, isExtraFarmToken, isFarmToken, isLPToken, isLRT_LSTToken, isNormalToken, isStakingRewardsPhantomToken, isSupportedContract, isSupportedNetwork, isSupportedToken, isTokenWithAPY, isWrappedToken, isYearnLPToken, isZircuitStakedPhantomToken, iwstEthAbi, iyVaultAbi, json_parse, json_stringify, lidoSwapperAbi, lidoV1AdapterAbi, linearInterestRateModelV3Abi, lpTokens, mellowLrtPriceFeedAbi, multiPauseAbi, nonQuoted, normalTokens, numberWithCommas, overrideAggregatorAbi, partialLiquidationBotV3Abi, pendleTWAPPTPriceFeedAbi, percentFmt, poolQuotaKeeperV3Abi, poolV3Abi, poolV3UsdtAbi, priceFeedMultiplierAbi, priceOracleV3Abi, rawTxToMulticallPriceUpdate, rayToNumber, redstonePriceFeedAbi, routerV3Abi, sendRawTx, shortAddress, shortHash, simulateMulticall, stakingRewardsPhantomTokens, stakingRewardsTokens, supportedTokens, susdeOverriderAbi, swapAggregatorAbi, tickerInfoTokensByNetwork, tickerSymbolByAddress, tickerTokensByNetwork, toBN, toBigInt, toHumanFormat, toSignificant, tokenDataByNetwork, tokenStealerAbi, tokenSymbolByAddress, underlyingDepositZapperAbi, underlyingFarmingZapperAbi, uniswapV2AdapterAbi, uniswapV2SwapperAbi, uniswapV3AdapterAbi, uniswapV3SwapperAbi, velodromeV2RouterAdapterAbi, velodromeV2SwapperAbi, wethDepositZapperAbi, wethFarmingZapperAbi, wrapAggregatorAbi, wrappedAaveV2Tokens, wrappedTokens, wstEthPriceFeedAbi, wstEthSwapperAbi, wstEthv1AdapterAbi, yearnDepositorAbi, yearnPathResolverAbi, yearnPriceFeedAbi, yearnTokens, yearnV2AdapterAbi, yearnWithdrawerAbi, zapperRegisterAbi, zeroPriceFeedAbi, zircuitStakedPhantomTokens, zircuitStakedTokenByToken, zircuitTokens };
|