ETH Price: $3,159.56 (+1.29%)
Gas: 2 Gwei

Token

Exchain Global (EXG)
 

Overview

Max Total Supply

100,000,000 EXG

Holders

562

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 6 Decimals)

Balance
227 EXG

Value
$0.00
0x5b7cdd3ead9f61a0b4eede5992a25e4400fb2d03
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
EXG

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-10-19
*/

pragma solidity 0.4.25;
// Symbol      : EXG
// Name        : Exchain Global
// Total supply: 100.000.000
// Decimals    : 18
contract IERC20 {
    function transfer(address to, uint256 value) public returns (bool);

    function approve(address spender, uint256 value) public returns (bool);

    function transferFrom(address from, address to, uint256 value) public returns (bool);

    function balanceOf(address who) public view returns (uint256);

    function allowance(address owner, address spender) public view returns (uint256);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}


library SafeMath {
  
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b);

    return c;
  }

 
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0);
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }


  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b <= a);
    uint256 c = a - b;

    return c;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a);

    return c;
  }

  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0);
    return a % b;
  }
}


contract ERC20 is IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) internal _balances;

    mapping (address => mapping (address => uint256)) private _allowed;


    function balanceOf(address owner) public view returns (uint256) {
        return _balances[owner];
    }


    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowed[owner][spender];
    }


    function transfer(address to, uint256 value) public returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }


    function approve(address spender, uint256 value) public returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }


    function transferFrom(address from, address to, uint256 value) public returns (bool) {
        _transfer(from, to, value);
        _approve(from, msg.sender, _allowed[from][msg.sender].sub(value));
        return true;
    }


    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowed[msg.sender][spender].add(addedValue));
        return true;
    }


    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowed[msg.sender][spender].sub(subtractedValue));
        return true;
    }

    function _transfer(address from, address to, uint256 value) internal {
        require(to != address(0));

        _balances[from] = _balances[from].sub(value);
        _balances[to] = _balances[to].add(value);
        emit Transfer(from, to, value);
    }

    function _approve(address owner, address spender, uint256 value) internal {
        require(spender != address(0));
        require(owner != address(0));

        _allowed[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

}

contract EXG is ERC20 {
  string public constant name = 'Exchain Global';
  string public constant symbol = 'EXG';
  uint8 public constant decimals = 6;
  uint256 public constant totalSupply = (100 * 1e6) * (10 ** uint256(decimals));

  constructor(address _EXG) public {
    _balances[_EXG] = totalSupply;
    emit Transfer(address(0x0), _EXG, totalSupply);
  }
}

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":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_EXG","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"}]

608060405234801561001057600080fd5b506040516020806106b08339810160408181529151600160a060020a03811660008181526020818152858220655af3107a400090819055855294519294919390927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506106248061008c6000396000f3006080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017557806323b872dd1461019c578063313ce567146101c657806339509351146101f157806370a082311461021557806395d89b4114610236578063a457c2d71461024b578063a9059cbb1461026f578063dd62ed3e14610293575b600080fd5b3480156100bf57600080fd5b506100c86102ba565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101025781810151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014957600080fd5b50610161600160a060020a03600435166024356102f1565b604080519115158252519081900360200190f35b34801561018157600080fd5b5061018a610307565b60408051918252519081900360200190f35b3480156101a857600080fd5b50610161600160a060020a0360043581169060243516604435610311565b3480156101d257600080fd5b506101db610368565b6040805160ff9092168252519081900360200190f35b3480156101fd57600080fd5b50610161600160a060020a036004351660243561036d565b34801561022157600080fd5b5061018a600160a060020a03600435166103a9565b34801561024257600080fd5b506100c86103c4565b34801561025757600080fd5b50610161600160a060020a03600435166024356103fb565b34801561027b57600080fd5b50610161600160a060020a0360043516602435610437565b34801561029f57600080fd5b5061018a600160a060020a0360043581169060243516610444565b60408051808201909152600e81527f4578636861696e20476c6f62616c000000000000000000000000000000000000602082015281565b60006102fe33848461046f565b50600192915050565b655af3107a400081565b600061031e8484846104fb565b600160a060020a03841660009081526001602090815260408083203380855292529091205461035e918691610359908663ffffffff6105c816565b61046f565b5060019392505050565b600681565b336000818152600160209081526040808320600160a060020a038716845290915281205490916102fe918590610359908663ffffffff6105df16565b600160a060020a031660009081526020819052604090205490565b60408051808201909152600381527f4558470000000000000000000000000000000000000000000000000000000000602082015281565b336000818152600160209081526040808320600160a060020a038716845290915281205490916102fe918590610359908663ffffffff6105c816565b60006102fe3384846104fb565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600160a060020a038216151561048457600080fd5b600160a060020a038316151561049957600080fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600160a060020a038216151561051057600080fd5b600160a060020a038316600090815260208190526040902054610539908263ffffffff6105c816565b600160a060020a03808516600090815260208190526040808220939093559084168152205461056e908263ffffffff6105df16565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080838311156105d857600080fd5b5050900390565b6000828201838110156105f157600080fd5b93925050505600a165627a7a72305820fcbff632b33f5497decf3595cfcd55ce1ecaf9f84f995e1347b0848badc5f8cd0029000000000000000000000000f5a8d88473dbfa492a3696f004835811f84c2314

