@t2000/sdk 0.9.1 → 0.9.2
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2851,14 +2851,14 @@ var T2000 = class _T2000 extends eventemitter3.EventEmitter {
|
|
|
2851
2851
|
const allPositions = await this.registry.allPositions(this._address);
|
|
2852
2852
|
const positions = allPositions.flatMap(
|
|
2853
2853
|
(p) => [
|
|
2854
|
-
...p.positions.supplies.map((s) => ({
|
|
2854
|
+
...p.positions.supplies.filter((s) => s.amount > 5e-3).map((s) => ({
|
|
2855
2855
|
protocol: p.protocolId,
|
|
2856
2856
|
asset: s.asset,
|
|
2857
2857
|
type: "save",
|
|
2858
2858
|
amount: s.amount,
|
|
2859
2859
|
apy: s.apy
|
|
2860
2860
|
})),
|
|
2861
|
-
...p.positions.borrows.map((b) => ({
|
|
2861
|
+
...p.positions.borrows.filter((b) => b.amount > 5e-3).map((b) => ({
|
|
2862
2862
|
protocol: p.protocolId,
|
|
2863
2863
|
asset: b.asset,
|
|
2864
2864
|
type: "borrow",
|