@defisaver/positions-sdk 2.1.12 → 2.1.13-dev-plasma-fluid

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.
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import Dec from 'decimal.js';
11
11
  import { getAssetInfo } from '@defisaver/tokens';
12
- import { COMPPriceFeedContractViem, BTCPriceFeedContractViem, ETHPriceFeedContractViem, USDCPriceFeedContractViem, WstETHPriceFeedContractViem, WeETHPriceFeedContractViem, } from '../contracts';
12
+ import { BTCPriceFeedContractViem, COMPPriceFeedContractViem, ETHPriceFeedContractViem, USDCPriceFeedContractViem, WeETHPriceFeedContractViem, WstETHPriceFeedContractViem, } from '../contracts';
13
13
  import { NetworkNumber } from '../types/common';
14
14
  import { getEthAmountForDecimals } from './utils';
15
15
  export const getEthPrice = (client) => __awaiter(void 0, void 0, void 0, function* () {
@@ -134,7 +134,7 @@ export const getChainlinkAssetAddress = (symbol, network) => {
134
134
  // Chainlink only has BTC/USD feed so we use that for BTC derivatives
135
135
  if (['WBTC', 'RENBTC'].includes(symbol === null || symbol === void 0 ? void 0 : symbol.toUpperCase()))
136
136
  return '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB';
137
- if ((symbol === null || symbol === void 0 ? void 0 : symbol.toUpperCase()) === 'WETH')
137
+ if ((symbol === null || symbol === void 0 ? void 0 : symbol.toUpperCase()) === 'WETH' && network !== NetworkNumber.Plasma)
138
138
  return getAssetInfo('ETH').addresses[network];
139
139
  return getAssetInfo(symbol).addresses[network];
140
140
  };