@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 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' || (assetId.toLowerCase() === this.constants.COINS.am3crv.toLowerCase()))
270
+ if (assetId === 'USD')
271
271
  return 1;
272
272
  const chainName = {
273
273
  1: 'ethereum',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/llamalend-api",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "JavaScript library for Curve Lending",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",
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' || (assetId.toLowerCase() === this.constants.COINS.am3crv.toLowerCase())) return 1
291
+ if (assetId === 'USD') return 1
292
292
 
293
293
  const chainName = {
294
294
  1: 'ethereum',