@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.js
CHANGED
|
@@ -2849,14 +2849,14 @@ var T2000 = class _T2000 extends EventEmitter {
|
|
|
2849
2849
|
const allPositions = await this.registry.allPositions(this._address);
|
|
2850
2850
|
const positions = allPositions.flatMap(
|
|
2851
2851
|
(p) => [
|
|
2852
|
-
...p.positions.supplies.map((s) => ({
|
|
2852
|
+
...p.positions.supplies.filter((s) => s.amount > 5e-3).map((s) => ({
|
|
2853
2853
|
protocol: p.protocolId,
|
|
2854
2854
|
asset: s.asset,
|
|
2855
2855
|
type: "save",
|
|
2856
2856
|
amount: s.amount,
|
|
2857
2857
|
apy: s.apy
|
|
2858
2858
|
})),
|
|
2859
|
-
...p.positions.borrows.map((b) => ({
|
|
2859
|
+
...p.positions.borrows.filter((b) => b.amount > 5e-3).map((b) => ({
|
|
2860
2860
|
protocol: p.protocolId,
|
|
2861
2861
|
asset: b.asset,
|
|
2862
2862
|
type: "borrow",
|