@ape.swap/bonds-sdk 4.4.0-test.2 → 4.4.0-test.3
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/main.js +1 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -80627,11 +80627,8 @@ const BuyComponentSolana = ({ onDismiss, bondAddress, bondChain, isProjectView,
|
|
|
80627
80627
|
: ((_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.token) === null || _a === void 0 ? void 0 : _a.address) === null || _b === void 0 ? void 0 : _b[bondChain]) === null || _c === void 0 ? void 0 : _c.toLowerCase()) ===
|
|
80628
80628
|
((_e = (_d = inputToken === null || inputToken === void 0 ? void 0 : inputToken.address) === null || _d === void 0 ? void 0 : _d[bondChain]) === null || _e === void 0 ? void 0 : _e.toLowerCase());
|
|
80629
80629
|
});
|
|
80630
|
-
|
|
80630
|
+
enrichedTokenData === null || enrichedTokenData === void 0 ? void 0 : enrichedTokenData.balance;
|
|
80631
80631
|
const inputTokenPriceFromList = enrichedTokenData === null || enrichedTokenData === void 0 ? void 0 : enrichedTokenData.price;
|
|
80632
|
-
// Use the sorted list balance/price if available, otherwise fall back to existing
|
|
80633
|
-
const finalInputCurrencyBalance = inputCurrencyBalanceFromList !== null && inputCurrencyBalanceFromList !== void 0 ? inputCurrencyBalanceFromList : inputCurrencyBalance;
|
|
80634
|
-
console.log(finalInputCurrencyBalance);
|
|
80635
80632
|
const finalInputTokenPrice = inputTokenPriceFromList !== null && inputTokenPriceFromList !== void 0 ? inputTokenPriceFromList : inputTokenPrice === null || inputTokenPrice === void 0 ? void 0 : inputTokenPrice.price;
|
|
80636
80633
|
// Estimations - use zapDepositAmount if swapping
|
|
80637
80634
|
const depositAmount = isZap ? zapDepositAmount : inputValue;
|