@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.
- package/cjs/aaveV3/index.js +3 -1
- package/esm/aaveV3/index.js +3 -1
- package/package.json +1 -1
- package/src/aaveV3/index.ts +3 -1
package/cjs/aaveV3/index.js
CHANGED
|
@@ -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
|
-
|
|
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) => {
|
package/esm/aaveV3/index.js
CHANGED
|
@@ -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
|
-
|
|
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
package/src/aaveV3/index.ts
CHANGED
|
@@ -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
|
-
|
|
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) => {
|