Deployed Bytecode

0x6080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017557806323b872dd1461019c578063313ce567146101c657806339509351146101f157806370a082311461021557806395d89b4114610236578063a457c2d71461024b578063a9059cbb1461026f578063dd62ed3e14610293575b600080fd5b3480156100bf57600080fd5b506100c86102ba565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101025781810151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014957600080fd5b50610161600160a060020a03600435166024356102f1565b604080519115158252519081900360200190f35b34801561018157600080fd5b5061018a610307565b60408051918252519081900360200190f35b3480156101a857600080fd5b50610161600160a060020a0360043581169060243516604435610311565b3480156101d257600080fd5b506101db610368565b6040805160ff9092168252519081900360200190f35b3480156101fd57600080fd5b50610161600160a060020a036004351660243561036d565b34801561022157600080fd5b5061018a600160a060020a03600435166103a9565b34801561024257600080fd5b506100c86103c4565b34801561025757600080fd5b50610161600160a060020a03600435166024356103fb565b34801561027b57600080fd5b50610161600160a060020a0360043516602435610437565b34801561029f57600080fd5b5061018a600160a060020a0360043581169060243516610444565b60408051808201909152600e81527f4578636861696e20476c6f62616c000000000000000000000000000000000000602082015281565b60006102fe33848461046f565b50600192915050565b655af3107a400081565b600061031e8484846104fb565b600160a060020a03841660009081526001602090815260408083203380855292529091205461035e918691610359908663ffffffff6105c816565b61046f565b5060019392505050565b600681565b336000818152600160209081526040808320600160a060020a038716845290915281205490916102fe918590610359908663ffffffff6105df16565b600160a060020a031660009081526020819052604090205490565b60408051808201909152600381527f4558470000000000000000000000000000000000000000000000000000000000602082015281565b336000818152600160209081526040808320600160a060020a038716845290915281205490916102fe918590610359908663ffffffff6105c816565b60006102fe3384846104fb565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600160a060020a038216151561048457600080fd5b600160a060020a038316151561049957600080fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600160a060020a038216151561051057600080fd5b600160a060020a038316600090815260208190526040902054610539908263ffffffff6105c816565b600160a060020a03808516600090815260208190526040808220939093559084168152205461056e908263ffffffff6105df16565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080838311156105d857600080fd5b5050900390565b6000828201838110156105f157600080fd5b93925050505600a165627a7a72305820fcbff632b33f5497decf3595cfcd55ce1ecaf9f84f995e1347b0848badc5f8cd0029

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

000000000000000000000000f5a8d88473dbfa492a3696f004835811f84c2314

-----Decoded View---------------
Arg [0] : _EXG (address): 0xf5a8D88473DbFA492A3696f004835811F84c2314

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f5a8d88473dbfa492a3696f004835811f84c2314


Deployed Bytecode Sourcemap

