@t2000/sdk 0.16.25 → 0.16.26
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3668,7 +3668,9 @@ To access invested funds: t2000 invest sell ${params.amount} ${asset}`,
|
|
|
3668
3668
|
for (const pos of allPositions) {
|
|
3669
3669
|
if (params.protocol && pos.protocolId !== params.protocol) continue;
|
|
3670
3670
|
for (const s of pos.positions.supplies) {
|
|
3671
|
-
if (s.amount > 1e-3
|
|
3671
|
+
if (s.amount > 1e-3 && !(s.asset in INVESTMENT_ASSETS)) {
|
|
3672
|
+
supplies.push({ protocolId: pos.protocolId, asset: s.asset, amount: s.amount, apy: s.apy });
|
|
3673
|
+
}
|
|
3672
3674
|
}
|
|
3673
3675
|
}
|
|
3674
3676
|
if (supplies.length === 0) {
|
|
@@ -3750,7 +3752,7 @@ To access invested funds: t2000 invest sell ${params.amount} ${asset}`,
|
|
|
3750
3752
|
const withdrawable = [];
|
|
3751
3753
|
for (const pos of allPositions) {
|
|
3752
3754
|
for (const supply of pos.positions.supplies) {
|
|
3753
|
-
if (supply.amount > 0.01 && !earningAssets.has(supply.asset)) {
|
|
3755
|
+
if (supply.amount > 0.01 && !earningAssets.has(supply.asset) && !(supply.asset in INVESTMENT_ASSETS)) {
|
|
3754
3756
|
withdrawable.push({ protocolId: pos.protocolId, asset: supply.asset, amount: supply.amount });
|
|
3755
3757
|
}
|
|
3756
3758
|
}
|