@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.cjs
CHANGED
|
@@ -3670,7 +3670,9 @@ To access invested funds: t2000 invest sell ${params.amount} ${asset}`,
|
|
|
3670
3670
|
for (const pos of allPositions) {
|
|
3671
3671
|
if (params.protocol && pos.protocolId !== params.protocol) continue;
|
|
3672
3672
|
for (const s of pos.positions.supplies) {
|
|
3673
|
-
if (s.amount > 1e-3
|
|
3673
|
+
if (s.amount > 1e-3 && !(s.asset in INVESTMENT_ASSETS)) {
|
|
3674
|
+
supplies.push({ protocolId: pos.protocolId, asset: s.asset, amount: s.amount, apy: s.apy });
|
|
3675
|
+
}
|
|
3674
3676
|
}
|
|
3675
3677
|
}
|
|
3676
3678
|
if (supplies.length === 0) {
|
|
@@ -3752,7 +3754,7 @@ To access invested funds: t2000 invest sell ${params.amount} ${asset}`,
|
|
|
3752
3754
|
const withdrawable = [];
|
|
3753
3755
|
for (const pos of allPositions) {
|
|
3754
3756
|
for (const supply of pos.positions.supplies) {
|
|
3755
|
-
if (supply.amount > 0.01 && !earningAssets.has(supply.asset)) {
|
|
3757
|
+
if (supply.amount > 0.01 && !earningAssets.has(supply.asset) && !(supply.asset in INVESTMENT_ASSETS)) {
|
|
3756
3758
|
withdrawable.push({ protocolId: pos.protocolId, asset: supply.asset, amount: supply.amount });
|
|
3757
3759
|
}
|
|
3758
3760
|
}
|