Token Linfinity

 

Overview [ERC-20]

Max Total Supply:
3,000,000,000 LFT

Holders:
9,576 (0.00%)

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Linfinity

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-05-22
*/

pragma solidity ^0.4.23;


/**
 * @title IERC20Token - ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract IERC20Token {
    string public name;
    string public symbol;
    uint8 public decimals;
    uint256 public totalSupply;

    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);

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
contract SafeMath {
    /**
    * @dev constructor
    */
    constructor() public {
    }

    function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a * b;
        assert(a == 0 || c / a == b);
        return c;
    }

    function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a / b;
        return c;
    }

    function safeSub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(a >= b);
        return a - b;
    }

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

/**
 * @title ERC20Token - ERC20 base implementation
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20Token is IERC20Token, SafeMath {
    mapping (address => uint256) public balances;
    mapping (address => mapping (address => uint256)) public allowed;

    function transfer(address _to, uint256 _value) public returns (bool) {
        require(_to != address(0));
        require(balances[msg.sender] >= _value);

        balances[msg.sender] = safeSub(balances[msg.sender], _value);
        balances[_to] = safeAdd(balances[_to], _value);
        emit Transfer(msg.sender, _to, _value);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
        require(_to != address(0));
        require(balances[_from] >= _value && allowed[_from][msg.sender] >= _value);

        balances[_to] = safeAdd(balances[_to], _value);
        balances[_from] = safeSub(balances[_from], _value);
        allowed[_from][msg.sender] = safeSub(allowed[_from][msg.sender], _value);
        emit Transfer(_from, _to, _value);
        return true;
    }

    function balanceOf(address _owner) public constant returns (uint256) {
        return balances[_owner];
    }

    function approve(address _spender, uint256 _value) public returns (bool) {
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) public constant returns (uint256) {
      return allowed[_owner][_spender];
    }
}

contract Linfinity is ERC20Token {
    
    uint256 public mintTotal;
    address public owner;
    
    event Mint(address _toAddress, uint256 _amount);
    
    constructor(address _owner) public {
        require(address(0) != _owner);
        
        name = "Linfinity";
        symbol = "LFT";
        decimals = 18;
        totalSupply = 3* 1000 * 1000 *1000 * 10**uint256(decimals);
        
        mintTotal = 0;
        owner = _owner;
    }
    
    function mint (address _toAddress, uint256 _amount) public returns (bool) {
        require(msg.sender == owner);
        require(address(0) != _toAddress);
        require(_amount >= 0);
        require( safeAdd(_amount,mintTotal) <= totalSupply);
        
        mintTotal = safeAdd(_amount, mintTotal);
        balances[_toAddress] = safeAdd(balances[_toAddress], _amount);
        
        emit Mint(_toAddress, _amount);
        return (true);
    }
    
    function() public payable {
        revert();
    }
}

Contract Security Audit

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":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"mintTotal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_owner","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_toAddress","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Mint","type":"event"},{"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"}]

608060405234801561001057600080fd5b50604051602080610a578339810160405251600160a060020a038116151561003757600080fd5b6040805180820190915260098082527f4c696e66696e6974790000000000000000000000000000000000000000000000602090920191825261007b9160009161010b565b506040805180820190915260038082527f4c4654000000000000000000000000000000000000000000000000000000000060209092019182526100c09160019161010b565b5060028054601260ff19909116179081905560ff16600a0a63b2d05e0002600355600060065560078054600160a060020a031916600160a060020a03929092169190911790556101a6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014c57805160ff1916838001178555610179565b82800160010185558215610179579182015b8281111561017957825182559160200191906001019061015e565b50610185929150610189565b5090565b6101a391905b80821115610185576000815560010161018f565b90565b6108a2806101b56000396000f3006080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019657806323b872dd146101bd57806327e235e3146101e7578063313ce5671461020857806340c10f19146102335780635c6581651461025757806370a082311461027e5780638da5cb5b1461029f57806395d89b41146102d0578063a9059cbb146102e5578063bca63e5014610309578063dd62ed3e1461031e575b600080fd5b3480156100e057600080fd5b506100e9610345565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a03600435166024356103d3565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab610439565b60408051918252519081900360200190f35b3480156101c957600080fd5b50610182600160a060020a036004358116906024351660443561043f565b3480156101f357600080fd5b506101ab600160a060020a03600435166105a0565b34801561021457600080fd5b5061021d6105b2565b6040805160ff9092168252519081900360200190f35b34801561023f57600080fd5b50610182600160a060020a03600435166024356105bb565b34801561026357600080fd5b506101ab600160a060020a03600435811690602435166106a5565b34801561028a57600080fd5b506101ab600160a060020a03600435166106c2565b3480156102ab57600080fd5b506102b46106dd565b60408051600160a060020a039092168252519081900360200190f35b3480156102dc57600080fd5b506100e96106ec565b3480156102f157600080fd5b50610182600160a060020a0360043516602435610746565b34801561031557600080fd5b506101ab61081d565b34801561032a57600080fd5b506101ab600160a060020a0360043581169060243516610823565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103cb5780601f106103a0576101008083540402835291602001916103cb565b820191906000526020600020905b8154815290600101906020018083116103ae57829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b6000600160a060020a038316151561045657600080fd5b600160a060020a03841660009081526004602052604090205482118015906104a15750600160a060020a03841660009081526005602090815260408083203384529091529020548211155b15156104ac57600080fd5b600160a060020a0383166000908152600460205260409020546104cf908361084e565b600160a060020a0380851660009081526004602052604080822093909355908616815220546104fe9083610864565b600160a060020a03851660009081526004602090815260408083209390935560058152828220338352905220546105359083610864565b600160a060020a03808616600081815260056020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60046020526000908152604090205481565b60025460ff1681565b600754600090600160a060020a031633146105d557600080fd5b600160a060020a03831615156105ea57600080fd5b60008210156105f857600080fd5b6003546106078360065461084e565b111561061257600080fd5b61061e8260065461084e565b600655600160a060020a038316600090815260046020526040902054610644908361084e565b600160a060020a03841660008181526004602090815260409182902093909355805191825291810184905281517f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885929181900390910190a150600192915050565b600560209081526000928352604080842090915290825290205481565b600160a060020a031660009081526004602052604090205490565b600754600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103cb5780601f106103a0576101008083540402835291602001916103cb565b6000600160a060020a038316151561075d57600080fd5b3360009081526004602052604090205482111561077957600080fd5b336000908152600460205260409020546107939083610864565b3360009081526004602052604080822092909255600160a060020a038516815220546107bf908361084e565b600160a060020a0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60065481565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b60008282018381101561085d57fe5b9392505050565b60008183101561087057fe5b509003905600a165627a7a72305820aed018095f2901d28222414bc2d1230a0585841a1c234882ab5243d80d7ce4d800290000000000000000000000002be52d5d7a73fc183cf40053b95bed572519ebbc

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

0000000000000000000000002be52d5d7a73fc183cf40053b95bed572519ebbc

-----Decoded View---------------
Arg [0] : _owner (address): 0x2be52d5d7a73fc183cf40053b95bed572519ebbc

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002be52d5d7a73fc183cf40053b95bed572519ebbc


Swarm Source

bzzr://aed018095f2901d28222414bc2d1230a0585841a1c234882ab5243d80d7ce4d8

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.