I want to achieve the following:
using SafeERC20 for IERC20; require(IERC20(_token).safeTransfer(_to, _value), ERROR_TOKEN_TRANSFER_REVERTED);
IERC20 are from openzeppelin.
The above code fails and doen't get compiled.
No matching declaration found after argument-dependent lookup.
I looked into it and realize that none of the
safe functions return any booleans. So how can I achieve what I want ? I need to have my own
require which will have my own
Any ideas ?