@strkfarm/sdk 2.0.0-staging.49 → 2.0.0-staging.50
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/index.browser.global.js +18 -1155
- package/dist/index.browser.mjs +18 -1157
- package/dist/index.d.ts +6 -3
- package/dist/index.js +18 -1157
- package/dist/index.mjs +18 -1157
- package/package.json +1 -1
- package/src/strategies/yoloVault.ts +25 -16
- package/src/data/yoloVault.abi.json +0 -1141
package/dist/index.d.ts
CHANGED
|
@@ -1274,13 +1274,16 @@ declare class YoLoVault extends BaseStrategy<DualTokenInfo, SingleActionAmount,
|
|
|
1274
1274
|
readonly address: ContractAddr;
|
|
1275
1275
|
readonly metadata: IStrategyMetadata<YoloVaultSettings>;
|
|
1276
1276
|
readonly pricer: PricerBase;
|
|
1277
|
-
|
|
1277
|
+
/** Resolves to a `Contract` built from `provider.getClassAt` at the vault address (no checked-in vault ABI). */
|
|
1278
|
+
readonly contract: Promise<Contract>;
|
|
1278
1279
|
readonly primaryToken: TokenInfo;
|
|
1279
1280
|
readonly secondaryToken: TokenInfo;
|
|
1280
1281
|
readonly erc4626: YoloErc4626RuntimeConfig;
|
|
1281
1282
|
constructor(config: IConfig, pricer: PricerBase, metadata: IStrategyMetadata<YoloVaultSettings>);
|
|
1282
|
-
|
|
1283
|
-
|
|
1283
|
+
/** Underlying (or base token) used for pricing / swap sell leg when base is ERC-4626. */
|
|
1284
|
+
tokenForPrimaryPricing(): TokenInfo;
|
|
1285
|
+
/** Underlying (or second token) for price ratios when second leg is ERC-4626 (e.g. STRK for xSTRK). */
|
|
1286
|
+
tokenForSecondaryPricing(): TokenInfo;
|
|
1284
1287
|
private primaryAmountDecimals;
|
|
1285
1288
|
private secondaryAmountDecimals;
|
|
1286
1289
|
private convertWrapperSharesToUnderlying;
|