Sponsored Link:   SHIFT.cash - 1st ever car title loan platform on blockchain. Join NOW.
Contract Overview | RAFLtoken
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 5 txns
Token Tracker 0x1e35c3200e564be5af35aff8d1bb5a16a4390a79
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

Contract Source Code Verified
Contract Name: RFL_Token
Compiler Version: v0.4.16+commit.d7661dd9
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.16;

/**
 * @title SafeMath by OpenZeppelin
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

    function sub(uint256 a, uint256 b) internal constant returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    function add(uint256 a, uint256 b) internal constant returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }

}
/**
 * @title ERC20TokenInterface
 * @dev Token contract interface for external use
 */
contract ERC20TokenInterface {

    function balanceOf(address _owner) public constant returns (uint256 balance);
    function transfer(address _to, uint256 _value) public returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
    function approve(address _spender, uint256 _value) public returns (bool success);
    function allowance(address _owner, address _spender) public constant returns (uint256 remaining);

    }


/**
 * @title admined
 * @notice This contract is administered
 */
contract admined {
    address public admin; //Admin address is public
    
    /**
    * @dev This contructor takes the msg.sender as the first administer
    */
    function admined() internal {
        admin = msg.sender; //Set initial admin to contract creator
        Admined(admin);
    }

    /**
    * @dev This modifier limits function execution to the admin
    */
    modifier onlyAdmin() { //A modifier to define admin-only functions
        require(msg.sender == admin);
        _;
    }

    /**
    * @notice This function transfer the adminship of the contract to _newAdmin
    * @param _newAdmin The new admin of the contract
    */
    function transferAdminship(address _newAdmin) onlyAdmin public { //Admin can be transfered
        admin = _newAdmin;
        TransferAdminship(admin);
    }

    /**
    * @dev Log Events
    */
    event TransferAdminship(address newAdminister);
    event Admined(address administer);

}

/**
* @title ERC20Token
* @notice Token definition contract
*/
contract ERC20Token is ERC20TokenInterface,admined { //Standar definition of a ERC20Token
    using SafeMath for uint256; //SafeMath is used for uint256 operations
    mapping (address => uint256) balances; //A mapping of all balances per address
    mapping (address => mapping (address => uint256)) allowed; //A mapping of all allowances
    uint256 public totalSupply;

    /**
    * @notice Get the balance of an _owner address.
    * @param _owner The address to be query.
    */
    function balanceOf(address _owner) public constant returns (uint256 balance) {
      return balances[_owner];
    }

    /**
    * @notice transfer _value tokens to address _to
    * @param _to The address to transfer to.
    * @param _value The amount to be transferred.
    * @return success with boolean value true if done
    */
    function transfer(address _to, uint256 _value) public returns (bool success) {
        require(_to != address(0)); //Dont want that any body destroy token
        require(balances[msg.sender] >= _value);
        balances[msg.sender] = balances[msg.sender].sub(_value);
        balances[_to] = balances[_to].add(_value);
        Transfer(msg.sender, _to, _value);
        return true;
    }

    /**
    * @notice Transfer _value tokens from address _from to address _to using allowance msg.sender allowance on _from
    * @param _from The address where tokens comes.
    * @param _to The address to transfer to.
    * @param _value The amount to be transferred.
    * @return success with boolean value true if done
    */
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_to != address(0)); //If you dont want that people destroy token
        require(balances[_from] >= _value && allowed[_from][msg.sender] >= _value);
        balances[_to] = balances[_to].add(_value);
        balances[_from] = balances[_from].sub(_value);
        allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
        Transfer(_from, _to, _value);
        return true;
    }

    /**
    * @notice Assign allowance _value to _spender address to use the msg.sender balance
    * @param _spender The address to be allowed to spend.
    * @param _value The amount to be allowed.
    * @return success with boolean value true
    */
    function approve(address _spender, uint256 _value) public returns (bool success) {
      allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    /**
    * @notice Get the allowance of an specified address to use another address balance.
    * @param _owner The address of the owner of the tokens.
    * @param _spender The address of the allowed spender.
    * @return remaining with the allowance value
    */
    function allowance(address _owner, address _spender) public constant returns (uint256 remaining) {
    return allowed[_owner][_spender];
    }

    /**
    * @notice Mint _mintedAmount tokens to _target address.
    * @param _target The address of the receiver of the tokens.
    * @param _mintedAmount amount to mint.
    */
    function mintToken(address _target, uint256 _mintedAmount) onlyAdmin public {
        balances[_target] = SafeMath.add(balances[_target], _mintedAmount);
        totalSupply = SafeMath.add(totalSupply, _mintedAmount);
        Transfer(0, this, _mintedAmount);
        Transfer(this, _target, _mintedAmount);
    }

    /**
    * @notice Burn _burnedAmount tokens form _target address.
    * @param _target The address of the holder of the tokens.
    * @param _burnedAmount amount to burn.
    */
    function burnToken(address _target, uint256 _burnedAmount) onlyAdmin public {
        balances[_target] = SafeMath.sub(balances[_target], _burnedAmount);
        totalSupply = SafeMath.sub(totalSupply, _burnedAmount);
        Burned(_target, _burnedAmount);
    }

    /**
    * @dev Log Events
    */
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    event Burned(address indexed _target, uint256 _value);
}

