Added token taker address

This commit is contained in:
Thrilok Kumar 2020-05-11 03:23:56 +05:30
parent cab6225016
commit dac5a7b1f5

View File

@ -64,6 +64,13 @@ contract OneHelpers is Stores, DSMath {
return 0xC586BeF4a0992C495Cf22e1aeEE4E446CECDee0E;
}
/**
* @dev Return 1Split Token Taker Address
*/
function getOneSplitTokenTaker() internal pure returns (address payable) {
return 0xE4C9194962532fEB467DCe8b3d42419641c6eD2E;
}
/**
* @dev Return 1Split swap function sig
*/
@ -283,7 +290,7 @@ contract BasicResolver is Resolver {
if (address(_sellAddr) == getEthAddr()) {
ethAmt = sellAmt;
} else {
TokenInterface(_sellAddr).approve(getOneInchAddress(), sellAmt);
TokenInterface(_sellAddr).approve(getOneSplitTokenTaker(), sellAmt);
}
require(checkOneInchSig(callData), "Not-swap-function");