mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/mainnet/connectors/basic/main.sol
This commit is contained in:
parent
83bd25883c
commit
1d887e3d35
|
@ -62,7 +62,7 @@ abstract contract BasicResolver is Events, DSMath, Basic {
|
|||
uint256 setId
|
||||
) public payable returns (string memory _eventName, bytes memory _eventParam) {
|
||||
uint _amt = getUint(getId, amt);
|
||||
require(token != ethAddr, "Use deposit function to send ether");
|
||||
require(token != ethAddr, "eth-not-supported");
|
||||
IERC20 tokenContract = IERC20(token);
|
||||
_amt = _amt == uint(-1) ? tokenContract.balanceOf(from) : _amt;
|
||||
tokenContract.safeTransferFrom(from, address(this), _amt);
|
||||
|
|
Loading…
Reference in New Issue
Block a user