@ape.swap/bonds-sdk 4.0.0-test.28 → 4.0.0-test.29

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 CHANGED
@@ -63280,6 +63280,7 @@ const PUBLIC_RPC_URLS = {
63280
63280
  [types$1.ChainId.BERACHAIN]: ['https://rpc.berachain.com'],
63281
63281
  [types$1.ChainId.KATANA]: ['https://rpc-katana.t.conduit.xyz/NRcSLqEG4Hw55GzTSu6Sratq94kKtUGfH'],
63282
63282
  [types$1.ChainId.UNICHAIN]: ['https://unichain.drpc.org'],
63283
+ // SOL RPC is not public. Production URL (morning-autumn-dream) is domain-protected, development URL (ancient-cold-sailboat) is free, use with caution.
63283
63284
  [types$1.ChainId.SOL]: process.env.NODE_ENV === 'production'
63284
63285
  ? ['https://morning-autumn-dream.solana-mainnet.quiknode.pro/1ef6069950c798a43a112c0fe5eb157309427db8']
63285
63286
  : [
@@ -68121,7 +68122,7 @@ const supportedByLIFI = [
68121
68122
  types$1.ChainId.BLAST,
68122
68123
  types$1.ChainId.SONIC,
68123
68124
  types$1.ChainId.BERACHAIN,
68124
- types$1.ChainId.UNICHAIN,
68125
+ // ChainId.UNICHAIN, not working atm
68125
68126
  types$1.ChainId.KATANA,
68126
68127
  ];
68127
68128
  const STRAPI_URL = `https://strapi-api.ape.bond`;
@@ -83247,11 +83248,11 @@ function useBondsData() {
83247
83248
  return useQuery({
83248
83249
  queryKey: [QUERY_KEYS.BONDS_DATA, bondList === null || bondList === void 0 ? void 0 : bondList.length, preTGEList === null || preTGEList === void 0 ? void 0 : preTGEList.length],
83249
83250
  queryFn: () => calculateBondsData(queryClient),
83250
- refetchInterval: 30000, // i.e. 30 sec
83251
+ refetchInterval: 25000, // i.e. 25 sec
83251
83252
  enabled: !!bondList && !!preTGEList,
83252
- refetchOnWindowFocus: false,
83253
+ refetchOnWindowFocus: true,
83253
83254
  refetchOnMount: false,
83254
- refetchOnReconnect: false,
83255
+ refetchOnReconnect: true,
83255
83256
  retry: 0,
83256
83257
  initialData: [],
83257
83258
  });
@@ -3,3 +3,4 @@ import { BillsConfig, PreTGEConfig } from '@ape.swap/apeswap-lists';
3
3
  import { TokenPrices } from '../tokenPrices/useTokenPrices';
4
4
  export declare const fetchBondsDataPreTGE: (chain: number, tokenPrices: TokenPrices[], preTGEBonds: PreTGEConfig[], apiUrl?: string) => Promise<BondsData[]>;
5
5
  export declare const fetchBondsData: (chainId: number, bills: BillsConfig[], apiUrl: string, tokenPrices?: TokenPrices[]) => Promise<BondsData[]>;
6
+ export declare const getBonusWithFee: (feeInPayout: number, trueBillPrice: string, lpPrice: number, earnTokenPrice: number) => number;
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.28",
6
+ "version": "4.0.0-test.29",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",