@sonarwatch/portfolio-plugins 0.14.154 → 0.14.155
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/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.14.155](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.154...plugins-0.14.155) (2025-03-25)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.14.154](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.153...plugins-0.14.154) (2025-03-25)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
@@ -40,7 +40,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
40
40
|
const vault = vaults.get(stakeAccount.vault.toString());
|
41
41
|
if (!vault)
|
42
42
|
return;
|
43
|
-
const amount = (0, helpers_1.bytesToNumberLE)(new Uint8Array(stakeAccount.amount.array));
|
43
|
+
const amount = (0, helpers_1.bytesToNumberLE)(new Uint8Array(stakeAccount.amount.array)) * vault.price;
|
44
44
|
const element = elementRegistry.addElementMultiple({
|
45
45
|
label: 'Deposit',
|
46
46
|
ref: stakeAccount.pubkey,
|
@@ -53,7 +53,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
53
53
|
link: `https://app.loopscale.com/vault/AXanCP4dJHtWd7zY4X7nwxN5t5Gysfy2uG3XTxSmXdaB${vault.pubkey}`,
|
54
54
|
});
|
55
55
|
element.addAsset({
|
56
|
-
address: vault.
|
56
|
+
address: vault.principal,
|
57
57
|
amount,
|
58
58
|
});
|
59
59
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lendVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loopscale/lendVaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA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AAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxD,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"lendVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loopscale/lendVaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAA6E;AAE7E,iDAAsD;AACtD,gFAA6E;AAC7E,kEAA+D;AAC/D,uCAA6C;AAC7C,uCAA4C;AAC5C,kEAA+D;AAE/D,4DAAyD;AAG5C,QAAA,UAAU,GAAG,IAAI,6BAAa,CAIzC,0BAAc,EACd;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,CACzC,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,eAAe,GAAG,MAAM,qBAAS,CAAC,KAAK,CAC3C,UAAU,EACV,0BAAgB,EAChB,8BAAkB,CACnB;SACE,SAAS,CAAC,sBAAsB,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;SACzE,SAAS,CAAC,MAAM,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC;SACvC,GAAG,EAAE,CAAC;IAET,IAAI,CAAC,eAAe,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvC,MAAM,MAAM,GAAG,MAAM,kBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/C,IAAI,CAAC,MAAM,CAAC,IAAI;QAAE,MAAM,IAA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