ERC-20
Overview
Max Total Supply
100,000,000 J2TD
Holders
91
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
4,970,000 J2TDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
J2TD
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-06-19 */ pragma solidity 0.5.16; contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: 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 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot 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-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); } } contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } } library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } } library SafeMathInt { function mul(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when multiplying INT256_MIN with -1 // https://github.com/RequestNetwork/requestNetwork/issues/43 require(!(a == - 2 ** 255 && b == - 1) && !(b == - 2 ** 255 && a == - 1)); int256 c = a * b; require((b == 0) || (c / b == a)); return c; } function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing INT256_MIN by -1 // https://github.com/RequestNetwork/requestNetwork/issues/43 require(!(a == - 2 ** 255 && b == - 1) && (b > 0)); return a / b; } function sub(int256 a, int256 b) internal pure returns (int256) { require((b >= 0 && a - b <= a) || (b < 0 && a - b > a)); return a - b; } function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } } interface IFundsDistributionToken { /** * @dev Returns the total amount of funds a given address is able to withdraw currently. * @param owner Address of FundsDistributionToken holder * @return A uint256 representing the available funds for a given account */ function withdrawableFundsOf(address owner) external view returns (uint256); /** * @dev Withdraws all available funds for a FundsDistributionToken holder. */ function withdrawFunds() external; /** * @dev This event emits when new funds are distributed * @param by the address of the sender who distributed funds * @param fundsDistributed the amount of funds received for distribution */ event FundsDistributed(address indexed by, uint256 fundsDistributed); /** * @dev This event emits when distributed funds are withdrawn by a token holder. * @param by the address of the receiver of funds * @param fundsWithdrawn the amount of funds that were withdrawn */ event FundsWithdrawn(address indexed by, uint256 fundsWithdrawn); } contract FundsDistributionToken is ERC20Detailed, ERC20, IFundsDistributionToken { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; // optimize, see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 constant internal pointsMultiplier = 2 ** 128; uint256 internal pointsPerShare; mapping(address => int256) internal pointsCorrection; mapping(address => uint256) internal withdrawnFunds; /** * prev. distributeDividends * @notice Distributes funds to token holders. * @dev It reverts if the total supply of tokens is 0. * It emits the `FundsDistributed` event if the amount of received ether is greater than 0. * About undistributed funds: * In each distribution, there is a small amount of funds which does not get distributed, * which is `(msg.value * pointsMultiplier) % totalSupply()`. * With a well-chosen `pointsMultiplier`, the amount funds that are not getting distributed * in a distribution can be less than 1 (base unit). * We can actually keep track of the undistributed ether in a distribution * and try to distribute it in the next distribution ....... todo implement */ function _distributeFunds(uint256 value) internal { require(totalSupply() > 0, "FundsDistributionToken._distributeFunds: SUPPLY_IS_ZERO"); if (value > 0) { pointsPerShare = pointsPerShare.add( value.mul(pointsMultiplier) / totalSupply() ); emit FundsDistributed(msg.sender, value); } } /** * prev. withdrawDividend * @notice Prepares funds withdrawal * @dev It emits a `FundsWithdrawn` event if the amount of withdrawn ether is greater than 0. */ function _prepareWithdraw() internal returns (uint256) { uint256 _withdrawableDividend = withdrawableFundsOf(msg.sender); withdrawnFunds[msg.sender] = withdrawnFunds[msg.sender].add(_withdrawableDividend); emit FundsWithdrawn(msg.sender, _withdrawableDividend); return _withdrawableDividend; } /** * prev. withdrawableDividendOf * @notice View the amount of funds that an address can withdraw. * @param _owner The address of a token holder. * @return The amount funds that `_owner` can withdraw. */ function withdrawableFundsOf(address _owner) public view returns (uint256) { return accumulativeFundsOf(_owner).sub(withdrawnFunds[_owner]); } /** * prev. withdrawnDividendOf * @notice View the amount of funds that an address has withdrawn. * @param _owner The address of a token holder. * @return The amount of funds that `_owner` has withdrawn. */ function withdrawnFundsOf(address _owner) external view returns (uint256) { return withdrawnFunds[_owner]; } /** * prev. accumulativeDividendOf * @notice View the amount of funds that an address has earned in total. * @dev accumulativeFundsOf(_owner) = withdrawableFundsOf(_owner) + withdrawnFundsOf(_owner) * = (pointsPerShare * balanceOf(_owner) + pointsCorrection[_owner]) / pointsMultiplier * @param _owner The address of a token holder. * @return The amount of funds that `_owner` has earned in total. */ function accumulativeFundsOf(address _owner) public view returns (uint256) { return pointsPerShare.mul(balanceOf(_owner)).toInt256Safe() .add(pointsCorrection[_owner]).toUint256Safe() / pointsMultiplier; } /** * @dev Internal function that transfer tokens from one address to another. * Update pointsCorrection to keep funds unchanged. * @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 { super._transfer(from, to, value); int256 _magCorrection = pointsPerShare.mul(value).toInt256Safe(); pointsCorrection[from] = pointsCorrection[from].add(_magCorrection); pointsCorrection[to] = pointsCorrection[to].sub(_magCorrection); } /** * @dev Internal function that mints tokens to an account. * Update pointsCorrection to keep funds unchanged. * @param account The account that will receive the created tokens. * @param value The amount that will be created. */ function _mint(address account, uint256 value) internal { super._mint(account, value); pointsCorrection[account] = pointsCorrection[account] .sub((pointsPerShare.mul(value)).toInt256Safe()); } } contract J2TD is FundsDistributionToken { using SafeMathUint for uint256; using SafeMathInt for int256; // balance of fundsToken that the FundsDistributionToken currently holds uint256 public fundsTokenBalance; constructor()public ERC20Detailed("J2TX Token Dividends", "J2TD", 18){ _mint(msg.sender, 100000000 * 10 ** uint256(18)); } /** * @notice Withdraws all available funds for a token holder */ function withdrawFunds() external { uint256 withdrawableFunds = _prepareWithdraw(); address payable to = msg.sender; to.transfer(withdrawableFunds); _updateFundsTokenBalance(); } /** * @dev Updates the current funds token balance * and returns the difference of new and previous funds token balances * @return A int256 representing the difference of the new and previous funds token balance */ function _updateFundsTokenBalance() internal returns (int256) { uint256 prevFundsTokenBalance = fundsTokenBalance; fundsTokenBalance = (address(this).balance); return int256(fundsTokenBalance).sub(int256(prevFundsTokenBalance)); } /** * @notice Register a payment of funds in tokens. May be called directly after a deposit is made. * @dev Calls _updateFundsTokenBalance(), whereby the contract computes the delta of the previous and the new * funds token balance and increments the total received funds (cumulative) by delta by calling _registerFunds() */ function updateFundsReceived() external { int256 newFunds = _updateFundsTokenBalance(); if (newFunds > 0) { _distributeFunds(newFunds.toUint256Safe()); } } /** * @notice j2tx */ function getTechInfo(address owner) external view returns ( uint256 balance, int256 correction, uint256 withdrawn, uint256 withdrawable ){ balance = balanceOf(owner); correction = pointsCorrection[owner]; withdrawn = withdrawnFunds[owner]; withdrawable = withdrawableFundsOf(owner); } /** * @notice Payable function, for receive funds. */ function() external payable {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"payable":false,"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":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"fundsDistributed","type":"uint256"}],"name":"FundsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"fundsWithdrawn","type":"uint256"}],"name":"FundsWithdrawn","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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"accumulativeFundsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"fundsTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getTechInfo","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"int256","name":"correction","type":"int256"},{"internalType":"uint256","name":"withdrawn","type":"uint256"},{"internalType":"uint256","name":"withdrawable","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"updateFundsReceived","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawFunds","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawableFundsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawnFundsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252601481527f4a32545820546f6b656e204469766964656e6473000000000000000000000000602080830191825283518085019094526004845263128c951160e21b90840152815191929160129162000077916000919062000371565b5081516200008d90600190602085019062000371565b506002805460ff191660ff9290921691909117905550620000bc9050336a52b7d2dcc80cd2e4000000620000c2565b62000416565b620000d982826200015b60201b62000f941760201c565b6200013b6200010e620000fd836006546200026060201b62000d601790919060201c565b620002c760201b62000db91760201c565b6001600160a01b038416600090815260076020908152604090912054919062000f5a620002d8821b17901c565b6001600160a01b0390921660009081526007602052604090209190915550565b6001600160a01b038216620001b7576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620001d3816005546200031660201b62000beb1790919060201c565b6005556001600160a01b0382166000908152600360209081526040909120546200020891839062000beb62000316821b17901c565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000826200027157506000620002c1565b828202828482816200027f57fe5b0414620002be5760405162461bcd60e51b81526004018080602001828103825260218152602001806200163a6021913960400191505060405180910390fd5b90505b92915050565b60008181811215620002c157600080fd5b6000808212158015620002ed57508282840313155b8062000306575060008212801562000306575082828403135b6200031057600080fd5b50900390565b600082820183811015620002be576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003b457805160ff1916838001178555620003e4565b82800160010185558215620003e4579182015b82811115620003e4578251825591602001919060010190620003c7565b50620003f2929150620003f6565b5090565b6200041391905b80821115620003f25760008155600101620003fd565b90565b61121480620004266000396000f3fe6080604052600436106101085760003560e01c8063443bb2931161009557806395d89b411161006457806395d89b41146103fe578063a457c2d714610413578063a9059cbb1461044c578063a9691f3f14610485578063dd62ed3e1461049a57610108565b8063443bb2931461035057806346c162de146103835780634e97415f1461039857806370a08231146103cb57610108565b806323b872dd116100dc57806323b872dd1461023b57806324600fc31461027e578063313ce5671461029357806339509351146102be57806341b4ffc9146102f757610108565b806241c52c1461010a57806306fdde031461014f578063095ea7b3146101d957806318160ddd14610226575b005b34801561011657600080fd5b5061013d6004803603602081101561012d57600080fd5b50356001600160a01b03166104d5565b60408051918252519081900360200190f35b34801561015b57600080fd5b506101646104f0565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019e578181015183820152602001610186565b50505050905090810190601f1680156101cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e557600080fd5b50610212600480360360408110156101fc57600080fd5b506001600160a01b038135169060200135610586565b604080519115158252519081900360200190f35b34801561023257600080fd5b5061013d6105a4565b34801561024757600080fd5b506102126004803603606081101561025e57600080fd5b506001600160a01b038135811691602081013590911690604001356105aa565b34801561028a57600080fd5b50610108610637565b34801561029f57600080fd5b506102a8610681565b6040805160ff9092168252519081900360200190f35b3480156102ca57600080fd5b50610212600480360360408110156102e157600080fd5b506001600160a01b03813516906020013561068a565b34801561030357600080fd5b5061032a6004803603602081101561031a57600080fd5b50356001600160a01b03166106de565b604080519485526020850193909352838301919091526060830152519081900360800190f35b34801561035c57600080fd5b5061013d6004803603602081101561037357600080fd5b50356001600160a01b031661072b565b34801561038f57600080fd5b5061010861075d565b3480156103a457600080fd5b5061013d600480360360208110156103bb57600080fd5b50356001600160a01b0316610786565b3480156103d757600080fd5b5061013d600480360360208110156103ee57600080fd5b50356001600160a01b03166107ef565b34801561040a57600080fd5b5061016461080a565b34801561041f57600080fd5b506102126004803603604081101561043657600080fd5b506001600160a01b03813516906020013561086a565b34801561045857600080fd5b506102126004803603604081101561046f57600080fd5b506001600160a01b0381351690602001356108d8565b34801561049157600080fd5b5061013d6108ec565b3480156104a657600080fd5b5061013d600480360360408110156104bd57600080fd5b506001600160a01b03813581169160200135166108f2565b6001600160a01b031660009081526008602052604090205490565b60008054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561057c5780601f106105515761010080835404028352916020019161057c565b820191906000526020600020905b81548152906001019060200180831161055f57829003601f168201915b5050505050905090565b600061059a61059361091d565b8484610921565b5060015b92915050565b60055490565b60006105b7848484610a0d565b61062d846105c361091d565b6106288560405180606001604052806028815260200161114a602891396001600160a01b038a1660009081526004602052604081209061060161091d565b6001600160a01b03168152602081019190915260400160002054919063ffffffff610ab516565b610921565b5060019392505050565b6000610641610b4c565b6040519091503390819083156108fc029084906000818181858888f19350505050158015610673573d6000803e3d6000fd5b5061067c610bc9565b505050565b60025460ff1690565b600061059a61069761091d565b8461062885600460006106a861091d565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff610beb16565b6000806000806106ed856107ef565b6001600160a01b038616600090815260076020908152604080832054600890925290912054919550935091506107228561072b565b90509193509193565b6001600160a01b03811660009081526008602052604081205461059e9061075184610786565b9063ffffffff610c4c16565b6000610767610bc9565b905060008113156107835761078361077e82610c8e565b610ca1565b50565b6001600160a01b038116600090815260076020526040812054600160801b906107e1906107dc906107d06107cb6107bc886107ef565b6006549063ffffffff610d6016565b610db9565b9063ffffffff610dc916565b610c8e565b816107e857fe5b0492915050565b6001600160a01b031660009081526003602052604090205490565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561057c5780601f106105515761010080835404028352916020019161057c565b600061059a61087761091d565b84610628856040518060600160405280602581526020016111bb60259139600460006108a161091d565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff610ab516565b600061059a6108e561091d565b8484610a0d565b60095481565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166109665760405162461bcd60e51b81526004018080602001828103825260248152602001806111976024913960400191505060405180910390fd5b6001600160a01b0382166109ab5760405162461bcd60e51b81526004018080602001828103825260228152602001806110aa6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b610a18838383610dfc565b6000610a326107cb83600654610d6090919063ffffffff16565b6001600160a01b038516600090815260076020526040902054909150610a5e908263ffffffff610dc916565b6001600160a01b038086166000908152600760205260408082209390935590851681522054610a93908263ffffffff610f5a16565b6001600160a01b03909316600090815260076020526040902092909255505050565b60008184841115610b445760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b09578181015183820152602001610af1565b50505050905090810190601f168015610b365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600080610b583361072b565b33600090815260086020526040902054909150610b7b908263ffffffff610beb16565b33600081815260086020908152604091829020939093558051848152905191927feaff4b37086828766ad3268786972c0cd24259d4c87a80f9d3963a3c3d999b0d92918290030190a2905090565b600980544791829055600091610be5908263ffffffff610f5a16565b91505090565b600082820183811015610c45576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000610c4583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ab5565b600080821215610c9d57600080fd5b5090565b6000610cab6105a4565b11610ce75760405162461bcd60e51b81526004018080602001828103825260378152602001806110f26037913960400191505060405180910390fd5b801561078357610d24610cf86105a4565b610d0c83600160801b63ffffffff610d6016565b81610d1357fe5b60065491900463ffffffff610beb16565b60065560408051828152905133917f26536799ace2c3dbe12e638ec3ade6b4173dcf1289be0a58d51a5003015649bd919081900360200190a250565b600082610d6f5750600061059e565b82820282848281610d7c57fe5b0414610c455760405162461bcd60e51b81526004018080602001828103825260218152602001806111296021913960400191505060405180910390fd5b6000818181121561059e57600080fd5b6000828201818312801590610dde5750838112155b80610df35750600083128015610df357508381125b610c4557600080fd5b6001600160a01b038316610e415760405162461bcd60e51b81526004018080602001828103825260258152602001806111726025913960400191505060405180910390fd5b6001600160a01b038216610e865760405162461bcd60e51b81526004018080602001828103825260238152602001806110876023913960400191505060405180910390fd5b610ec9816040518060600160405280602681526020016110cc602691396001600160a01b038616600090815260036020526040902054919063ffffffff610ab516565b6001600160a01b038085166000908152600360205260408082209390935590841681522054610efe908263ffffffff610beb16565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000808212158015610f6e57508282840313155b80610f855750600082128015610f85575082828403135b610f8e57600080fd5b50900390565b6001600160a01b038216610fef576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600554611002908263ffffffff610beb16565b6005556001600160a01b03821660009081526003602052604090205461102e908263ffffffff610beb16565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636546756e6473446973747269627574696f6e546f6b656e2e5f6469737472696275746546756e64733a20535550504c595f49535f5a45524f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a723158206590fc7503fd06846214c07fb96155bb4bcfd337bd99e20da7620c96d14ed2d264736f6c63430005100032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77
Deployed Bytecode
0x6080604052600436106101085760003560e01c8063443bb2931161009557806395d89b411161006457806395d89b41146103fe578063a457c2d714610413578063a9059cbb1461044c578063a9691f3f14610485578063dd62ed3e1461049a57610108565b8063443bb2931461035057806346c162de146103835780634e97415f1461039857806370a08231146103cb57610108565b806323b872dd116100dc57806323b872dd1461023b57806324600fc31461027e578063313ce5671461029357806339509351146102be57806341b4ffc9146102f757610108565b806241c52c1461010a57806306fdde031461014f578063095ea7b3146101d957806318160ddd14610226575b005b34801561011657600080fd5b5061013d6004803603602081101561012d57600080fd5b50356001600160a01b03166104d5565b60408051918252519081900360200190f35b34801561015b57600080fd5b506101646104f0565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019e578181015183820152602001610186565b50505050905090810190601f1680156101cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e557600080fd5b50610212600480360360408110156101fc57600080fd5b506001600160a01b038135169060200135610586565b604080519115158252519081900360200190f35b34801561023257600080fd5b5061013d6105a4565b34801561024757600080fd5b506102126004803603606081101561025e57600080fd5b506001600160a01b038135811691602081013590911690604001356105aa565b34801561028a57600080fd5b50610108610637565b34801561029f57600080fd5b506102a8610681565b6040805160ff9092168252519081900360200190f35b3480156102ca57600080fd5b50610212600480360360408110156102e157600080fd5b506001600160a01b03813516906020013561068a565b34801561030357600080fd5b5061032a6004803603602081101561031a57600080fd5b50356001600160a01b03166106de565b604080519485526020850193909352838301919091526060830152519081900360800190f35b34801561035c57600080fd5b5061013d6004803603602081101561037357600080fd5b50356001600160a01b031661072b565b34801561038f57600080fd5b5061010861075d565b3480156103a457600080fd5b5061013d600480360360208110156103bb57600080fd5b50356001600160a01b0316610786565b3480156103d757600080fd5b5061013d600480360360208110156103ee57600080fd5b50356001600160a01b03166107ef565b34801561040a57600080fd5b5061016461080a565b34801561041f57600080fd5b506102126004803603604081101561043657600080fd5b506001600160a01b03813516906020013561086a565b34801561045857600080fd5b506102126004803603604081101561046f57600080fd5b506001600160a01b0381351690602001356108d8565b34801561049157600080fd5b5061013d6108ec565b3480156104a657600080fd5b5061013d600480360360408110156104bd57600080fd5b506001600160a01b03813581169160200135166108f2565b6001600160a01b031660009081526008602052604090205490565b60008054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561057c5780601f106105515761010080835404028352916020019161057c565b820191906000526020600020905b81548152906001019060200180831161055f57829003601f168201915b5050505050905090565b600061059a61059361091d565b8484610921565b5060015b92915050565b60055490565b60006105b7848484610a0d565b61062d846105c361091d565b6106288560405180606001604052806028815260200161114a602891396001600160a01b038a1660009081526004602052604081209061060161091d565b6001600160a01b03168152602081019190915260400160002054919063ffffffff610ab516565b610921565b5060019392505050565b6000610641610b4c565b6040519091503390819083156108fc029084906000818181858888f19350505050158015610673573d6000803e3d6000fd5b5061067c610bc9565b505050565b60025460ff1690565b600061059a61069761091d565b8461062885600460006106a861091d565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff610beb16565b6000806000806106ed856107ef565b6001600160a01b038616600090815260076020908152604080832054600890925290912054919550935091506107228561072b565b90509193509193565b6001600160a01b03811660009081526008602052604081205461059e9061075184610786565b9063ffffffff610c4c16565b6000610767610bc9565b905060008113156107835761078361077e82610c8e565b610ca1565b50565b6001600160a01b038116600090815260076020526040812054600160801b906107e1906107dc906107d06107cb6107bc886107ef565b6006549063ffffffff610d6016565b610db9565b9063ffffffff610dc916565b610c8e565b816107e857fe5b0492915050565b6001600160a01b031660009081526003602052604090205490565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561057c5780601f106105515761010080835404028352916020019161057c565b600061059a61087761091d565b84610628856040518060600160405280602581526020016111bb60259139600460006108a161091d565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff610ab516565b600061059a6108e561091d565b8484610a0d565b60095481565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166109665760405162461bcd60e51b81526004018080602001828103825260248152602001806111976024913960400191505060405180910390fd5b6001600160a01b0382166109ab5760405162461bcd60e51b81526004018080602001828103825260228152602001806110aa6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b610a18838383610dfc565b6000610a326107cb83600654610d6090919063ffffffff16565b6001600160a01b038516600090815260076020526040902054909150610a5e908263ffffffff610dc916565b6001600160a01b038086166000908152600760205260408082209390935590851681522054610a93908263ffffffff610f5a16565b6001600160a01b03909316600090815260076020526040902092909255505050565b60008184841115610b445760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b09578181015183820152602001610af1565b50505050905090810190601f168015610b365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600080610b583361072b565b33600090815260086020526040902054909150610b7b908263ffffffff610beb16565b33600081815260086020908152604091829020939093558051848152905191927feaff4b37086828766ad3268786972c0cd24259d4c87a80f9d3963a3c3d999b0d92918290030190a2905090565b600980544791829055600091610be5908263ffffffff610f5a16565b91505090565b600082820183811015610c45576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000610c4583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ab5565b600080821215610c9d57600080fd5b5090565b6000610cab6105a4565b11610ce75760405162461bcd60e51b81526004018080602001828103825260378152602001806110f26037913960400191505060405180910390fd5b801561078357610d24610cf86105a4565b610d0c83600160801b63ffffffff610d6016565b81610d1357fe5b60065491900463ffffffff610beb16565b60065560408051828152905133917f26536799ace2c3dbe12e638ec3ade6b4173dcf1289be0a58d51a5003015649bd919081900360200190a250565b600082610d6f5750600061059e565b82820282848281610d7c57fe5b0414610c455760405162461bcd60e51b81526004018080602001828103825260218152602001806111296021913960400191505060405180910390fd5b6000818181121561059e57600080fd5b6000828201818312801590610dde5750838112155b80610df35750600083128015610df357508381125b610c4557600080fd5b6001600160a01b038316610e415760405162461bcd60e51b81526004018080602001828103825260258152602001806111726025913960400191505060405180910390fd5b6001600160a01b038216610e865760405162461bcd60e51b81526004018080602001828103825260238152602001806110876023913960400191505060405180910390fd5b610ec9816040518060600160405280602681526020016110cc602691396001600160a01b038616600090815260036020526040902054919063ffffffff610ab516565b6001600160a01b038085166000908152600360205260408082209390935590841681522054610efe908263ffffffff610beb16565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000808212158015610f6e57508282840313155b80610f855750600082128015610f85575082828403135b610f8e57600080fd5b50900390565b6001600160a01b038216610fef576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600554611002908263ffffffff610beb16565b6005556001600160a01b03821660009081526003602052604090205461102e908263ffffffff610beb16565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636546756e6473446973747269627574696f6e546f6b656e2e5f6469737472696275746546756e64733a20535550504c595f49535f5a45524f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a723158206590fc7503fd06846214c07fb96155bb4bcfd337bd99e20da7620c96d14ed2d264736f6c63430005100032
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.