This one:


As you can see most of the last transfer fail, the transfer function is:

 function transfer(address recipient, uint256 amount) public canTransfer returns (bool) {
        require(recipient != address(this), "can't transfer tokens to the contract address");

        _transfer(msg.sender, recipient, amount);
        return true;

//going further:

 function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount);
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);

// and here is the modified cantransfer, yes - it's not "true" as of this writing:

 modifier canTransfer() {
            require (isWhitelisted(msg.sender) == true, "can't perform an action");

willing to even send some $10 worth of tokens lol if someone can help :) thanx.

  • Comments are not for extended discussion; this conversation has been moved to chat. – eth Feb 1 at 10:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.