@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
package/package.json
CHANGED
|
@@ -66,9 +66,7 @@ export async function fetchPriceFromKyberSwap(
|
|
|
66
66
|
|
|
67
67
|
export async function fetchPriceFromDefiLlamaAPI(id: string): Promise<BigNumber> {
|
|
68
68
|
const price = await axios
|
|
69
|
-
.
|
|
70
|
-
coins: [id],
|
|
71
|
-
})
|
|
69
|
+
.get(`https://coins.llama.fi/prices/current/${id}`)
|
|
72
70
|
.then((res: any) => {
|
|
73
71
|
return res.data.coins[id].price;
|
|
74
72
|
})
|