ETH Price: $3,896.83 (+0.32%)

Contract

0x14d7c98d76178D6EfDb9ce7fC237Bf829D0c5D7C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve131727862021-09-06 14:45:311196 days ago1630939531IN
0x14d7c98d...29D0c5D7C
0 ETH0.0043576993.94626646

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x6A532b08...0ff842218
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
ERC20

Compiler Version
v0.7.1+commit.f4a555be

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.7.1;
// SPDX-License-Identifier: MIT
/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, reverts on overflow.
  */
  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;
  }

  /**
  * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b > 0); // Solidity only automatically asserts when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
  * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b <= a);
    uint256 c = a - b;

    return c;
  }

  /**
  * @dev Adds two numbers, reverts on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a);

    return c;
  }

  /**
  * @dev Divides two numbers and returns the remainder (unsigned integer modulo),
  * reverts when dividing by zero.
  */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0);
    return a % b;
  }
}

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
 interface IERC20 {
   function totalSupply() external view returns (uint256);

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

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

   function transfer(address to, uint256 value) external returns (bool);

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

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

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

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

contract ERC20 is IERC20 {
  using SafeMath for uint256;

  mapping (address => uint256) private _balances;

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

  uint256 private _totalSupply;
  string private _name;
  string private _symbol;
  uint8 private _decimals;

  constructor(string memory name, string memory symbol, uint8  decimals, uint256  totalSupply) {
    _name = name;
    _symbol = symbol;
    _decimals = decimals;
    _totalSupply = totalSupply;
    _balances[msg.sender] = _balances[msg.sender].add(_totalSupply);
    emit Transfer(address(0), msg.sender, totalSupply);
  }

  /**
   * @return the name of the token.
   */
  function name() public view returns(string memory) {
    return _name;
  }

  /**
   * @return the symbol of the token.
   */
  function symbol() public view returns(string memory) {
    return _symbol;
  }

  /**
   * @return the number of decimals of the token.
   */
  function decimals() public view returns(uint8) {
    return _decimals;
  }

  /**
  * @dev Total number of tokens in existence
  */
  function totalSupply() public view override(IERC20) returns (uint256) {
    return _totalSupply;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param owner The address to query the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address owner) public view override(IERC20) returns (uint256) {
    return _balances[owner];
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param owner address The address which owns the funds.
   * @param spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(
    address owner,
    address spender
   )
    public
    view
    override(IERC20)
    returns (uint256)
  {
    return _allowed[owner][spender];
  }

  /**
  * @dev Transfer token for a specified address
  * @param to The address to transfer to.
  * @param value The amount to be transferred.
  */
  function transfer(address to, uint256 value) public override(IERC20) returns (bool) {
    _transfer(msg.sender, to, value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param spender The address which will spend the funds.
   * @param value The amount of tokens to be spent.
   */
  function approve(address spender, uint256 value) public override(IERC20) returns (bool) {
    require(spender != address(0));

    _allowed[msg.sender][spender] = value;
    emit Approval(msg.sender, spender, value);
    return true;
  }

  /**
   * @dev Transfer tokens from one address to another
   * @param from address The address which you want to send tokens from
   * @param to address The address which you want to transfer to
   * @param value uint256 the amount of tokens to be transferred
   */
  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    public
    override(IERC20)
    returns (bool)
  {
    require(value <= _allowed[from][msg.sender]);

    _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
    _transfer(from, to, value);
    return true;
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   * approve should be called when allowed_[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param spender The address which will spend the funds.
   * @param addedValue The amount of tokens to increase the allowance by.
   */
  function increaseAllowance(
    address spender,
    uint256 addedValue
  )
    public
    returns (bool)
  {
    require(spender != address(0));

    _allowed[msg.sender][spender] = (
      _allowed[msg.sender][spender].add(addedValue));
    emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   * approve should be called when allowed_[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param spender The address which will spend the funds.
   * @param subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseAllowance(
    address spender,
    uint256 subtractedValue
  )
    public
    returns (bool)
  {
    require(spender != address(0));

    _allowed[msg.sender][spender] = (
      _allowed[msg.sender][spender].sub(subtractedValue));
    emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
    return true;
  }

  /**
  * @dev Transfer token for a specified addresses
  * @param from The address to transfer from.
  * @param to The address to transfer to.
  * @param value The amount to be transferred.
  */
  function _transfer(address from, address to, uint256 value) internal {
    require(value <= _balances[from]);
    require(to != address(0));

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"uint256","name":"totalSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b6101736103cb565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b038135811691602081013590911690604001356103d1565b6101c3610468565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610471565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610519565b6100b6610534565b6101576004803603604081101561024957600080fd5b506001600160a01b038135169060200135610595565b6101576004803603604081101561027557600080fd5b506001600160a01b0381351690602001356105d8565b610173600480360360408110156102a157600080fd5b506001600160a01b03813581169160200135166105ee565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b60006001600160a01b03831661036457600080fd5b3360008181526001602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60025490565b6001600160a01b038316600090815260016020908152604080832033845290915281205482111561040157600080fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205461042f9083610632565b6001600160a01b038516600090815260016020908152604080832033845290915290205561045e848484610647565b5060019392505050565b60055460ff1690565b60006001600160a01b03831661048657600080fd5b3360009081526001602090815260408083206001600160a01b03871684529091529020546104b49083610619565b3360008181526001602090815260408083206001600160a01b0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006001600160a01b0383166105aa57600080fd5b3360009081526001602090815260408083206001600160a01b03871684529091529020546104b49083610632565b60006105e5338484610647565b50600192915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60008282018381101561062b57600080fd5b9392505050565b60008282111561064157600080fd5b50900390565b6001600160a01b03831660009081526020819052604090205481111561066c57600080fd5b6001600160a01b03821661067f57600080fd5b6001600160a01b0383166000908152602081905260409020546106a29082610632565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546106d19082610619565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505056fea264697066735822122083566bdbc2e1e7dd62848b7e220fb2f13d9e16991cd02d7827dfa90f50f3df8864736f6c63430007010033

Deployed Bytecode Sourcemap

2567:5944:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3256:76;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5545:243;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5545:243:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3683:102;;;:::i;:::-;;;;;;;;;;;;;;;;6068:323;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6068:323:0;;;;;;;;;;;;;;;;;:::i;3542:76::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6853:343;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6853:343:0;;;;;;;;:::i;3989:117::-;;;;;;;;;;;;;;;;-1:-1:-1;3989:117:0;-1:-1:-1;;;;;3989:117:0;;:::i;3391:80::-;;;:::i;7663:353::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;7663:353:0;;;;;;;;:::i;4771:147::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4771:147:0;;;;;;;;:::i;4431:181::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4431:181:0;;;;;;;;;;:::i;3256:76::-;3321:5;3314:12;;;;;;;;-1:-1:-1;;3314:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3292:13;;3314:12;;3321:5;;3314:12;;3321:5;3314:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3256:76;:::o;5545:243::-;5627:4;-1:-1:-1;;;;;5648:21:0;;5640:30;;;;;;5688:10;5679:20;;;;:8;:20;;;;;;;;-1:-1:-1;;;;;5679:29:0;;;;;;;;;;;;:37;;;5728:36;;;;;;;5679:29;;5688:10;5728:36;;;;;;;;;;;-1:-1:-1;5778:4:0;5545:243;;;;:::o;3683:102::-;3767:12;;3683:102;:::o;6068:323::-;-1:-1:-1;;;;;6232:14:0;;6199:4;6232:14;;;:8;:14;;;;;;;;6247:10;6232:26;;;;;;;;6223:35;;;6215:44;;;;;;-1:-1:-1;;;;;6297:14:0;;;;;;:8;:14;;;;;;;;6312:10;6297:26;;;;;;;;:37;;6328:5;6297:30;:37::i;:::-;-1:-1:-1;;;;;6268:14:0;;;;;;:8;:14;;;;;;;;6283:10;6268:26;;;;;;;:66;6341:26;6277:4;6357:2;6361:5;6341:9;:26::i;:::-;-1:-1:-1;6381:4:0;6068:323;;;;;:::o;3542:76::-;3603:9;;;;3542:76;:::o;6853:343::-;6958:4;-1:-1:-1;;;;;6982:21:0;;6974:30;;;;;;7063:10;7054:20;;;;:8;:20;;;;;;;;-1:-1:-1;;;;;7054:29:0;;;;;;;;;;:45;;7088:10;7054:33;:45::i;:::-;7022:10;7013:20;;;;:8;:20;;;;;;;;-1:-1:-1;;;;;7013:29:0;;;;;;;;;;;;:87;;;7112:60;;;;;;7013:29;;7112:60;;;;;;;;;;;-1:-1:-1;7186:4:0;6853:343;;;;:::o;3989:117::-;-1:-1:-1;;;;;4084:16:0;4061:7;4084:16;;;;;;;;;;;;3989:117::o;3391:80::-;3458:7;3451:14;;;;;;;;-1:-1:-1;;3451:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3429:13;;3451:14;;3458:7;;3451:14;;3458:7;3451:14;;;;;;;;;;;;;;;;;;;;;;;;7663:353;7773:4;-1:-1:-1;;;;;7797:21:0;;7789:30;;;;;;7878:10;7869:20;;;;:8;:20;;;;;;;;-1:-1:-1;;;;;7869:29:0;;;;;;;;;;:50;;7903:15;7869:33;:50::i;4771:147::-;4849:4;4862:32;4872:10;4884:2;4888:5;4862:9;:32::i;:::-;-1:-1:-1;4908:4:0;4771:147;;;;:::o;4431:181::-;-1:-1:-1;;;;;4582:15:0;;;4556:7;4582:15;;;:8;:15;;;;;;;;:24;;;;;;;;;;;;;4431:181::o;1351:136::-;1409:7;1437:5;;;1457:6;;;;1449:15;;;;;;1480:1;1351:136;-1:-1:-1;;;1351:136:0:o;1147:::-;1205:7;1234:1;1229;:6;;1221:15;;;;;;-1:-1:-1;1255:5:0;;;1147:136::o;8224:284::-;-1:-1:-1;;;;;8317:15:0;;:9;:15;;;;;;;;;;;8308:24;;;8300:33;;;;;;-1:-1:-1;;;;;8348:16:0;;8340:25;;;;;;-1:-1:-1;;;;;8392:15:0;;:9;:15;;;;;;;;;;;:26;;8412:5;8392:19;:26::i;:::-;-1:-1:-1;;;;;8374:15:0;;;:9;:15;;;;;;;;;;;:44;;;;8441:13;;;;;;;:24;;8459:5;8441:17;:24::i;:::-;-1:-1:-1;;;;;8425:13:0;;;:9;:13;;;;;;;;;;;;:40;;;;8477:25;;;;;;;8425:13;;8477:25;;;;;;;;;;;;;8224:284;;;:::o

Swarm Source

ipfs://83566bdbc2e1e7dd62848b7e220fb2f13d9e16991cd02d7827dfa90f50f3df88

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.