@curvefi/llamalend-api 1.0.27 → 1.0.28

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,10 +153,9 @@ 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
157
156
  const url = `https://prices.curve.finance/odos/quote?chain_id=${this.chainId}&from_address=${ethers.getAddress(fromToken)}` +
158
157
  `&to_address=${ethers.getAddress(toToken)}&amount=${_amount.toString()}&slippage=${slippage}&pathVizImage=${pathVizImage}` +
159
- `&caller_address=${ethers.getAddress(this.constants.ALIASES.leverage_zap)}`;
158
+ `&caller_address=${ethers.getAddress(this.constants.ALIASES.leverage_zap)}&blacklist=${ethers.getAddress(blacklist)}`;
160
159
  const response = yield fetch(url, { headers: { "accept": "application/json" } });
161
160
  if (response.status !== 200) {
162
161
  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.27",
3
+ "version": "1.0.28",
4
4
  "description": "JavaScript library for Curve Lending",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",
@@ -173,10 +173,9 @@ 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
177
176
  const url = `https://prices.curve.finance/odos/quote?chain_id=${this.chainId}&from_address=${ethers.getAddress(fromToken)}` +
178
177
  `&to_address=${ethers.getAddress(toToken)}&amount=${_amount.toString()}&slippage=${slippage}&pathVizImage=${pathVizImage}` +
179
- `&caller_address=${ethers.getAddress(this.constants.ALIASES.leverage_zap)}`;
178
+ `&caller_address=${ethers.getAddress(this.constants.ALIASES.leverage_zap)}&blacklist=${ethers.getAddress(blacklist)}`;
180
179
 
181
180
  const response = await fetch(url, { headers: {"accept": "application/json"} });
182
181
  if (response.status !== 200) {