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