From cab6225016d0ee3fe15b4f38562d282726e474ae Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Mon, 11 May 2020 03:23:23 +0530 Subject: [PATCH] fixed a bug --- contracts/connectors/1inch.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/connectors/1inch.sol b/contracts/connectors/1inch.sol index e07b19b..54cb907 100644 --- a/contracts/connectors/1inch.sol +++ b/contracts/connectors/1inch.sol @@ -60,7 +60,7 @@ contract OneHelpers is Stores, DSMath { /** * @dev Return 1Split Address */ - function getOneSplitAddress() internal pure returns (address) { + function getOneSplitAddress() internal pure returns (address payable) { return 0xC586BeF4a0992C495Cf22e1aeEE4E446CECDee0E; } @@ -288,7 +288,7 @@ contract BasicResolver is Resolver { require(checkOneInchSig(callData), "Not-swap-function"); - uint buyAmt = oneInchSwap(_buyAddr, _sellAddr, callData, sellAmt, unitAmt, sellAmt); + uint buyAmt = oneInchSwap(_buyAddr, _sellAddr, callData, sellAmt, unitAmt, ethAmt); setUint(setId, buyAmt);