@aurigami/sdk 1.20.3 → 1.20.4
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 +1 -3
- 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 +1 -3
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/priceFetcher.ts +1 -3
|
@@ -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);
|