@ape.swap/bonds-sdk 2.6.9 → 2.6.10

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
@@ -72771,7 +72771,9 @@ const getLpType = (protocol) => {
72771
72771
  ? 'univ2'
72772
72772
  : protocol === types.Protocols.V3 // This might be a hot fix. Lets revisit this on the future
72773
72773
  ? 'ichi'
72774
- : null;
72774
+ : protocol === types.Protocols.Curve
72775
+ ? 'curve'
72776
+ : null;
72775
72777
  };
72776
72778
 
72777
72779
  const useSlippage = () => {
@@ -72843,7 +72845,7 @@ const useSoulZapTokenQuote = (typedValue, inputCurrency, outputToken, chainId, a
72843
72845
  underlyingDex: ichiUnderlyingDex,
72844
72846
  vault: isLP ? vault : undefined,
72845
72847
  slippage: slippage,
72846
- lpAddress: lpType === 'solidly' || lpType === 'univ2' ? vault : undefined,
72848
+ lpAddress: lpType === 'solidly' || lpType === 'univ2' || lpType === 'curve' ? vault : undefined,
72847
72849
  router: lpType === 'solidly' || lpType === 'univ2' ? router : undefined,
72848
72850
  toToken: isLP ? undefined : vault,
72849
72851
  },
@@ -74095,7 +74097,7 @@ const useSoulZapBondQuote = (typedValue, inputCurrency, bond, account) => {
74095
74097
  underlyingDex: ichiUnderlyingDex,
74096
74098
  vault: isReserveBond ? undefined : vault,
74097
74099
  slippage: slippage,
74098
- lpAddress: lpType === 'solidly' || lpType === 'univ2' ? vault : undefined,
74100
+ lpAddress: lpType === 'solidly' || lpType === 'univ2' || lpType === 'curve' ? vault : undefined,
74099
74101
  router: lpType === 'solidly' || lpType === 'univ2' ? router : undefined,
74100
74102
  toToken: isReserveBond ? vault : undefined,
74101
74103
  },
@@ -10,5 +10,5 @@ declare enum NetworkNames {
10
10
  BLAST = "bls"
11
11
  }
12
12
  export declare const getChainParam: (chain?: ChainId) => NetworkNames | null;
13
- export declare const getLpType: (protocol?: Protocols) => "ichi" | "solidly" | "univ2" | null;
13
+ export declare const getLpType: (protocol?: Protocols) => "ichi" | "solidly" | "univ2" | "curve" | null;
14
14
  export {};
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": "2.6.9",
6
+ "version": "2.6.10",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",