3821:374:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3848:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3848:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;3848:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2458:148;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2458:148:0;-1:-1:-1;;;;;2458:148:0;;;;;;;;;;;;;;;;;;;;;;;;;3980:77;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3980:77:0;;;;;;;;;;;;;;;;;;;;2616:228;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2616:228:0;-1:-1:-1;;;;;2616:228:0;;;;;;;;;;;;3941:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3941:34:0;;;;;;;;;;;;;;;;;;;;;;;2854:203;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2854:203:0;-1:-1:-1;;;;;2854:203:0;;;;;;;2051:106;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2051:106:0;-1:-1:-1;;;;;2051:106:0;;;;;3899:37;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3899:37:0;;;;3067:213;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3067:213:0;-1:-1:-1;;;;;3067:213:0;;;;;;;2308:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2308:140:0;-1:-1:-1;;;;;2308:140:0;;;;;;;2167:131;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2167:131:0;-1:-1:-1;;;;;2167:131:0;;;;;;;;;;3848:46;;;;;;;;;;;;;;;;;;;:::o;2458:148::-;2523:4;2540:36;2549:10;2561:7;2570:5;2540:8;:36::i;:::-;-1:-1:-1;2594:4:0;2458:148;;;;:::o;3980:77::-;4018:39;3980:77;:::o;2616:228::-;2695:4;2712:26;2722:4;2728:2;2732:5;2712:9;:26::i;:::-;-1:-1:-1;;;;;2776:14:0;;;;;;:8;:14;;;;;;;;2764:10;2776:26;;;;;;;;;2749:65;;2758:4;;2776:37;;2807:5;2776:37;:30;:37;:::i;:::-;2749:8;:65::i;:::-;-1:-1:-1;2832:4:0;2616:228;;;;;:::o;3941:34::-;3974:1;3941:34;:::o;2854:203::-;2960:10;2934:4;2981:20;;;:8;:20;;;;;;;;-1:-1:-1;;;;;2981:29:0;;;;;;;;;;2934:4;;2951:76;;2972:7;;2981:45;;3015:10;2981:45;:33;:45;:::i;2051:106::-;-1:-1:-1;;;;;2133:16:0;2106:7;2133:16;;;;;;;;;;;;2051:106::o;3899:37::-;;;;;;;;;;;;;;;;;;;:::o;3067:213::-;3178:10;3152:4;3199:20;;;:8;:20;;;;;;;;-1:-1:-1;;;;;3199:29:0;;;;;;;;;;3152:4;;3169:81;;3190:7;;3199:50;;3233:15;3199:50;:33;:50;:::i;2308:140::-;2369:4;2386:32;2396:10;2408:2;2412:5;2386:9;:32::i;2167:131::-;-1:-1:-1;;;;;2266:15:0;;;2239:7;2266:15;;;:8;:15;;;;;;;;:24;;;;;;;;;;;;;2167:131::o;3558:254::-;-1:-1:-1;;;;;3651:21:0;;;;3643:30;;;;;;-1:-1:-1;;;;;3692:19:0;;;;3684:28;;;;;;-1:-1:-1;;;;;3725:15:0;;;;;;;:8;:15;;;;;;;;:24;;;;;;;;;;;;;:32;;;3773:31;;;;;;;;;;;;;;;;;3558:254;;;:::o;3288:262::-;-1:-1:-1;;;;;3376:16:0;;;;3368:25;;;;;;-1:-1:-1;;;;;3424:15:0;;:9;:15;;;;;;;;;;;:26;;3444:5;3424:26;:19;:26;:::i;:::-;-1:-1:-1;;;;;3406:15:0;;;:9;:15;;;;;;;;;;;:44;;;;3477:13;;;;;;;:24;;3495:5;3477:24;:17;:24;:::i;:::-;-1:-1:-1;;;;;3461:13:0;;;:9;:13;;;;;;;;;;;;:40;;;;3517:25;;;;;;;3461:13;;3517:25;;;;;;;;;;;;;3288:262;;;:::o;1444:136::-;1502:7;;1526:6;;;;1518:15;;;;;;-1:-1:-1;;1552:5:0;;;1444:136::o;1586:::-;1644:7;1672:5;;;1692:6;;;;1684:15;;;;;;1715:1;1586:136;-1:-1:-1;;;1586:136:0:o

Swarm Source

bzzr://fcbff632b33f5497decf3595cfcd55ce1ecaf9f84f995e1347b0848badc5f8cd
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.