@zyfai/sdk 0.2.8 → 0.2.9

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.js CHANGED
@@ -840,7 +840,10 @@ var ZyfaiSDK = class {
840
840
  * console.log('Splitting enabled:', result.success);
841
841
  * ```
842
842
  */
843
- async enableSplitting(minSplits = 3) {
843
+ async enableSplitting(minSplits = 1) {
844
+ if (minSplits > 4) {
845
+ throw new Error("minSplits cannot exceed 4");
846
+ }
844
847
  try {
845
848
  const response = await this.updateUserProfile({
846
849
  splitting: true,
@@ -1737,7 +1740,9 @@ var ZyfaiSDK = class {
1737
1740
  omniAccount: convertedResponse.omniAccount,
1738
1741
  crosschainStrategy: convertedResponse.crosschainStrategy,
1739
1742
  agentName: convertedResponse.agentName,
1740
- customization: convertedResponse.customization
1743
+ customization: convertedResponse.customization,
1744
+ splitting: convertedResponse.splitting,
1745
+ minSplits: convertedResponse.minSplits
1741
1746
  }
1742
1747
  };
1743
1748
  } catch (error) {
package/dist/index.mjs CHANGED
@@ -817,7 +817,10 @@ var ZyfaiSDK = class {
817
817
  * console.log('Splitting enabled:', result.success);
818
818
  * ```
819
819
  */
820
- async enableSplitting(minSplits = 3) {
820
+ async enableSplitting(minSplits = 1) {
821
+ if (minSplits > 4) {
822
+ throw new Error("minSplits cannot exceed 4");
823
+ }
821
824
  try {
822
825
  const response = await this.updateUserProfile({
823
826
  splitting: true,
@@ -1714,7 +1717,9 @@ var ZyfaiSDK = class {
1714
1717
  omniAccount: convertedResponse.omniAccount,
1715
1718
  crosschainStrategy: convertedResponse.crosschainStrategy,
1716
1719
  agentName: convertedResponse.agentName,
1717
- customization: convertedResponse.customization
1720
+ customization: convertedResponse.customization,
1721
+ splitting: convertedResponse.splitting,
1722
+ minSplits: convertedResponse.minSplits
1718
1723
  }
1719
1724
  };
1720
1725
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyfai/sdk",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "TypeScript SDK for Zyfai Yield Optimization Engine - Deploy Safe smart wallets, manage session keys, and interact with DeFi protocols",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",