DRI-network / RICO

The Responsible Initial Coin Offering Framework
GNU General Public License v3.0
92 stars 19 forks source link

Switch Token format EIP20 to ERC223 #3

Open syrohei opened 6 years ago

syrohei commented 6 years ago

/// @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.