/**
* @title RFL_Token
* @notice ERC20 token creation.
*/
contract RFL_Token is ERC20Token {
    string public name;
    uint256 public decimals = 18;
    string public symbol;
    string public version = '1';
    
    /**
    * @notice token contructor.
    * @param _name is the name of the token
    * @param _symbol is the symbol of the token
    * @param _teamAddress is the address of the developer team
    */
    function RFL_Token(string _name, string _symbol, address _teamAddress) public {
        name = _name;
        symbol = _symbol;
        totalSupply = 100000000 * (10 ** decimals); //100 million tokens initial supply;
        balances[this] = 80000000 * (10 ** decimals); //80 million supply is initially holded on contract
        balances[_teamAddress] = 19000000 * (10 ** decimals); //19 million supply is initially holded by developer team
        balances[0xFAB6368b0F7be60c573a6562d82469B5ED9e7eE6] = 1000000 * (10 ** decimals); //1 million supply is initially holded for bounty
        allowed[this][msg.sender] = balances[this]; //the sender has allowance on total balance on contract
        Transfer(0, this, balances[this]);
        Transfer(this, _teamAddress, balances[_teamAddress]);
        Transfer(this, 0xFAB6368b0F7be60c573a6562d82469B5ED9e7eE6, balances[0xFAB6368b0F7be60c573a6562d82469B5ED9e7eE6]);
        Approval(this, msg.sender, balances[this]);
    }
    
    /**
    * @notice this contract will revert on direct non-function calls
    * @dev Function to handle callback calls
    */
    function() public {
        revert();
    }

}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newAdmin","type":"address"}],"name":"transferAdminship","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_burnedAmount","type":"uint256"}],"name":"burnToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_teamAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_target","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newAdminister","type":"address"}],"name":"TransferAdminship","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"administer","type":"address"}],"name":"Admined","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052601260055560408051908101604052600181527f31000000000000000000000000000000000000000000000000000000000000006020820152600790805162000052929160200190620002c5565b5034156200005f57600080fd5b60405162000fbc38038062000fbc833981016040528080518201919060200180518201919060200180519150505b5b60008054600160a060020a03191633600160a060020a0390811691909117918290557fa2b0867ddc9434a6620c27aae2ee7b19d3db53f3e7f059bdbecc3f2091e24f779116604051600160a060020a03909116815260200160405180910390a15b600483805162000104929160200190620002c5565b5060068280516200011a929160200190620002c5565b5060058054600a90810a6305f5e100810260035530600160a060020a0390811660008181526001602081815260408084206304c4b400909702875588548a8716855281852090890a630121eac0029055975490960a620f42400260008051602062000f7c83398151915255828252935460028652868220339094168252928552858120839055818152929093529192909160008051602062000f9c833981519152915190815260200160405180910390a3600160a060020a038082166000818152600160205260409081902054919230169160008051602062000f9c833981519152915190815260200160405180910390a373fab6368b0f7be60c573a6562d82469b5ed9e7ee66000819052600160205260008051602062000f7c8339815191525430600160a060020a03169060008051602062000f9c8339815191529060405190815260200160405180910390a3600160a060020a03308116600081815260016020526040908190205433909316927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35b5050506200036f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200030857805160ff191683800117855562000338565b8280016001018555821562000338579182015b82811115620003385782518255916020019190600101906200031b565b5b50620003479291506200034b565b5090565b6200036c91905b8082111562000347576000815560010162000352565b5090565b90565b610bfd806200037f6000396000f300606060405236156100cd5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100e0578063095ea7b31461016b57806318160ddd146101a157806323b872dd146101c6578063313ce5671461020257806354fd4d50146102275780635be7cc16146102b257806370a08231146102d357806379c650681461030457806395d89b4114610328578063a9059cbb146103b3578063d1df306c146103e9578063dd62ed3e1461040d578063f851a44014610444575b34156100d857600080fd5b5b600080fd5b005b34156100eb57600080fd5b6100f3610473565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101305780820151818401525b602001610117565b50505050905090810190601f16801561015d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561017657600080fd5b61018d600160a060020a0360043516602435610511565b604051901515815260200160405180910390f35b34156101ac57600080fd5b6101b461057e565b60405190815260200160405180910390f35b34156101d157600080fd5b61018d600160a060020a0360043581169060243516604435610584565b604051901515815260200160405180910390f35b341561020d57600080fd5b6101b46106f3565b60405190815260200160405180910390f35b341561023257600080fd5b6100f36106f9565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101305780820151818401525b602001610117565b50505050905090810190601f16801561015d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102bd57600080fd5b6100de600160a060020a0360043516610797565b005b34156102de57600080fd5b6101b4600160a060020a0360043516610823565b60405190815260200160405180910390f35b341561030f57600080fd5b6100de600160a060020a0360043516602435610842565b005b341561033357600080fd5b6100f3610911565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101305780820151818401525b602001610117565b50505050905090810190601f16801561015d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103be57600080fd5b61018d600160a060020a03600435166024356109af565b604051901515815260200160405180910390f35b34156103f457600080fd5b6100de600160a060020a0360043516602435610a9a565b005b341561041857600080fd5b6101b4600160a060020a0360043581169060243516610b44565b60405190815260200160405180910390f35b341561044f57600080fd5b610457610b71565b604051600160a060020a03909116815260200160405180910390f35b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105095780601f106104de57610100808354040283529160200191610509565b820191906000526020600020905b8154815290600101906020018083116104ec57829003601f168201915b505050505081565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035481565b6000600160a060020a038316151561059b57600080fd5b600160a060020a0384166000908152600160205260409020548290108015906105eb5750600160a060020a0380851660009081526002602090815260408083203390941683529290522054829010155b15156105f657600080fd5b600160a060020a03831660009081526001602052604090205461061f908363ffffffff610b8016565b600160a060020a038085166000908152600160205260408082209390935590861681522054610654908363ffffffff610b9a16565b600160a060020a0380861660009081526001602090815260408083209490945560028152838220339093168252919091522054610697908363ffffffff610b9a16565b600160a060020a0380861660008181526002602090815260408083203386168452909152908190209390935590851691600080516020610bb28339815191529085905190815260200160405180910390a35060015b9392505050565b60055481565b60078054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105095780601f106104de57610100808354040283529160200191610509565b820191906000526020600020905b8154815290600101906020018083116104ec57829003601f168201915b505050505081565b60005433600160a060020a039081169116146107b257600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290557f4f2723059e5730f1d4ffa943789d401722067ca1121b828944c6965dbd303e089116604051600160a060020a03909116815260200160405180910390a15b5b50565b600160a060020a0381166000908152600160205260409020545b919050565b60005433600160a060020a0390811691161461085d57600080fd5b600160a060020a0382166000908152600160205260409020546108809082610b80565b600160a060020a0383166000908152600160205260409020556003546108a69082610b80565b600355600160a060020a0330166000600080516020610bb28339815191528360405190815260200160405180910390a381600160a060020a031630600160a060020a0316600080516020610bb28339815191528360405190815260200160405180910390a35b5b5050565b60068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105095780601f106104de57610100808354040283529160200191610509565b820191906000526020600020905b8154815290600101906020018083116104ec57829003601f168201915b505050505081565b6000600160a060020a03831615156109c657600080fd5b600160a060020a033316600090815260016020526040902054829010156109ec57600080fd5b600160a060020a033316600090815260016020526040902054610a15908363ffffffff610b9a16565b600160a060020a033381166000908152600160205260408082209390935590851681522054610a4a908363ffffffff610b8016565b600160a060020a038085166000818152600160205260409081902093909355913390911690600080516020610bb28339815191529085905190815260200160405180910390a35060015b92915050565b60005433600160a060020a03908116911614610ab557600080fd5b600160a060020a038216600090815260016020526040902054610ad89082610b9a565b600160a060020a038316600090815260016020526040902055600354610afe9082610b9a565b600355600160a060020a0382167f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df78260405190815260200160405180910390a25b5b5050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600054600160a060020a031681565b600082820183811015610b8f57fe5b8091505b5092915050565b600082821115610ba657fe5b508082035b929150505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820296ba901521a6899708fadc09af5fa153e8683e6746a577d7afe00aa241e3a1a0029bff48c30fa2dc0e9d5dae193302075c584919a216572455d8efb33de3b829b34ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d1210033cc74dce000d356616b65b941eb183e54000000000000000000000000000000000000000000000000000000000000000c5241464c2e6e6574776f726b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000352464c0000000000000000000000000000000000000000000000000000000000

    Constructor Arguments (ABI-encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d1210033cc74dce000d356616b65b941eb183e54000000000000000000000000000000000000000000000000000000000000000c5241464c2e6e6574776f726b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000352464c0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Found 7 constructor arguments :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000d1210033cc74dce000d356616b65b941eb183e54
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 5241464c2e6e6574776f726b0000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 52464c0000000000000000000000000000000000000000000000000000000000


   Swarm Source:
bzzr://296ba901521a6899708fadc09af5fa153e8683e6746a577d7afe00aa241e3a1a

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.