@curvefi/llamalend-api 2.0.7 → 2.0.8
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/lib/utils.js +1 -1
- package/package.json +1 -1
- package/src/utils.ts +1 -1
package/lib/utils.js
CHANGED
|
@@ -267,7 +267,7 @@ export const _getUsdRate = function (assetId) {
|
|
|
267
267
|
const pricesFromApi = yield _getUsdPricesFromApi(this.constants.NETWORK_NAME);
|
|
268
268
|
if (assetId.toLowerCase() in pricesFromApi)
|
|
269
269
|
return pricesFromApi[assetId.toLowerCase()];
|
|
270
|
-
if (assetId === 'USD'
|
|
270
|
+
if (assetId === 'USD')
|
|
271
271
|
return 1;
|
|
272
272
|
const chainName = {
|
|
273
273
|
1: 'ethereum',
|
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -288,7 +288,7 @@ export const _getUsdRate = async function (this: Llamalend, assetId: string): Pr
|
|
|
288
288
|
const pricesFromApi = await _getUsdPricesFromApi(this.constants.NETWORK_NAME);
|
|
289
289
|
if (assetId.toLowerCase() in pricesFromApi) return pricesFromApi[assetId.toLowerCase()];
|
|
290
290
|
|
|
291
|
-
if (assetId === 'USD'
|
|
291
|
+
if (assetId === 'USD') return 1
|
|
292
292
|
|
|
293
293
|
const chainName = {
|
|
294
294
|
1: 'ethereum',
|