@owney/sdk 0.6.5-beta.2 → 0.6.5

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.cjs CHANGED
@@ -79,6 +79,12 @@ var SupportedAssets = [
79
79
  symbol: "USDC",
80
80
  chainId: 1,
81
81
  decimals: 6
82
+ },
83
+ {
84
+ address: `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`,
85
+ symbol: "WETH",
86
+ chainId: 1,
87
+ decimals: 18
82
88
  }
83
89
  ];
84
90
 
@@ -623,9 +629,15 @@ var ZyfaiAgent = class {
623
629
  {
624
630
  chainId: 1,
625
631
  chain: "ETHEREUM",
626
- // Zyfai enforces a 10,000 USDC minimum portfolio on Ethereum mainnet
627
- // (mainnet gas only pays off on large positions). 10_000 * 1e6 raw units.
628
- assets: [{ symbol: "USDC", minDepositAmount: "10000000000" }]
632
+ // Zyfai enforces per-asset minimum portfolios on Ethereum mainnet, keyed
633
+ // by MIN_PORTFOLIO_BALANCE[1] in @zyfai/sdk (mainnet gas only pays off on
634
+ // large positions). USDC: 10,000 (10_000 * 1e6). WETH: 5 (5 * 1e18).
635
+ // NOTE: the @zyfai/sdk README claims WETH has no minimum — that's stale;
636
+ // the shipped code enforces 5 WETH, so match it or deposits reject on-chain.
637
+ assets: [
638
+ { symbol: "USDC", minDepositAmount: "10000000000" },
639
+ { symbol: "WETH", minDepositAmount: "5000000000000000000" }
640
+ ]
629
641
  }
630
642
  ];
631
643
  sdk;
package/dist/index.js CHANGED
@@ -47,6 +47,12 @@ var SupportedAssets = [
47
47
  symbol: "USDC",
48
48
  chainId: 1,
49
49
  decimals: 6
50
+ },
51
+ {
52
+ address: `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`,
53
+ symbol: "WETH",
54
+ chainId: 1,
55
+ decimals: 18
50
56
  }
51
57
  ];
52
58
 
@@ -591,9 +597,15 @@ var ZyfaiAgent = class {
591
597
  {
592
598
  chainId: 1,
593
599
  chain: "ETHEREUM",
594
- // Zyfai enforces a 10,000 USDC minimum portfolio on Ethereum mainnet
595
- // (mainnet gas only pays off on large positions). 10_000 * 1e6 raw units.
596
- assets: [{ symbol: "USDC", minDepositAmount: "10000000000" }]
600
+ // Zyfai enforces per-asset minimum portfolios on Ethereum mainnet, keyed
601
+ // by MIN_PORTFOLIO_BALANCE[1] in @zyfai/sdk (mainnet gas only pays off on
602
+ // large positions). USDC: 10,000 (10_000 * 1e6). WETH: 5 (5 * 1e18).
603
+ // NOTE: the @zyfai/sdk README claims WETH has no minimum — that's stale;
604
+ // the shipped code enforces 5 WETH, so match it or deposits reject on-chain.
605
+ assets: [
606
+ { symbol: "USDC", minDepositAmount: "10000000000" },
607
+ { symbol: "WETH", minDepositAmount: "5000000000000000000" }
608
+ ]
597
609
  }
598
610
  ];
599
611
  sdk;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owney/sdk",
3
- "version": "0.6.5-beta.2",
3
+ "version": "0.6.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",