mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Added token taker address
This commit is contained in:
parent
cab6225016
commit
dac5a7b1f5
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user