@ape.swap/bonds-sdk 4.0.0-test.17 → 4.0.0-test.18

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 +2 -5
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -85997,8 +85997,6 @@ const BuyBond$1 = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond, isP
85997
85997
  const maxPrice = new BigNumber$1(trueBondPrice !== null && trueBondPrice !== void 0 ? trueBondPrice : '0').times(102).div(100).toFixed(0); // multiply it by 1.02
85998
85998
  const rawAmount = adjustDecimals(inputValue);
85999
85999
  const amount = new BigNumber$1(rawAmount).times(new BigNumber$1(10).pow(decimals !== null && decimals !== void 0 ? decimals : 18)).toString();
86000
- console.log(maxPrice);
86001
- console.log(trueBondPrice);
86002
86000
  const shouldUseSig = (bondData === null || bondData === void 0 ? void 0 : bondData.billVersion) === types$1.BillVersion.V4 && SDKConfig.useTiers;
86003
86001
  const args = shouldUseSig ? [amount, maxPrice, account, tierProofSig] : [amount, maxPrice, account];
86004
86002
  const hash = yield writeContractAsync({
@@ -86306,8 +86304,6 @@ const BuyBond = ({ onDismiss, bondAddress, bondChain, isProjectView, setBillId }
86306
86304
  .times((100 + slippage) / 100)
86307
86305
  .dividedBy(new BigNumber$1(1e6))
86308
86306
  .toFixed(0);
86309
- console.log(maxPrice);
86310
- console.log(trueBondPriceWithoutFee);
86311
86307
  // Static addresses
86312
86308
  const bondIssuancePda = new PublicKey(bondData.contractAddress[bondData.chainId]);
86313
86309
  const principalMint = new PublicKey(bondData.lpToken.address[bondData.chainId]);
@@ -86453,7 +86449,8 @@ const BuyBond = ({ onDismiss, bondAddress, bondChain, isProjectView, setBillId }
86453
86449
  !accountSolana ||
86454
86450
  !inputValue ||
86455
86451
  parseFloat(inputValue) === 0 ||
86456
- exceedsMaxBuy, onClick: handleOpenModal, sx: { width: ['100%', '100%', '100%', '65%'] }, children: exceedsMaxBuy ? 'Exceeds Max Buy' : exceedsBalance ? 'Insufficient balance' : `buy` })] })) }) })] }) })) : (jsx$2(Fragment$1, {}));
86452
+ exceedsMaxBuy ||
86453
+ exceedsBalance, onClick: handleOpenModal, sx: { width: ['100%', '100%', '100%', '65%'] }, children: exceedsMaxBuy ? 'Exceeds Max Buy' : exceedsBalance ? 'Insufficient balance' : `buy` })] })) }) })] }) })) : (jsx$2(Fragment$1, {}));
86457
86454
  };
86458
86455
 
86459
86456
  const BuyBondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond, setBillId, }) => {
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": "4.0.0-test.17",
6
+ "version": "4.0.0-test.18",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",