@aurigami/sdk 1.20.3 → 1.20.5
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/sdk.cjs.development.js +2 -4
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +2 -4
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/priceFetcher.ts +1 -3
- package/src/interactors/MoneyMarket.ts +1 -1
- package/src/a.ts.log +0 -29
|
@@ -1548,9 +1548,7 @@ function _fetchPriceFromDefiLlamaAPI() {
|
|
|
1548
1548
|
while (1) switch (_context4.prev = _context4.next) {
|
|
1549
1549
|
case 0:
|
|
1550
1550
|
_context4.next = 2;
|
|
1551
|
-
return axios.
|
|
1552
|
-
coins: [id]
|
|
1553
|
-
}).then(function (res) {
|
|
1551
|
+
return axios.get("https://coins.llama.fi/prices/current/" + id).then(function (res) {
|
|
1554
1552
|
return res.data.coins[id].price;
|
|
1555
1553
|
})["catch"](function (err) {
|
|
1556
1554
|
console.log("unable to fetch price from DefiLlama API: " + err);
|
|
@@ -2940,7 +2938,7 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2940
2938
|
}
|
|
2941
2939
|
_context13.t0 = helpers;
|
|
2942
2940
|
_context13.next = 9;
|
|
2943
|
-
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '
|
|
2941
|
+
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '250000', false), this._networkConnection.provider);
|
|
2944
2942
|
case 9:
|
|
2945
2943
|
_context13.t1 = _context13.sent;
|
|
2946
2944
|
_context13.t2 = underlyingPrice.multipliedBy(totalDeposited.formattedAmount());
|