RICO icon indicating copy to clipboard operation
RICO copied to clipboard

Switch Token format EIP20 to ERC223

Open syrohei opened this issue 7 years ago • 0 comments

  • Raiden contain ERC223 fixed token standard
 /*
 * Contract that is working with ERC223 tokens
 * https://github.com/ethereum/EIPs/issues/223
 */

/// @title ERC223ReceivingContract - Standard contract implementation for compatibility with ERC223 tokens.
contract ERC223ReceivingContract {

    /// @dev Function that is called when a user or another contract wants to transfer funds.
    /// @param _from Transaction initiator, analogue of msg.sender
    /// @param _value Number of tokens to transfer.
    /// @param _data Data containig a function signature and/or parameters
    function tokenFallback(address _from, uint256 _value, bytes _data) public;
}

function tokenFallback implement a refunding from contract if sender is contract. but this format is not de fact standard yet.

syrohei avatar Oct 03 '17 18:10 syrohei