@jimmygu/sfa-sdk-test 1.0.13 → 1.0.15

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/index.d.mts CHANGED
@@ -821,7 +821,7 @@ interface HyperliquidResponse<T> {
821
821
  data: T;
822
822
  }
823
823
  interface HyperliquidDepositResponseData {
824
- deposit_id: number;
824
+ depositId: number;
825
825
  }
826
826
  type HyperliquidDepositResponse = HyperliquidResponse<HyperliquidDepositResponseData>;
827
827
  interface HyperliquidDepositStatusResponseData {
package/dist/index.d.ts CHANGED
@@ -821,7 +821,7 @@ interface HyperliquidResponse<T> {
821
821
  data: T;
822
822
  }
823
823
  interface HyperliquidDepositResponseData {
824
- deposit_id: number;
824
+ depositId: number;
825
825
  }
826
826
  type HyperliquidDepositResponse = HyperliquidResponse<HyperliquidDepositResponseData>;
827
827
  interface HyperliquidDepositStatusResponseData {
package/dist/index.js CHANGED
@@ -692,7 +692,7 @@ var OneClickService = class {
692
692
  try {
693
693
  let netFee = (0, import_big.default)(params.amount).div(10 ** params.fromToken.decimals).minus((0, import_big.default)(res.data?.quote?.amountOut || 0).div(10 ** params.toToken.decimals));
694
694
  if (isExactOutput) {
695
- netFee = (0, import_big.default)(res.data?.quote?.amountIn || 0).div(10 ** params.toToken.decimals).minus((0, import_big.default)(params.amount).div(10 ** params.fromToken.decimals));
695
+ netFee = (0, import_big.default)(res.data?.quote?.amountIn || 0).div(10 ** params.fromToken.decimals).minus((0, import_big.default)(params.amount).div(10 ** params.toToken.decimals));
696
696
  }
697
697
  const bridgeFeeValue = BridgeFee.reduce((acc, item) => {
698
698
  return acc.plus((0, import_big.default)(params.amount).div(10 ** params.fromToken.decimals).times((0, import_big.default)(item.fee).div(1e4)));
package/dist/index.mjs CHANGED
@@ -630,7 +630,7 @@ var OneClickService = class {
630
630
  try {
631
631
  let netFee = Big(params.amount).div(10 ** params.fromToken.decimals).minus(Big(res.data?.quote?.amountOut || 0).div(10 ** params.toToken.decimals));
632
632
  if (isExactOutput) {
633
- netFee = Big(res.data?.quote?.amountIn || 0).div(10 ** params.toToken.decimals).minus(Big(params.amount).div(10 ** params.fromToken.decimals));
633
+ netFee = Big(res.data?.quote?.amountIn || 0).div(10 ** params.fromToken.decimals).minus(Big(params.amount).div(10 ** params.toToken.decimals));
634
634
  }
635
635
  const bridgeFeeValue = BridgeFee.reduce((acc, item) => {
636
636
  return acc.plus(Big(params.amount).div(10 ** params.fromToken.decimals).times(Big(item.fee).div(1e4)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmygu/sfa-sdk-test",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "TypeScript SDK for StableFlow AI API - Cross-chain token swap solution",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",