@zyfai/sdk 0.2.30 → 0.2.31

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
@@ -3194,6 +3194,9 @@ var _ZyfaiSDK = class _ZyfaiSDK {
3194
3194
  if (!this.walletClient?.account) {
3195
3195
  throw new Error("Wallet not connected. Call connectAccount first.");
3196
3196
  }
3197
+ if (Number(amount) <= 2) {
3198
+ throw new Error("Minimum deposit amount is 2.00 USDC");
3199
+ }
3197
3200
  const userAddress = this.walletClient.account.address;
3198
3201
  const chainConfig = getChainConfig(chainId, this.rpcUrls);
3199
3202
  const tokenAddress = getDefaultTokenAddress(chainId, asset);
package/dist/index.mjs CHANGED
@@ -3170,6 +3170,9 @@ var _ZyfaiSDK = class _ZyfaiSDK {
3170
3170
  if (!this.walletClient?.account) {
3171
3171
  throw new Error("Wallet not connected. Call connectAccount first.");
3172
3172
  }
3173
+ if (Number(amount) <= 2) {
3174
+ throw new Error("Minimum deposit amount is 2.00 USDC");
3175
+ }
3173
3176
  const userAddress = this.walletClient.account.address;
3174
3177
  const chainConfig = getChainConfig(chainId, this.rpcUrls);
3175
3178
  const tokenAddress = getDefaultTokenAddress(chainId, asset);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyfai/sdk",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
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",