@curvefi/llamalend-api 1.0.26 → 1.0.27

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.
@@ -153,9 +153,10 @@ export function _getQuoteOdos(fromToken_1, toToken_1, _amount_1, blacklist_1, pa
153
153
  fromToken = "0x0000000000000000000000000000000000000000";
154
154
  if (ethers.getAddress(toToken) == "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE")
155
155
  toToken = "0x0000000000000000000000000000000000000000";
156
+ //&blacklist=${ethers.getAddress(blacklist)} - tmp fix
156
157
  const url = `https://prices.curve.finance/odos/quote?chain_id=${this.chainId}&from_address=${ethers.getAddress(fromToken)}` +
157
158
  `&to_address=${ethers.getAddress(toToken)}&amount=${_amount.toString()}&slippage=${slippage}&pathVizImage=${pathVizImage}` +
158
- `&caller_address=${ethers.getAddress(this.constants.ALIASES.leverage_zap)}&blacklist=${ethers.getAddress(blacklist)}`;
159
+ `&caller_address=${ethers.getAddress(this.constants.ALIASES.leverage_zap)}`;
159
160
  const response = yield fetch(url, { headers: { "accept": "application/json" } });
160
161
  if (response.status !== 200) {
161
162
  throw Error(`Odos quote error - ${response.status} ${response.statusText}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/llamalend-api",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "JavaScript library for Curve Lending",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",
@@ -173,9 +173,10 @@ export async function _getQuoteOdos(this: Llamalend, fromToken: string, toToken:
173
173
  if (ethers.getAddress(fromToken) == "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE") fromToken = "0x0000000000000000000000000000000000000000";
174
174
  if (ethers.getAddress(toToken) == "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE") toToken = "0x0000000000000000000000000000000000000000";
175
175
 
176
+ //&blacklist=${ethers.getAddress(blacklist)} - tmp fix
176
177
  const url = `https://prices.curve.finance/odos/quote?chain_id=${this.chainId}&from_address=${ethers.getAddress(fromToken)}` +
177
178
  `&to_address=${ethers.getAddress(toToken)}&amount=${_amount.toString()}&slippage=${slippage}&pathVizImage=${pathVizImage}` +
178
- `&caller_address=${ethers.getAddress(this.constants.ALIASES.leverage_zap)}&blacklist=${ethers.getAddress(blacklist)}`;
179
+ `&caller_address=${ethers.getAddress(this.constants.ALIASES.leverage_zap)}`;
179
180
 
180
181
  const response = await fetch(url, { headers: {"accept": "application/json"} });
181
182
  if (response.status !== 200) {