@dhedge/v2-sdk 2.2.2 → 2.2.3

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.
@@ -11947,9 +11947,11 @@ var getCalculateSwapDataParams = /*#__PURE__*/function () {
11947
11947
 
11948
11948
  case 2:
11949
11949
  aaveAssetGuardAddress = _context.sent;
11950
- aaveAssetGuard = new ethers.Contract(aaveAssetGuardAddress, AaveLendingPoolAssetGuardAbi, pool.signer);
11950
+ aaveAssetGuard = new ethers.Contract(aaveAssetGuardAddress, AaveLendingPoolAssetGuardAbi, pool.signer.provider);
11951
11951
  _context.next = 6;
11952
- return aaveAssetGuard.callStatic.calculateSwapDataParams(torosAsset, amountIn, slippage);
11952
+ return aaveAssetGuard.callStatic.calculateSwapDataParams(torosAsset, amountIn, slippage, {
11953
+ from: ethers.constants.AddressZero
11954
+ });
11953
11955
 
11954
11956
  case 6:
11955
11957
  swapDataParams = _context.sent;