@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
package/dist/sdk.esm.js
CHANGED
|
@@ -1543,9 +1543,7 @@ function _fetchPriceFromDefiLlamaAPI() {
|
|
|
1543
1543
|
while (1) switch (_context4.prev = _context4.next) {
|
|
1544
1544
|
case 0:
|
|
1545
1545
|
_context4.next = 2;
|
|
1546
|
-
return axios.
|
|
1547
|
-
coins: [id]
|
|
1548
|
-
}).then(function (res) {
|
|
1546
|
+
return axios.get("https://coins.llama.fi/prices/current/" + id).then(function (res) {
|
|
1549
1547
|
return res.data.coins[id].price;
|
|
1550
1548
|
})["catch"](function (err) {
|
|
1551
1549
|
console.log("unable to fetch price from DefiLlama API: " + err);
|
|
@@ -2935,7 +2933,7 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2935
2933
|
}
|
|
2936
2934
|
_context13.t0 = helpers;
|
|
2937
2935
|
_context13.next = 9;
|
|
2938
|
-
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '
|
|
2936
|
+
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '250000', false), this._networkConnection.provider);
|
|
2939
2937
|
case 9:
|
|
2940
2938
|
_context13.t1 = _context13.sent;
|
|
2941
2939
|
_context13.t2 = underlyingPrice.multipliedBy(totalDeposited.formattedAmount());
|