@t2000/cli 1.24.1 → 1.24.2
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/{chunk-HMCFZXVY.js → chunk-5MIJ3Y2T.js} +14 -3
- package/dist/{chunk-HMCFZXVY.js.map → chunk-5MIJ3Y2T.js.map} +1 -1
- package/dist/{dist-GBPSZNJO.js → dist-HF73WWOL.js} +2 -2
- package/dist/{dist-GBPSZNJO.js.map → dist-HF73WWOL.js.map} +1 -1
- package/dist/{dist-7HXMGXYB.js → dist-YIIK3AKD.js} +2 -2
- package/dist/index.js +3 -3
- package/package.json +3 -3
- /package/dist/{dist-7HXMGXYB.js.map → dist-YIIK3AKD.js.map} +0 -0
|
@@ -23292,7 +23292,8 @@ async function addHarvestToTx(tx, client, address, options = {}) {
|
|
|
23292
23292
|
amount: aggRow.amount,
|
|
23293
23293
|
slippage,
|
|
23294
23294
|
inputCoin: coin,
|
|
23295
|
-
providers: options.providers
|
|
23295
|
+
providers: options.providers,
|
|
23296
|
+
overlayFee: options.overlayFee
|
|
23296
23297
|
});
|
|
23297
23298
|
usdcHandles.push(swapResult.coin);
|
|
23298
23299
|
expectedUsdcDeposited += swapResult.expectedAmountOut;
|
|
@@ -23326,6 +23327,14 @@ async function addHarvestToTx(tx, client, address, options = {}) {
|
|
|
23326
23327
|
tx.mergeCoins(primary, rest);
|
|
23327
23328
|
depositCoin = primary;
|
|
23328
23329
|
}
|
|
23330
|
+
if (options.saveFeeHook) {
|
|
23331
|
+
await options.saveFeeHook({
|
|
23332
|
+
tx,
|
|
23333
|
+
coin: depositCoin,
|
|
23334
|
+
input: { asset: "USDC", amount: expectedUsdcDeposited },
|
|
23335
|
+
sender: address
|
|
23336
|
+
});
|
|
23337
|
+
}
|
|
23329
23338
|
try {
|
|
23330
23339
|
await addSaveToTx(tx, client, address, depositCoin, { asset: "USDC" });
|
|
23331
23340
|
} catch (err) {
|
|
@@ -23561,7 +23570,9 @@ var WRITE_APPENDER_REGISTRY = {
|
|
|
23561
23570
|
const plan = await addHarvestToTx(tx, ctx.client, ctx.sender, {
|
|
23562
23571
|
slippage: input.slippage,
|
|
23563
23572
|
minRewardUsd: input.minRewardUsd,
|
|
23564
|
-
providers
|
|
23573
|
+
providers,
|
|
23574
|
+
overlayFee: ctx.overlayFee,
|
|
23575
|
+
saveFeeHook: ctx.feeHooks?.save_deposit
|
|
23565
23576
|
});
|
|
23566
23577
|
return {
|
|
23567
23578
|
preview: {
|
|
@@ -24130,4 +24141,4 @@ axios/dist/node/axios.cjs:
|
|
|
24130
24141
|
@scure/bip39/index.js:
|
|
24131
24142
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
24132
24143
|
*/
|
|
24133
|
-
//# sourceMappingURL=chunk-
|
|
24144
|
+
//# sourceMappingURL=chunk-5MIJ3Y2T.js.map
|