@defisaver/positions-sdk 0.0.143 → 0.0.144

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.
@@ -227,7 +227,9 @@ function getAaveV3MarketData(web3, network, market, defaultWeb3) {
227
227
  }
228
228
  const [{ 0: ghoDiscountedPerDiscountToken }, { 0: discountRate }, { 0: minDiscountTokenBalance }, { 0: minGhoBalanceForDiscount }, { 0: facilitatorsList },] = multiRes;
229
229
  let rewardInfo = null;
230
- const networksWithIncentives = [common_1.NetworkNumber.Arb, common_1.NetworkNumber.Opt];
230
+ // @DEV: Temporarily disable incentives for Arbitrum and Optimism
231
+ // const networksWithIncentives = [NetworkNumber.Arb, NetworkNumber.Opt];
232
+ const networksWithIncentives = [];
231
233
  if (networksWithIncentives.includes(network)) {
232
234
  rewardInfo = yield aaveIncentivesContract.methods.getReservesIncentivesData(marketAddress).call();
233
235
  rewardInfo = rewardInfo.reduce((all, _market) => {
@@ -218,7 +218,9 @@ export function getAaveV3MarketData(web3, network, market, defaultWeb3) {
218
218
  }
219
219
  const [{ 0: ghoDiscountedPerDiscountToken }, { 0: discountRate }, { 0: minDiscountTokenBalance }, { 0: minGhoBalanceForDiscount }, { 0: facilitatorsList },] = multiRes;
220
220
  let rewardInfo = null;
221
- const networksWithIncentives = [NetworkNumber.Arb, NetworkNumber.Opt];
221
+ // @DEV: Temporarily disable incentives for Arbitrum and Optimism
222
+ // const networksWithIncentives = [NetworkNumber.Arb, NetworkNumber.Opt];
223
+ const networksWithIncentives = [];
222
224
  if (networksWithIncentives.includes(network)) {
223
225
  rewardInfo = yield aaveIncentivesContract.methods.getReservesIncentivesData(marketAddress).call();
224
226
  rewardInfo = rewardInfo.reduce((all, _market) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "0.0.143",
3
+ "version": "0.0.144",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -270,7 +270,9 @@ export async function getAaveV3MarketData(web3: Web3, network: NetworkNumber, ma
270
270
  ] = multiRes;
271
271
 
272
272
  let rewardInfo: IUiIncentiveDataProviderV3.AggregatedReserveIncentiveDataStructOutput[] | null = null;
273
- const networksWithIncentives = [NetworkNumber.Arb, NetworkNumber.Opt];
273
+ // @DEV: Temporarily disable incentives for Arbitrum and Optimism
274
+ // const networksWithIncentives = [NetworkNumber.Arb, NetworkNumber.Opt];
275
+ const networksWithIncentives: NetworkNumber[] = [];
274
276
  if (networksWithIncentives.includes(network)) {
275
277
  rewardInfo = await aaveIncentivesContract.methods.getReservesIncentivesData(marketAddress).call();
276
278
  rewardInfo = rewardInfo.reduce((all: any, _market: AaveV3IncentiveData) => {