ETH Price: $3,236.11 (-0.57%)
Gas: 1 Gwei

Token

True Gym Coin (TGC)
 

Overview

Max Total Supply

1,626,666,667 TGC

Holders

446 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
30 TGC

Value
$0.00
0x1910127db38b0a49c5bb6ca677519df5b4a4678f
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Collecting data from users rewarding with True Gym Coins. Creating individual workout plans. Special program for coaches and fitness centers.

ICO Information

Project Sector : Health & Fitness
Country : Czech Republic

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TrueGymCoin

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-02-10
*/

pragma solidity ^0.4.24;

library SafeMath {
    function mul(uint a, uint b) internal pure returns (uint) {
        uint c = a * b;
        assert(a == 0 || c / a == b);
        return c;
    }

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

    function add(uint a, uint b) internal pure returns (uint) {
        uint c = a + b;
        assert(c>=a && c>=b);
        return c;
    }
}

contract TrueGymCoin {
    using SafeMath for uint;
    // Public variables of the token
    string constant public standard = "ERC20";
    string constant public name = "True Gym Coin";
    string constant public symbol = "TGC";
    uint8 constant public decimals = 18;
    uint _totalSupply = 1626666667e18;

    address public generatorAddr;
    address public icoAddr;
    address public preicoAddr;
    address public privatesellAddr;
    address public companyAddr;
    address public teamAddr;
    address public bountyAddr;

    // Array with all balances
    mapping (address => uint) balances;
    mapping (address => mapping (address => uint)) allowed;

    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed _owner, address indexed spender, uint value);
    event Burned(uint amount);

    function balanceOf(address _owner) public view returns (uint balance) {
        return balances[_owner];
    }

    // Returns the amount which _spender is still allowed to withdraw from _owner
    function allowance(address _owner, address _spender) private view returns (uint remaining) {
        return allowed[_owner][_spender];
    }

    // Get the total token supply
    function totalSupply() public view returns (uint totSupply) {
        totSupply = _totalSupply;
    }

    // Initializes contract with supply defined in constants
    constructor(address _generatorAddr, address _icoAddr, address _preicoAddr, address _privatesellAddr, address _companyAddr, address _teamAddr, address _bountyAddr) public {
        balances[_generatorAddr] = 1301333334e18; // 80%
        balances[_icoAddr] = 130133333e18; // 8%
        balances[_preicoAddr] = 65066666e18; // 4%
        balances[_privatesellAddr] = 48800000e18; // 3%
        balances[_companyAddr] = 48800000e18; // 3%
        balances[_teamAddr] = 16266667e18; // 1%
        balances[_bountyAddr] = 16266667e18; // 1%
    }

    // Send some of your tokens to a given address
    function transfer(address _to, uint _value) public payable {
        balances[msg.sender] = balances[msg.sender].sub(_value);
        balances[_to] = balances[_to].add(_value);
        emit Transfer(msg.sender, _to, _value);
    }

    function transferFrom(address _from, address _to, uint _value) public returns(bool) {

        uint _allowed = allowed[_from][msg.sender];
        balances[_from] = balances[_from].sub(_value); // Subtract from the sender
        balances[_to] = balances[_to].add(_value); // Add the same to the recipient
        allowed[_from][msg.sender] = _allowed.sub(_value);
        emit Transfer(_from, _to, _value);
        return true;
    }

    // Approve the passed address to spend the specified amount of tokens
    // on behalf of msg.sender.
    function approve(address _spender, uint _value) public returns (bool) {
        //https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
        require((_value == 0) || (allowed[msg.sender][_spender] == 0));
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    function burn(uint _value) public {
        balances[msg.sender].sub(_value);
        _totalSupply.sub(_value);
        emit Burned(_value);
    }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"companyAddr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"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":"generatorAddr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"totSupply","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":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"teamAddr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"preicoAddr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"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":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"privatesellAddr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"bountyAddr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoAddr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_generatorAddr","type":"address"},{"name":"_icoAddr","type":"address"},{"name":"_preicoAddr","type":"address"},{"name":"_privatesellAddr","type":"address"},{"name":"_companyAddr","type":"address"},{"name":"_teamAddr","type":"address"},{"name":"_bountyAddr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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":false,"name":"amount","type":"uint256"}],"name":"Burned","type":"event"}]

60806040526b05418c10b6abb82ae7cc000060005534801561002057600080fd5b5060405160e0806108af8339810160409081528151602080840151838501516060860151608087015160a088015160c090980151600160a060020a03968716600090815260089096528786206b0434700d647cdc6a2f980000905593861685528685206a6ba4ce1e19002928340000905591851684528584206a35d267081c24bac06800009055841683528483206a285dcd4d0576e5e40000009081905590841683528483205593821681528281206a0d7499c8f7648883cc0000908190559190931683529120556107b8806100f76000396000f3006080604052600436106100f05763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630258758681146100f557806306fdde0314610126578063095ea7b3146101b05780631242f442146101e857806318160ddd146101fd57806323b872dd14610224578063313ce5671461024e57806342966c68146102795780634a5ff749146102935780635a3b7e42146102a85780636ce0c4d9146102bd57806370a08231146102d257806395d89b41146102f3578063a9059cbb14610308578063cdc0a2521461031f578063de9ea1ce14610334578063fb64e6b114610349575b600080fd5b34801561010157600080fd5b5061010a61035e565b60408051600160a060020a039092168252519081900360200190f35b34801561013257600080fd5b5061013b61036d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017557818101518382015260200161015d565b50505050905090810190601f1680156101a25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101bc57600080fd5b506101d4600160a060020a03600435166024356103a4565b604080519115158252519081900360200190f35b3480156101f457600080fd5b5061010a610446565b34801561020957600080fd5b50610212610455565b60408051918252519081900360200190f35b34801561023057600080fd5b506101d4600160a060020a036004358116906024351660443561045b565b34801561025a57600080fd5b50610263610567565b6040805160ff9092168252519081900360200190f35b34801561028557600080fd5b5061029160043561056c565b005b34801561029f57600080fd5b5061010a6105d7565b3480156102b457600080fd5b5061013b6105e6565b3480156102c957600080fd5b5061010a61061d565b3480156102de57600080fd5b50610212600160a060020a036004351661062c565b3480156102ff57600080fd5b5061013b610647565b610291600160a060020a036004351660243561067e565b34801561032b57600080fd5b5061010a610729565b34801561034057600080fd5b5061010a610738565b34801561035557600080fd5b5061010a610747565b600554600160a060020a031681565b60408051808201909152600d81527f547275652047796d20436f696e00000000000000000000000000000000000000602082015281565b60008115806103d45750336000908152600960209081526040808320600160a060020a0387168452909152902054155b15156103df57600080fd5b336000818152600960209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b600154600160a060020a031681565b60005490565b600160a060020a0383166000818152600960209081526040808320338452825280832054938352600890915281205490919061049d908463ffffffff61075616565b600160a060020a0380871660009081526008602052604080822093909355908616815220546104d2908463ffffffff61076816565b600160a060020a0385166000908152600860205260409020556104fb818463ffffffff61075616565b600160a060020a03808716600081815260096020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b601281565b3360009081526008602052604090205461058c908263ffffffff61075616565b506000546105a0908263ffffffff61075616565b506040805182815290517fd83c63197e8e676d80ab0122beba9a9d20f3828839e9a1d6fe81d242e9cd7e6e9181900360200190a150565b600654600160a060020a031681565b60408051808201909152600581527f4552433230000000000000000000000000000000000000000000000000000000602082015281565b600354600160a060020a031681565b600160a060020a031660009081526008602052604090205490565b60408051808201909152600381527f5447430000000000000000000000000000000000000000000000000000000000602082015281565b3360009081526008602052604090205461069e908263ffffffff61075616565b3360009081526008602052604080822092909255600160a060020a038416815220546106d0908263ffffffff61076816565b600160a060020a0383166000818152600860209081526040918290209390935580518481529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600454600160a060020a031681565b600754600160a060020a031681565b600254600160a060020a031681565b60008282111561076257fe5b50900390565b600082820183811080159061077d5750828110155b151561078557fe5b93925050505600a165627a7a7230582093c981320071562e45af2f906674036a3e4c35dbb1742c977fd0e4df0c3d671c0029000000000000000000000000d1e51dd0305da2a81231b81effa383b3a6416228000000000000000000000000088aa923198ca53db28a0e12712a36c5cbf0d033000000000000000000000000d6b637c9dadea9e4ec481addae16260dae86535d000000000000000000000000b3efa8cf686f320f0fbd7b4e4106f78eec88e46e000000000000000000000000b7a38a63002f60ff347a5bacb9d1ca84a803391e000000000000000000000000095f051682d979ff175e30b260874b7258c60d15000000000000000000000000200da47f0d3cf336aabd9787abebe40f6e4a76f6

Deployed Bytecode

0x6080604052600436106100f05763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630258758681146100f557806306fdde0314610126578063095ea7b3146101b05780631242f442146101e857806318160ddd146101fd57806323b872dd14610224578063313ce5671461024e57806342966c68146102795780634a5ff749146102935780635a3b7e42146102a85780636ce0c4d9146102bd57806370a08231146102d257806395d89b41146102f3578063a9059cbb14610308578063cdc0a2521461031f578063de9ea1ce14610334578063fb64e6b114610349575b600080fd5b34801561010157600080fd5b5061010a61035e565b60408051600160a060020a039092168252519081900360200190f35b34801561013257600080fd5b5061013b61036d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017557818101518382015260200161015d565b50505050905090810190601f1680156101a25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101bc57600080fd5b506101d4600160a060020a03600435166024356103a4565b604080519115158252519081900360200190f35b3480156101f457600080fd5b5061010a610446565b34801561020957600080fd5b50610212610455565b60408051918252519081900360200190f35b34801561023057600080fd5b506101d4600160a060020a036004358116906024351660443561045b565b34801561025a57600080fd5b50610263610567565b6040805160ff9092168252519081900360200190f35b34801561028557600080fd5b5061029160043561056c565b005b34801561029f57600080fd5b5061010a6105d7565b3480156102b457600080fd5b5061013b6105e6565b3480156102c957600080fd5b5061010a61061d565b3480156102de57600080fd5b50610212600160a060020a036004351661062c565b3480156102ff57600080fd5b5061013b610647565b610291600160a060020a036004351660243561067e565b34801561032b57600080fd5b5061010a610729565b34801561034057600080fd5b5061010a610738565b34801561035557600080fd5b5061010a610747565b600554600160a060020a031681565b60408051808201909152600d81527f547275652047796d20436f696e00000000000000000000000000000000000000602082015281565b60008115806103d45750336000908152600960209081526040808320600160a060020a0387168452909152902054155b15156103df57600080fd5b336000818152600960209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b600154600160a060020a031681565b60005490565b600160a060020a0383166000818152600960209081526040808320338452825280832054938352600890915281205490919061049d908463ffffffff61075616565b600160a060020a0380871660009081526008602052604080822093909355908616815220546104d2908463ffffffff61076816565b600160a060020a0385166000908152600860205260409020556104fb818463ffffffff61075616565b600160a060020a03808716600081815260096020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b601281565b3360009081526008602052604090205461058c908263ffffffff61075616565b506000546105a0908263ffffffff61075616565b506040805182815290517fd83c63197e8e676d80ab0122beba9a9d20f3828839e9a1d6fe81d242e9cd7e6e9181900360200190a150565b600654600160a060020a031681565b60408051808201909152600581527f4552433230000000000000000000000000000000000000000000000000000000602082015281565b600354600160a060020a031681565b600160a060020a031660009081526008602052604090205490565b60408051808201909152600381527f5447430000000000000000000000000000000000000000000000000000000000602082015281565b3360009081526008602052604090205461069e908263ffffffff61075616565b3360009081526008602052604080822092909255600160a060020a038416815220546106d0908263ffffffff61076816565b600160a060020a0383166000818152600860209081526040918290209390935580518481529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600454600160a060020a031681565b600754600160a060020a031681565b600254600160a060020a031681565b60008282111561076257fe5b50900390565b600082820183811080159061077d5750828110155b151561078557fe5b93925050505600a165627a7a7230582093c981320071562e45af2f906674036a3e4c35dbb1742c977fd0e4df0c3d671c0029

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

000000000000000000000000d1e51dd0305da2a81231b81effa383b3a6416228000000000000000000000000088aa923198ca53db28a0e12712a36c5cbf0d033000000000000000000000000d6b637c9dadea9e4ec481addae16260dae86535d000000000000000000000000b3efa8cf686f320f0fbd7b4e4106f78eec88e46e000000000000000000000000b7a38a63002f60ff347a5bacb9d1ca84a803391e000000000000000000000000095f051682d979ff175e30b260874b7258c60d15000000000000000000000000200da47f0d3cf336aabd9787abebe40f6e4a76f6

-----Decoded View---------------
Arg [0] : _generatorAddr (address): 0xD1e51DD0305dA2A81231B81EFFa383B3A6416228
Arg [1] : _icoAddr (address): 0x088aa923198cA53db28A0E12712a36C5cbf0D033
Arg [2] : _preicoAddr (address): 0xd6B637c9DAdea9e4eC481ADdAE16260dAE86535d
Arg [3] : _privatesellAddr (address): 0xB3EfA8Cf686F320F0fBd7b4e4106f78EEc88E46E
Arg [4] : _companyAddr (address): 0xB7A38a63002F60ff347A5BAcb9D1Ca84A803391E
Arg [5] : _teamAddr (address): 0x095F051682d979ff175E30b260874b7258c60d15
Arg [6] : _bountyAddr (address): 0x200dA47F0D3cf336AAbd9787Abebe40F6e4a76F6

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000d1e51dd0305da2a81231b81effa383b3a6416228
Arg [1] : 000000000000000000000000088aa923198ca53db28a0e12712a36c5cbf0d033
Arg [2] : 000000000000000000000000d6b637c9dadea9e4ec481addae16260dae86535d
Arg [3] : 000000000000000000000000b3efa8cf686f320f0fbd7b4e4106f78eec88e46e
Arg [4] : 000000000000000000000000b7a38a63002f60ff347a5bacb9d1ca84a803391e
Arg [5] : 000000000000000000000000095f051682d979ff175e30b260874b7258c60d15
Arg [6] : 000000000000000000000000200da47f0d3cf336aabd9787abebe40f6e4a76f6


Swarm Source

bzzr://93c981320071562e45af2f906674036a3e4c35dbb1742c977fd0e4df0c3d671c
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.