@zyfai/sdk 0.2.17 → 0.2.18
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -192,8 +192,8 @@ interface APYPerStrategy {
|
|
|
192
192
|
total_rebalances: number;
|
|
193
193
|
created_at: string;
|
|
194
194
|
strategy: string;
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
average_apy_with_fee: number;
|
|
196
|
+
average_apy_with_rzfi_with_fee: number;
|
|
197
197
|
}
|
|
198
198
|
interface APYPerStrategyResponse {
|
|
199
199
|
success: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -192,8 +192,8 @@ interface APYPerStrategy {
|
|
|
192
192
|
total_rebalances: number;
|
|
193
193
|
created_at: string;
|
|
194
194
|
strategy: string;
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
average_apy_with_fee: number;
|
|
196
|
+
average_apy_with_rzfi_with_fee: number;
|
|
197
197
|
}
|
|
198
198
|
interface APYPerStrategyResponse {
|
|
199
199
|
success: boolean;
|
package/dist/index.js
CHANGED
|
@@ -876,8 +876,13 @@ var _ZyfaiSDK = class _ZyfaiSDK {
|
|
|
876
876
|
const hasMatchingChain = protocol.chains.some(
|
|
877
877
|
(chain) => chains.includes(chain)
|
|
878
878
|
);
|
|
879
|
-
|
|
880
|
-
|
|
879
|
+
if (!hasMatchingChain) {
|
|
880
|
+
return false;
|
|
881
|
+
}
|
|
882
|
+
if (convertedStrategy === "degen_strategy") {
|
|
883
|
+
return protocol.strategies?.includes("safe_strategy") || protocol.strategies?.includes("degen_strategy");
|
|
884
|
+
}
|
|
885
|
+
return protocol.strategies?.includes("safe_strategy");
|
|
881
886
|
}).map((protocol) => protocol.id);
|
|
882
887
|
const response = await this.updateUserProfile({
|
|
883
888
|
protocols: filteredProtocolIds
|
package/dist/index.mjs
CHANGED
|
@@ -854,8 +854,13 @@ var _ZyfaiSDK = class _ZyfaiSDK {
|
|
|
854
854
|
const hasMatchingChain = protocol.chains.some(
|
|
855
855
|
(chain) => chains.includes(chain)
|
|
856
856
|
);
|
|
857
|
-
|
|
858
|
-
|
|
857
|
+
if (!hasMatchingChain) {
|
|
858
|
+
return false;
|
|
859
|
+
}
|
|
860
|
+
if (convertedStrategy === "degen_strategy") {
|
|
861
|
+
return protocol.strategies?.includes("safe_strategy") || protocol.strategies?.includes("degen_strategy");
|
|
862
|
+
}
|
|
863
|
+
return protocol.strategies?.includes("safe_strategy");
|
|
859
864
|
}).map((protocol) => protocol.id);
|
|
860
865
|
const response = await this.updateUserProfile({
|
|
861
866
|
protocols: filteredProtocolIds
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyfai/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
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",
|