@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.
- package/dist/v2-sdk.cjs.development.js +4 -2
- package/dist/v2-sdk.cjs.development.js.map +1 -1
- package/dist/v2-sdk.cjs.production.min.js +1 -1
- package/dist/v2-sdk.cjs.production.min.js.map +1 -1
- package/dist/v2-sdk.esm.js +4 -2
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/services/toros/initWithdrawal.ts +3 -2
- package/src/test/constants.ts +1 -1
- package/src/test/toros.test.ts +27 -25
package/dist/v2-sdk.esm.js
CHANGED
|
@@ -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;
|