@ape.swap/bonds-sdk 3.0.68 → 3.0.69

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 +5 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -79353,9 +79353,9 @@ const ParticipationSuccessful = ({ onDismiss, launchBond, inputAmount, }) => {
79353
79353
  };
79354
79354
  const day = finishDate.getDate();
79355
79355
  const formattedFinishDate = `${month} ${getDayWithSuffix(day)} at 11 UTC.`;
79356
- const initialRelease = userAllocation * ((launchBond === null || launchBond === void 0 ? void 0 : launchBond.initialRelease) / 10000);
79356
+ const initialRelease = userAllocation * (launchBond === null || launchBond === void 0 ? void 0 : launchBond.initialRelease);
79357
79357
  const initialReleaseUsd = initialRelease * ((_c = launchBond === null || launchBond === void 0 ? void 0 : launchBond.initPrice) !== null && _c !== void 0 ? _c : 0);
79358
- const vestedAmount = userAllocation * (1 - (launchBond === null || launchBond === void 0 ? void 0 : launchBond.initialRelease) / 10000);
79358
+ const vestedAmount = userAllocation * (1 - (launchBond === null || launchBond === void 0 ? void 0 : launchBond.initialRelease));
79359
79359
  const vestedAmountUsd = vestedAmount * ((_d = launchBond === null || launchBond === void 0 ? void 0 : launchBond.initPrice) !== null && _d !== void 0 ? _d : 0);
79360
79360
  return (jsxs(Modal, { children: [jsx$2(ModalHeader, { hideDivider: true }), jsxs(Flex, { sx: { flexDirection: 'column' }, children: [jsx$2(Flex, { sx: { width: '100%', justifyContent: 'center', mb: '15px' }, children: jsx$2(Text, { sx: { fontSize: '22px', fontWeight: 700 }, children: "Participation Details" }) }), jsxs(Flex, { sx: {
79361
79361
  fontSize: '14px',
@@ -79389,6 +79389,9 @@ const BuyAction = ({ launchBond, inputValue, selectedCurrency, soldout, }) => {
79389
79389
  const { addToastError } = usePopups();
79390
79390
  // Buy confirm modal
79391
79391
  const [onOpenPurchaseModal] = useModal(jsx$2(ParticipationSuccessful, { launchBond: launchBond, inputAmount: inputValue }), true, true, `confirm buy modal`);
79392
+ useEffect(() => {
79393
+ onOpenPurchaseModal();
79394
+ }, []);
79392
79395
  // Approve logic
79393
79396
  const [approvalState, approveCallback] = useApproval(inputValue, selectedCurrency, launchBond === null || launchBond === void 0 ? void 0 : launchBond.contractAddress, account, chainId);
79394
79397
  const handleApprove = () => {
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.68",
6
+ "version": "3.0.69",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",