@aspan/sdk 0.4.5 → 0.4.7

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/README.md CHANGED
@@ -22,7 +22,7 @@ import { BSC_ADDRESSES } from "@aspan/sdk";
22
22
  | Contract | Address |
23
23
  |----------|---------|
24
24
  | **Diamond (Main Entry)** | `0x6a11B30d3a70727d5477D6d8090e144443fA1c78` |
25
- | **Router** | `0x813d3D1A3154950E2f1d8718305426a335A974A9` |
25
+ | **Router** | `0x34a64c4EbDe830773083BA8c9469456616F6723b` |
26
26
  | **ApUSD** | `0x4570047eeB5aDb4081c5d470494EB5134e34A287` |
27
27
  | **XBNB** | `0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43` |
28
28
  | **SApUSD** | `0xE2BE739C4aA4126ee72D612d9548C38B1B0e5A1b` |
@@ -347,6 +347,13 @@ const hash = await client.deposit({ apUSDAmount: parseAmount("1000") });
347
347
  const position = await client.getUserStabilityPoolPosition(account.address);
348
348
  console.log("sApUSD Balance:", formatAmount(position.balance));
349
349
  console.log("Earned:", formatAmount(position.balance - position.deposited));
350
+
351
+ // Preview withdrawal (supports dirty pools with apUSD + xBNB)
352
+ const preview = await client.previewRedeemMulti(position.shares);
353
+ console.log("Will receive apUSD:", formatAmount(preview.apUSD));
354
+ if (preview.hasXBNB) {
355
+ console.log("Will also receive xBNB:", formatAmount(preview.xBNB));
356
+ }
350
357
  ```
351
358
 
352
359
  ### 5. Quick Exit: apUSD/xBNB → USDT
@@ -539,6 +546,7 @@ console.log("Leverage:", formatAmount(stats.effectiveLeverage), "x");
539
546
  | `redeemXBNB(params)` | Redeem xBNB for LST |
540
547
  | `deposit(params)` | Deposit apUSD to stability pool |
541
548
  | `withdraw(params)` | Withdraw from stability pool |
549
+ | `previewRedeemMulti(shares)` | Preview multi-asset withdrawal (apUSD + xBNB) |
542
550
  | `harvestYield()` | Trigger yield distribution |
543
551
 
544
552
  ---
package/dist/index.d.mts CHANGED
@@ -103,10 +103,6 @@ interface DepositParams {
103
103
  interface WithdrawParams {
104
104
  shares: bigint;
105
105
  }
106
- /** Parameters for withdrawing assets from stability pool */
107
- interface WithdrawAssetsParams {
108
- assets: bigint;
109
- }
110
106
  /** Overall protocol statistics */
111
107
  interface ProtocolStats {
112
108
  tvlInBNB: bigint;
@@ -468,9 +464,9 @@ declare class AspanReadClient {
468
464
  getExchangeRate(): Promise<bigint>;
469
465
  getTotalStaked(): Promise<bigint>;
470
466
  previewDeposit(assets: bigint): Promise<bigint>;
471
- previewRedeem(shares: bigint): Promise<bigint>;
472
467
  /**
473
468
  * Preview withdraw with multi-asset support (apUSD + xBNB)
469
+ * Replaces previewRedeem — works for both clean and dirty pools.
474
470
  * @param shares Amount of sApUSD shares to redeem
475
471
  * @returns Object with apUSD and xBNB amounts, plus whether vault has xBNB
476
472
  */
@@ -478,6 +474,8 @@ declare class AspanReadClient {
478
474
  apUSD: bigint;
479
475
  xBNB: bigint;
480
476
  hasXBNB: boolean;
477
+ assets: Address[];
478
+ amounts: bigint[];
481
479
  }>;
482
480
  getPendingYield(): Promise<bigint>;
483
481
  getTotalYieldGenerated(): Promise<bigint>;
@@ -584,12 +582,6 @@ declare class AspanClient extends AspanReadClient {
584
582
  * @returns Transaction hash
585
583
  */
586
584
  withdraw(params: WithdrawParams): Promise<Hash>;
587
- /**
588
- * Withdraw from stability pool by asset amount
589
- * @param params Withdraw parameters
590
- * @returns Transaction hash
591
- */
592
- withdrawAssets(params: WithdrawAssetsParams): Promise<Hash>;
593
585
  /**
594
586
  * Harvest yield from LSTs
595
587
  * @returns Transaction hash
@@ -723,6 +715,14 @@ declare class AspanRouterReadClient {
723
715
  * Check if an LST is supported
724
716
  */
725
717
  isSupportedLST(lst: Address): Promise<boolean>;
718
+ /**
719
+ * Get LST mode (0 = SYNC, 1 = ASYNC_DIRECT_ONLY)
720
+ */
721
+ getLSTMode(lst: Address): Promise<number>;
722
+ /**
723
+ * Check whether an LST supports routed flows (swap/stake/redeemAndSwap)
724
+ */
725
+ isLSTRoutable(lst: Address): Promise<boolean>;
726
726
  /**
727
727
  * Get the Diamond contract address
728
728
  */
@@ -741,6 +741,22 @@ declare class AspanRouterReadClient {
741
741
  * @param amount Amount of apUSD/xBNB to redeem
742
742
  */
743
743
  previewRedeem(lst: Address, redeemXBNB: boolean, amount: bigint): Promise<bigint>;
744
+ /**
745
+ * SDK-only preview: input token -> estimated LST -> previewMint
746
+ * Note: oracle-based estimation (does not include live DEX slippage/price impact)
747
+ */
748
+ previewMintByInput(inputToken: Address, inputAmount: bigint, targetLST: Address, mintXBNB: boolean): Promise<{
749
+ lstAmount: bigint;
750
+ mintedAmount: bigint;
751
+ }>;
752
+ /**
753
+ * SDK-only preview: previewRedeem -> estimated output token
754
+ * Note: oracle-based estimation (does not include live DEX slippage/price impact)
755
+ */
756
+ previewRedeemToOutput(lst: Address, redeemXBNB: boolean, amount: bigint, outputToken: Address): Promise<{
757
+ lstAmount: bigint;
758
+ outputAmount: bigint;
759
+ }>;
744
760
  /**
745
761
  * Get user's withdrawal request indices
746
762
  */
@@ -1337,20 +1353,6 @@ declare const DiamondABI: readonly [{
1337
1353
  readonly internalType: "uint256";
1338
1354
  }];
1339
1355
  readonly stateMutability: "nonpayable";
1340
- }, {
1341
- readonly type: "function";
1342
- readonly name: "withdrawAssets";
1343
- readonly inputs: readonly [{
1344
- readonly name: "_assets";
1345
- readonly type: "uint256";
1346
- readonly internalType: "uint256";
1347
- }];
1348
- readonly outputs: readonly [{
1349
- readonly name: "shares";
1350
- readonly type: "uint256";
1351
- readonly internalType: "uint256";
1352
- }];
1353
- readonly stateMutability: "nonpayable";
1354
1356
  }, {
1355
1357
  readonly type: "function";
1356
1358
  readonly name: "getShares";
@@ -1427,6 +1429,24 @@ declare const DiamondABI: readonly [{
1427
1429
  readonly internalType: "uint256";
1428
1430
  }];
1429
1431
  readonly stateMutability: "view";
1432
+ }, {
1433
+ readonly type: "function";
1434
+ readonly name: "previewRedeemMulti";
1435
+ readonly inputs: readonly [{
1436
+ readonly name: "_shares";
1437
+ readonly type: "uint256";
1438
+ readonly internalType: "uint256";
1439
+ }];
1440
+ readonly outputs: readonly [{
1441
+ readonly name: "assets";
1442
+ readonly type: "address[]";
1443
+ readonly internalType: "address[]";
1444
+ }, {
1445
+ readonly name: "amounts";
1446
+ readonly type: "uint256[]";
1447
+ readonly internalType: "uint256[]";
1448
+ }];
1449
+ readonly stateMutability: "view";
1430
1450
  }, {
1431
1451
  readonly type: "function";
1432
1452
  readonly name: "getPendingYield";
@@ -2310,6 +2330,28 @@ declare const RouterABI: readonly [{
2310
2330
  readonly type: "bool";
2311
2331
  }];
2312
2332
  readonly stateMutability: "view";
2333
+ }, {
2334
+ readonly type: "function";
2335
+ readonly name: "lstModes";
2336
+ readonly inputs: readonly [{
2337
+ readonly name: "lst";
2338
+ readonly type: "address";
2339
+ }];
2340
+ readonly outputs: readonly [{
2341
+ readonly type: "uint8";
2342
+ }];
2343
+ readonly stateMutability: "view";
2344
+ }, {
2345
+ readonly type: "function";
2346
+ readonly name: "isLSTRoutable";
2347
+ readonly inputs: readonly [{
2348
+ readonly name: "lst";
2349
+ readonly type: "address";
2350
+ }];
2351
+ readonly outputs: readonly [{
2352
+ readonly type: "bool";
2353
+ }];
2354
+ readonly stateMutability: "view";
2313
2355
  }, {
2314
2356
  readonly type: "function";
2315
2357
  readonly name: "previewMint";
@@ -2765,7 +2807,7 @@ declare const BPS_PRECISION = 10000n;
2765
2807
  declare const PRICE_PRECISION: bigint;
2766
2808
  declare const BSC_ADDRESSES: {
2767
2809
  readonly diamond: "0x6a11B30d3a70727d5477D6d8090e144443fA1c78";
2768
- readonly router: "0x29dd49b2e98674ee7531f17e4d40a7725918c3f6";
2810
+ readonly router: "0x34a64c4EbDe830773083BA8c9469456616F6723b";
2769
2811
  readonly apUSD: "0x4570047eeB5aDb4081c5d470494EB5134e34A287";
2770
2812
  readonly xBNB: "0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43";
2771
2813
  readonly sApUSD: "0x896770Dba7c0481539E25aaB56bE285ECF6D65eB";
@@ -2825,4 +2867,4 @@ declare function formatPriceUSD(price: bigint): string;
2825
2867
  */
2826
2868
  declare function calculateAPY(previousRate: bigint, currentRate: bigint, periodDays: number): number;
2827
2869
 
2828
- export { type ApUSDMintedEvent, type ApUSDRedeemedEvent, AspanClient, type AspanClientConfig, AspanReadClient, AspanRouterClient, type AspanRouterClientConfig, AspanRouterReadClient, type AspanRouterWriteClientConfig, type AspanWriteClientConfig, BPS_PRECISION, BSC_ADDRESSES, type BigIntString, CHAIN_IDS, type CurrentFeeTier, type CurrentFees, type DepositParams, type DepositedEvent, DiamondABI, type ExpectedOutput, type FeeTier, type LSTInfo, type LSTYieldInfo, type MintApUSDParams, type MintXBNBParams, type OracleBounds, PHAROS_ADDRESSES, PRECISION, PRICE_PRECISION, type ProtocolStats, type RedeemAndSwapEvent, type RedeemApUSDParams, type RedeemXBNBParams, RouterABI, type RouterMintEvent, type RouterMintParams, type RouterMintParams2, type RouterRedeemAndSwapParams, type RouterRedeemAndUnstakeParams, type RouterRedeemEvent, type RouterRedeemParams, type RouterSwapParams, type StabilityMode2Info, type StabilityModeInfo, type StabilityPoolStats, type StakeAndMintEvent, type StakeAndMintParams, type SwapAndMintDefaultParams, type SwapAndMintEvent, type SwapAndMintParams, type TokenAddresses, type TransactionReceipt, type TransactionResult, type UnstakeClaimedEvent, type UnstakeRequestedEvent, type UserStabilityPoolPosition, type WithdrawAssetsParams, type WithdrawParams, type WithdrawalRequestInfo, type WithdrawnEvent, type XBNBMintedEvent, type XBNBRedeemedEvent, type YieldHarvestedEvent, type YieldStats, calculateAPY, createAspanClient, createAspanPharosClient, createAspanPharosReadClient, createAspanReadClient, createAspanReadClientForChain, createAspanTestnetClient, createAspanTestnetReadClient, createAspanWriteClientForChain, createRouterClient, createRouterPharosClient, createRouterPharosReadClient, createRouterReadClient, createRouterReadClientForChain, createRouterTestnetClient, createRouterTestnetReadClient, createRouterWriteClientForChain, encodeV3Path, formatAmount, formatCR, formatFeeBPS, formatPriceUSD, getChainById, parseAmount, pharosTestnet };
2870
+ export { type ApUSDMintedEvent, type ApUSDRedeemedEvent, AspanClient, type AspanClientConfig, AspanReadClient, AspanRouterClient, type AspanRouterClientConfig, AspanRouterReadClient, type AspanRouterWriteClientConfig, type AspanWriteClientConfig, BPS_PRECISION, BSC_ADDRESSES, type BigIntString, CHAIN_IDS, type CurrentFeeTier, type CurrentFees, type DepositParams, type DepositedEvent, DiamondABI, type ExpectedOutput, type FeeTier, type LSTInfo, type LSTYieldInfo, type MintApUSDParams, type MintXBNBParams, type OracleBounds, PHAROS_ADDRESSES, PRECISION, PRICE_PRECISION, type ProtocolStats, type RedeemAndSwapEvent, type RedeemApUSDParams, type RedeemXBNBParams, RouterABI, type RouterMintEvent, type RouterMintParams, type RouterMintParams2, type RouterRedeemAndSwapParams, type RouterRedeemAndUnstakeParams, type RouterRedeemEvent, type RouterRedeemParams, type RouterSwapParams, type StabilityMode2Info, type StabilityModeInfo, type StabilityPoolStats, type StakeAndMintEvent, type StakeAndMintParams, type SwapAndMintDefaultParams, type SwapAndMintEvent, type SwapAndMintParams, type TokenAddresses, type TransactionReceipt, type TransactionResult, type UnstakeClaimedEvent, type UnstakeRequestedEvent, type UserStabilityPoolPosition, type WithdrawParams, type WithdrawalRequestInfo, type WithdrawnEvent, type XBNBMintedEvent, type XBNBRedeemedEvent, type YieldHarvestedEvent, type YieldStats, calculateAPY, createAspanClient, createAspanPharosClient, createAspanPharosReadClient, createAspanReadClient, createAspanReadClientForChain, createAspanTestnetClient, createAspanTestnetReadClient, createAspanWriteClientForChain, createRouterClient, createRouterPharosClient, createRouterPharosReadClient, createRouterReadClient, createRouterReadClientForChain, createRouterTestnetClient, createRouterTestnetReadClient, createRouterWriteClientForChain, encodeV3Path, formatAmount, formatCR, formatFeeBPS, formatPriceUSD, getChainById, parseAmount, pharosTestnet };
package/dist/index.d.ts CHANGED
@@ -103,10 +103,6 @@ interface DepositParams {
103
103
  interface WithdrawParams {
104
104
  shares: bigint;
105
105
  }
106
- /** Parameters for withdrawing assets from stability pool */
107
- interface WithdrawAssetsParams {
108
- assets: bigint;
109
- }
110
106
  /** Overall protocol statistics */
111
107
  interface ProtocolStats {
112
108
  tvlInBNB: bigint;
@@ -468,9 +464,9 @@ declare class AspanReadClient {
468
464
  getExchangeRate(): Promise<bigint>;
469
465
  getTotalStaked(): Promise<bigint>;
470
466
  previewDeposit(assets: bigint): Promise<bigint>;
471
- previewRedeem(shares: bigint): Promise<bigint>;
472
467
  /**
473
468
  * Preview withdraw with multi-asset support (apUSD + xBNB)
469
+ * Replaces previewRedeem — works for both clean and dirty pools.
474
470
  * @param shares Amount of sApUSD shares to redeem
475
471
  * @returns Object with apUSD and xBNB amounts, plus whether vault has xBNB
476
472
  */
@@ -478,6 +474,8 @@ declare class AspanReadClient {
478
474
  apUSD: bigint;
479
475
  xBNB: bigint;
480
476
  hasXBNB: boolean;
477
+ assets: Address[];
478
+ amounts: bigint[];
481
479
  }>;
482
480
  getPendingYield(): Promise<bigint>;
483
481
  getTotalYieldGenerated(): Promise<bigint>;
@@ -584,12 +582,6 @@ declare class AspanClient extends AspanReadClient {
584
582
  * @returns Transaction hash
585
583
  */
586
584
  withdraw(params: WithdrawParams): Promise<Hash>;
587
- /**
588
- * Withdraw from stability pool by asset amount
589
- * @param params Withdraw parameters
590
- * @returns Transaction hash
591
- */
592
- withdrawAssets(params: WithdrawAssetsParams): Promise<Hash>;
593
585
  /**
594
586
  * Harvest yield from LSTs
595
587
  * @returns Transaction hash
@@ -723,6 +715,14 @@ declare class AspanRouterReadClient {
723
715
  * Check if an LST is supported
724
716
  */
725
717
  isSupportedLST(lst: Address): Promise<boolean>;
718
+ /**
719
+ * Get LST mode (0 = SYNC, 1 = ASYNC_DIRECT_ONLY)
720
+ */
721
+ getLSTMode(lst: Address): Promise<number>;
722
+ /**
723
+ * Check whether an LST supports routed flows (swap/stake/redeemAndSwap)
724
+ */
725
+ isLSTRoutable(lst: Address): Promise<boolean>;
726
726
  /**
727
727
  * Get the Diamond contract address
728
728
  */
@@ -741,6 +741,22 @@ declare class AspanRouterReadClient {
741
741
  * @param amount Amount of apUSD/xBNB to redeem
742
742
  */
743
743
  previewRedeem(lst: Address, redeemXBNB: boolean, amount: bigint): Promise<bigint>;
744
+ /**
745
+ * SDK-only preview: input token -> estimated LST -> previewMint
746
+ * Note: oracle-based estimation (does not include live DEX slippage/price impact)
747
+ */
748
+ previewMintByInput(inputToken: Address, inputAmount: bigint, targetLST: Address, mintXBNB: boolean): Promise<{
749
+ lstAmount: bigint;
750
+ mintedAmount: bigint;
751
+ }>;
752
+ /**
753
+ * SDK-only preview: previewRedeem -> estimated output token
754
+ * Note: oracle-based estimation (does not include live DEX slippage/price impact)
755
+ */
756
+ previewRedeemToOutput(lst: Address, redeemXBNB: boolean, amount: bigint, outputToken: Address): Promise<{
757
+ lstAmount: bigint;
758
+ outputAmount: bigint;
759
+ }>;
744
760
  /**
745
761
  * Get user's withdrawal request indices
746
762
  */
@@ -1337,20 +1353,6 @@ declare const DiamondABI: readonly [{
1337
1353
  readonly internalType: "uint256";
1338
1354
  }];
1339
1355
  readonly stateMutability: "nonpayable";
1340
- }, {
1341
- readonly type: "function";
1342
- readonly name: "withdrawAssets";
1343
- readonly inputs: readonly [{
1344
- readonly name: "_assets";
1345
- readonly type: "uint256";
1346
- readonly internalType: "uint256";
1347
- }];
1348
- readonly outputs: readonly [{
1349
- readonly name: "shares";
1350
- readonly type: "uint256";
1351
- readonly internalType: "uint256";
1352
- }];
1353
- readonly stateMutability: "nonpayable";
1354
1356
  }, {
1355
1357
  readonly type: "function";
1356
1358
  readonly name: "getShares";
@@ -1427,6 +1429,24 @@ declare const DiamondABI: readonly [{
1427
1429
  readonly internalType: "uint256";
1428
1430
  }];
1429
1431
  readonly stateMutability: "view";
1432
+ }, {
1433
+ readonly type: "function";
1434
+ readonly name: "previewRedeemMulti";
1435
+ readonly inputs: readonly [{
1436
+ readonly name: "_shares";
1437
+ readonly type: "uint256";
1438
+ readonly internalType: "uint256";
1439
+ }];
1440
+ readonly outputs: readonly [{
1441
+ readonly name: "assets";
1442
+ readonly type: "address[]";
1443
+ readonly internalType: "address[]";
1444
+ }, {
1445
+ readonly name: "amounts";
1446
+ readonly type: "uint256[]";
1447
+ readonly internalType: "uint256[]";
1448
+ }];
1449
+ readonly stateMutability: "view";
1430
1450
  }, {
1431
1451
  readonly type: "function";
1432
1452
  readonly name: "getPendingYield";
@@ -2310,6 +2330,28 @@ declare const RouterABI: readonly [{
2310
2330
  readonly type: "bool";
2311
2331
  }];
2312
2332
  readonly stateMutability: "view";
2333
+ }, {
2334
+ readonly type: "function";
2335
+ readonly name: "lstModes";
2336
+ readonly inputs: readonly [{
2337
+ readonly name: "lst";
2338
+ readonly type: "address";
2339
+ }];
2340
+ readonly outputs: readonly [{
2341
+ readonly type: "uint8";
2342
+ }];
2343
+ readonly stateMutability: "view";
2344
+ }, {
2345
+ readonly type: "function";
2346
+ readonly name: "isLSTRoutable";
2347
+ readonly inputs: readonly [{
2348
+ readonly name: "lst";
2349
+ readonly type: "address";
2350
+ }];
2351
+ readonly outputs: readonly [{
2352
+ readonly type: "bool";
2353
+ }];
2354
+ readonly stateMutability: "view";
2313
2355
  }, {
2314
2356
  readonly type: "function";
2315
2357
  readonly name: "previewMint";
@@ -2765,7 +2807,7 @@ declare const BPS_PRECISION = 10000n;
2765
2807
  declare const PRICE_PRECISION: bigint;
2766
2808
  declare const BSC_ADDRESSES: {
2767
2809
  readonly diamond: "0x6a11B30d3a70727d5477D6d8090e144443fA1c78";
2768
- readonly router: "0x29dd49b2e98674ee7531f17e4d40a7725918c3f6";
2810
+ readonly router: "0x34a64c4EbDe830773083BA8c9469456616F6723b";
2769
2811
  readonly apUSD: "0x4570047eeB5aDb4081c5d470494EB5134e34A287";
2770
2812
  readonly xBNB: "0x0A0c9CD826e747D99F90D63e780B3727Da4D0d43";
2771
2813
  readonly sApUSD: "0x896770Dba7c0481539E25aaB56bE285ECF6D65eB";
@@ -2825,4 +2867,4 @@ declare function formatPriceUSD(price: bigint): string;
2825
2867
  */
2826
2868
  declare function calculateAPY(previousRate: bigint, currentRate: bigint, periodDays: number): number;
2827
2869
 
2828
- export { type ApUSDMintedEvent, type ApUSDRedeemedEvent, AspanClient, type AspanClientConfig, AspanReadClient, AspanRouterClient, type AspanRouterClientConfig, AspanRouterReadClient, type AspanRouterWriteClientConfig, type AspanWriteClientConfig, BPS_PRECISION, BSC_ADDRESSES, type BigIntString, CHAIN_IDS, type CurrentFeeTier, type CurrentFees, type DepositParams, type DepositedEvent, DiamondABI, type ExpectedOutput, type FeeTier, type LSTInfo, type LSTYieldInfo, type MintApUSDParams, type MintXBNBParams, type OracleBounds, PHAROS_ADDRESSES, PRECISION, PRICE_PRECISION, type ProtocolStats, type RedeemAndSwapEvent, type RedeemApUSDParams, type RedeemXBNBParams, RouterABI, type RouterMintEvent, type RouterMintParams, type RouterMintParams2, type RouterRedeemAndSwapParams, type RouterRedeemAndUnstakeParams, type RouterRedeemEvent, type RouterRedeemParams, type RouterSwapParams, type StabilityMode2Info, type StabilityModeInfo, type StabilityPoolStats, type StakeAndMintEvent, type StakeAndMintParams, type SwapAndMintDefaultParams, type SwapAndMintEvent, type SwapAndMintParams, type TokenAddresses, type TransactionReceipt, type TransactionResult, type UnstakeClaimedEvent, type UnstakeRequestedEvent, type UserStabilityPoolPosition, type WithdrawAssetsParams, type WithdrawParams, type WithdrawalRequestInfo, type WithdrawnEvent, type XBNBMintedEvent, type XBNBRedeemedEvent, type YieldHarvestedEvent, type YieldStats, calculateAPY, createAspanClient, createAspanPharosClient, createAspanPharosReadClient, createAspanReadClient, createAspanReadClientForChain, createAspanTestnetClient, createAspanTestnetReadClient, createAspanWriteClientForChain, createRouterClient, createRouterPharosClient, createRouterPharosReadClient, createRouterReadClient, createRouterReadClientForChain, createRouterTestnetClient, createRouterTestnetReadClient, createRouterWriteClientForChain, encodeV3Path, formatAmount, formatCR, formatFeeBPS, formatPriceUSD, getChainById, parseAmount, pharosTestnet };
2870
+ export { type ApUSDMintedEvent, type ApUSDRedeemedEvent, AspanClient, type AspanClientConfig, AspanReadClient, AspanRouterClient, type AspanRouterClientConfig, AspanRouterReadClient, type AspanRouterWriteClientConfig, type AspanWriteClientConfig, BPS_PRECISION, BSC_ADDRESSES, type BigIntString, CHAIN_IDS, type CurrentFeeTier, type CurrentFees, type DepositParams, type DepositedEvent, DiamondABI, type ExpectedOutput, type FeeTier, type LSTInfo, type LSTYieldInfo, type MintApUSDParams, type MintXBNBParams, type OracleBounds, PHAROS_ADDRESSES, PRECISION, PRICE_PRECISION, type ProtocolStats, type RedeemAndSwapEvent, type RedeemApUSDParams, type RedeemXBNBParams, RouterABI, type RouterMintEvent, type RouterMintParams, type RouterMintParams2, type RouterRedeemAndSwapParams, type RouterRedeemAndUnstakeParams, type RouterRedeemEvent, type RouterRedeemParams, type RouterSwapParams, type StabilityMode2Info, type StabilityModeInfo, type StabilityPoolStats, type StakeAndMintEvent, type StakeAndMintParams, type SwapAndMintDefaultParams, type SwapAndMintEvent, type SwapAndMintParams, type TokenAddresses, type TransactionReceipt, type TransactionResult, type UnstakeClaimedEvent, type UnstakeRequestedEvent, type UserStabilityPoolPosition, type WithdrawParams, type WithdrawalRequestInfo, type WithdrawnEvent, type XBNBMintedEvent, type XBNBRedeemedEvent, type YieldHarvestedEvent, type YieldStats, calculateAPY, createAspanClient, createAspanPharosClient, createAspanPharosReadClient, createAspanReadClient, createAspanReadClientForChain, createAspanTestnetClient, createAspanTestnetReadClient, createAspanWriteClientForChain, createRouterClient, createRouterPharosClient, createRouterPharosReadClient, createRouterReadClient, createRouterReadClientForChain, createRouterTestnetClient, createRouterTestnetReadClient, createRouterWriteClientForChain, encodeV3Path, formatAmount, formatCR, formatFeeBPS, formatPriceUSD, getChainById, parseAmount, pharosTestnet };