mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
fixed a bug
This commit is contained in:
parent
05eacbce94
commit
cab6225016
|
@ -60,7 +60,7 @@ contract OneHelpers is Stores, DSMath {
|
||||||
/**
|
/**
|
||||||
* @dev Return 1Split Address
|
* @dev Return 1Split Address
|
||||||
*/
|
*/
|
||||||
function getOneSplitAddress() internal pure returns (address) {
|
function getOneSplitAddress() internal pure returns (address payable) {
|
||||||
return 0xC586BeF4a0992C495Cf22e1aeEE4E446CECDee0E;
|
return 0xC586BeF4a0992C495Cf22e1aeEE4E446CECDee0E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -288,7 +288,7 @@ contract BasicResolver is Resolver {
|
||||||
|
|
||||||
require(checkOneInchSig(callData), "Not-swap-function");
|
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);
|
setUint(setId, buyAmt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user