impermax-sdk 2.1.256 → 2.1.258

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.
@@ -42,7 +42,7 @@ exports.ROUTER = {
42
42
  [types_1.Networks.Arbitrum]: {
43
43
  [types_1.Factory.V2V1_1]: '',
44
44
  [types_1.Factory.V2V2]: '',
45
- [types_1.Factory.SOLV2]: '',
45
+ [types_1.Factory.SOLV2]: '0x731318364F4aeAdA922Bc2636198e56912F8bCa4',
46
46
  },
47
47
  [types_1.Networks.Avalanche]: {
48
48
  [types_1.Factory.V2V1_2]: '',
@@ -75,7 +75,7 @@ exports.ROUTER = {
75
75
  [types_1.Networks.Moonbeam]: {},
76
76
  [types_1.Networks.Sxnetwork]: {},
77
77
  [types_1.Networks.Base]: {
78
- [types_1.Factory.SOLV2]: '0x9940d4E448Fa0CE8C2CAC9292734A153CD69b04f',
78
+ [types_1.Factory.SOLV2]: '0x98b55cd14450f56355cdefa74d9443d9c48b78cd',
79
79
  [types_1.Factory.SOL_STABLE]: '',
80
80
  [types_1.Factory.V2V2]: ''
81
81
  },
@@ -94,7 +94,7 @@ exports.ROUTER = {
94
94
  [types_1.Factory.SOL_STABLE]: ''
95
95
  },
96
96
  [types_1.Networks.Sonic]: {
97
- [types_1.Factory.SOLV2]: '',
97
+ [types_1.Factory.SOLV2]: '0xE51f851AfB17e9773E2dea81d35D29c8469c8879',
98
98
  },
99
99
  [types_1.Networks.Linea]: {
100
100
  [types_1.Factory.SOLV2]: '',
@@ -149,7 +149,7 @@ class OnchainInteractionsCollateralV2 extends onchainInteractionsPoolToken_1.def
149
149
  // remove LP and send liquidity to the router
150
150
  actions.push(await actionsGetter.methods.getRedeemUniV2Action((0, ether_utils_1.decimalToBalance)(percentageToRemove, 18), await borrowableA.toBigNumber(-depositADelta * MIN_AMOUNT), await borrowableB.toBigNumber(-depositBDelta * MIN_AMOUNT), router._address).call());
151
151
  const collateralBalance = await this.getAccountCollateral().getTokens();
152
- approveCollateral += collateralBalance * percentageToRemove;
152
+ approveCollateral += collateralBalance * percentageToRemove * this.getDust();
153
153
  if (isEthA || isEthB)
154
154
  doWithdrawEth = true;
155
155
  // withdraw or repay tokenA
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.256",
3
+ "version": "2.1.258",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",