@ape.swap/bonds-sdk 3.0.93 → 3.0.94

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.
Files changed (2) hide show
  1. package/dist/main.js +4 -7
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -22499,7 +22499,7 @@ const SoulZapTokenManager = {
22499
22499
  [types.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
22500
22500
  [types.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
22501
22501
  [types.ChainId.BERACHAIN]: '0xcFd581f15433899d093ca1ADfc3aC13c37DBfbe7',
22502
- [types.ChainId.SONIC]: '0x70005da62e17041977f7f99f91098b125ccde1a7',
22502
+ [types.ChainId.SONIC]: '0x173E473b314506324E10aD54978d25E1F54bCa48',
22503
22503
  };
22504
22504
  const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
22505
22505
  const LENS_CONTRACT = {
@@ -79278,7 +79278,7 @@ const TransactionModal = ({ onDismiss, txChain, approvalState, approveCallback,
79278
79278
  };
79279
79279
 
79280
79280
  const BuyBond = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond, isProjectView }) => {
79281
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
79281
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
79282
79282
  const SDKConfig = useSDKConfig();
79283
79283
  // Hooks
79284
79284
  const userChainId = useChainId();
@@ -79322,10 +79322,7 @@ const BuyBond = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond, isPro
79322
79322
  $${formatUSDNumber((parseFloat(inputValue) * (inputTokenPrice !== null && inputTokenPrice !== void 0 ? inputTokenPrice : 0)).toString())}`;
79323
79323
  // Validations
79324
79324
  const isGoldRush = ((_f = bondData === null || bondData === void 0 ? void 0 : bondData.billArt) === null || _f === void 0 ? void 0 : _f.collection) === types.BillArtCollection.GoldenTicket_Collection1;
79325
- const zapEnabled = ((_h = (_g = bondData === null || bondData === void 0 ? void 0 : bondData.contractAddress) === null || _g === void 0 ? void 0 : _g[bondData === null || bondData === void 0 ? void 0 : bondData.chainId]) === null || _h === void 0 ? void 0 : _h.toLowerCase()) ===
79326
- '0x355ff1Ae557F4D620e1e1e5fac98a8dE03D5e9bC'.toLowerCase()
79327
- ? false
79328
- : supportedByLIFI.includes(bondData === null || bondData === void 0 ? void 0 : bondData.chainId);
79325
+ const zapEnabled = supportedByLIFI.includes(bondData === null || bondData === void 0 ? void 0 : bondData.chainId);
79329
79326
  const exceedsMaxBuy = maxBuy(bondData).lt(getPayoutAmount(bondData, depositAmount, userPoints !== null && userPoints !== void 0 ? userPoints : '0'));
79330
79327
  const exceedsBalance = new BigNumber$1(inputCurrencyBalance !== null && inputCurrencyBalance !== void 0 ? inputCurrencyBalance : '0').lt(inputValue);
79331
79328
  // Loading State
@@ -79351,7 +79348,7 @@ const BuyBond = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond, isPro
79351
79348
  });
79352
79349
  };
79353
79350
  // Approve & Purchase Functions
79354
- const [approvalState, approveCallback] = useApproval(inputValue, inputToken !== null && inputToken !== void 0 ? inputToken : null, (_k = (isZap ? SoulZapTokenManager === null || SoulZapTokenManager === void 0 ? void 0 : SoulZapTokenManager[bondData === null || bondData === void 0 ? void 0 : bondData.chainId] : (_j = bondData === null || bondData === void 0 ? void 0 : bondData.contractAddress) === null || _j === void 0 ? void 0 : _j[bondData.chainId])) !== null && _k !== void 0 ? _k : null, account !== null && account !== void 0 ? account : null, (_l = bondData === null || bondData === void 0 ? void 0 : bondData.chainId) !== null && _l !== void 0 ? _l : null);
79351
+ const [approvalState, approveCallback] = useApproval(inputValue, inputToken !== null && inputToken !== void 0 ? inputToken : null, (_h = (isZap ? SoulZapTokenManager === null || SoulZapTokenManager === void 0 ? void 0 : SoulZapTokenManager[bondData === null || bondData === void 0 ? void 0 : bondData.chainId] : (_g = bondData === null || bondData === void 0 ? void 0 : bondData.contractAddress) === null || _g === void 0 ? void 0 : _g[bondData.chainId])) !== null && _h !== void 0 ? _h : null, account !== null && account !== void 0 ? account : null, (_j = bondData === null || bondData === void 0 ? void 0 : bondData.chainId) !== null && _j !== void 0 ? _j : null);
79355
79352
  const handleApprove = () => __awaiter$9(void 0, void 0, void 0, function* () {
79356
79353
  return approveCallback().then(() => {
79357
79354
  track({
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "3.0.93",
6
+ "version": "3.0.94",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",