ETH Price: $3,853.97 (-1.48%)

Token

SocialGood (SG)
 

Overview

Max Total Supply

27,125,752.73 SG

Holders

21,539 ( 0.005%)

Market

Price

$0.22 @ 0.000056 ETH (+0.42%)

Onchain Market Cap

$5,905,493.38

Circulating Supply Market Cap

$5,138,324.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 SG

Value
$0.00
0x2b280a8007a7bb501e00bd4be2d6a431606ee611
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A project claims to provide crypto point return service for shopping at retail stores, with patents.

Market

Volume (24H):$661,456.00
Market Capitalization:$5,138,324.00
Circulating Supply:23,653,217.00 SG
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume
1
BitMart
SG-USDT$0.2174
0.0000564 Eth
$658,012.00
3,026,278.000 SG
99.8892%
2
Uniswap V3 (Polygon)
0X79375C41D88F839F551457145066096C5C8944BC-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$0.2143
0.0000555 Eth
$2,026.26
9,594.328 0X79375C41D88F839F551457145066096C5C8944BC
0.3167%
3
Uniswap V2 (Ethereum)
0XDDF7FD345D54FF4B40079579D4C4670415DBFD0A-0XDAC17F958D2EE523A2206206994597C13D831EC7$0.2135
0.0000554 Eth
$569.05
2,656.140 0XDDF7FD345D54FF4B40079579D4C4670415DBFD0A
0.0877%
4
Uniswap V3 (Polygon)
0X79375C41D88F839F551457145066096C5C8944BC-0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270$0.2144
0.0000556 Eth
$146.07
701.128 0X79375C41D88F839F551457145066096C5C8944BC
0.0231%
5
BitBNS
SG-INR$0.1414
0.0000368 Eth
$1.70
12.000 SG
0.0004%
6
LATOKEN
SG-USDT$0.1286
0.0000331 Eth
$0.2504
1.947 SG
0.0001%
7
BitBNS
SG-USDT$0.10
0.0000255 Eth
$0.02
0.200 SG
0.0000%

Contract Source Code Verified (Exact Match)

Contract Name:
SocialGoodToken

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-07-20
*/

pragma solidity 0.5.17;


/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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
    );
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
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;
    }
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is 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(msg.sender, 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(msg.sender, 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,
            msg.sender,
            _allowances[sender][msg.sender].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(
            msg.sender,
            spender,
            _allowances[msg.sender][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(
            msg.sender,
            spender,
            _allowances[msg.sender][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,
            msg.sender,
            _allowances[account][msg.sender].sub(
                amount,
                "ERC20: burn amount exceeds allowance"
            )
        );
    }
}

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Ownable {
    /**
     * @dev Emitted when the pause is triggered by a pauser (`account`).
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by a pauser (`account`).
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state. Assigns the Pauser role
     * to the deployer.
     */
    constructor() internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Called by a pauser to pause, triggers stopped state.
     */
    function pause() public onlyOwner whenNotPaused {
        _paused = true;
        emit Paused(msg.sender);
    }

    /**
     * @dev Called by a pauser to unpause, returns to normal state.
     */
    function unpause() public onlyOwner whenPaused {
        _paused = false;
        emit Unpaused(msg.sender);
    }
}

/**
 * @title Pausable token
 * @dev ERC20 with pausable transfers and allowances.
 *
 * Useful if you want to stop trades until the end of a crowdsale, or have
 * an emergency switch for freezing all token transfers in the event of a large
 * bug.
 */
contract ERC20Pausable is ERC20, Pausable {
    function transfer(address to, uint256 value)
        public
        whenNotPaused
        returns (bool)
    {
        return super.transfer(to, value);
    }

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) public whenNotPaused returns (bool) {
        return super.transferFrom(from, to, value);
    }

    function approve(address spender, uint256 value)
        public
        whenNotPaused
        returns (bool)
    {
        return super.approve(spender, value);
    }

    function increaseAllowance(address spender, uint256 addedValue)
        public
        whenNotPaused
        returns (bool)
    {
        return super.increaseAllowance(spender, addedValue);
    }

    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        whenNotPaused
        returns (bool)
    {
        return super.decreaseAllowance(spender, subtractedValue);
    }
}

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
contract ERC20Burnable is ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public {
        _burn(msg.sender, amount);
    }

    /**
     * @dev See {ERC20-_burnFrom}.
     */
    function burnFrom(address account, uint256 amount) public {
        _burnFrom(account, amount);
    }
}

/**
 * @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole},
 * which have permission to mint (create) new tokens as they see fit.
 *
 * At construction, the deployer of the contract is the only minter.
 */
contract ERC20Mintable is ERC20, Ownable {
    /**
     * @dev See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the {MinterRole}.
     */
    function mint(address account, uint256 amount)
        public
        onlyOwner
        returns (bool)
    {
        _mint(account, amount);
        return true;
    }
}

/**
 * @dev Extension of {ERC20Mintable} that adds a cap to the supply of tokens.
 */
contract ERC20Capped is ERC20Mintable {
    uint256 private _cap;
    uint256 private _capUsed;

    uint256 private _airdropCap;
    uint256 private _airdropCapUsed;

    /**
     * @dev Sets the value of the `cap`. This value is immutable, it can only be
     * set once during construction.
     */
    constructor(uint256 cap, uint256 airdropCap) public {
        require(cap != 0, "ERC20Capped: cap is 0");
        require(airdropCap != 0, "ERC20Capped: airdrop cap is 0");
        _cap = cap;
        _airdropCap = airdropCap;
    }

    /**
     * @dev Returns the normal cap.
     */
    function cap() public view returns (uint256) {
        return _cap;
    }

    /**
     * @dev Returns the airdrop cap.
     */
    function airdropCap() public view returns (uint256) {
        return _airdropCap;
    }

    /**
     * @dev Returns the normal cap used.
     */
    function capUsed() public view returns (uint256) {
        return _capUsed;
    }

    /**
     * @dev Returns the airdrop cap used.
     */
    function airdropCapUsed() public view returns (uint256) {
        return _airdropCapUsed;
    }

    /**
     * @dev See {ERC20Mintable-mint}.
     *
     * Requirements:
     *
     * - `value` must not cause the cap used to go over the cap.
     */
    function _mint(address account, uint256 value) internal {
        uint256 newCapUsed = _capUsed.add(value);
        require(newCapUsed <= _cap, "ERC20Capped: cap exceeded");
        super._mint(account, value);
        _capUsed = newCapUsed;
    }

    /**
     * @dev See {ERC20Mintable-mint}.
     *
     * Requirements:
     *
     * - `value` must not cause the airdrop cap used to go over the airdrop cap.
     */
    function _airdropMint(address account, uint256 value) internal {
        super._mint(account, value);
    }

    /**
     * @dev Used for increasing the airdrop cap used when owner lockup the token.
     *
     * Requirements:
     *
     * - `value` must not cause the airdrop cap used to go over the cap.
     */
    function _incrementUsedAirdropCap(uint256 value) internal {
        uint256 newAirdropCapUsed = _airdropCapUsed.add(value);
        require(
            newAirdropCapUsed <= _airdropCap,
            "ERC20Capped: airdrop cap exceeded"
        );
        _airdropCapUsed = newAirdropCapUsed;
    }
}

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract SocialGoodToken is
    ERC20Pausable,
    ERC20Burnable,
    ERC20Mintable,
    ERC20Capped
{
    string private constant _name = "SocialGood";
    string private constant _symbol = "SG";
    uint8 private constant _decimals = 18;

    // set maximum token normal hard cap
    uint256 private constant NORMAL_HARD_CAP = 209250000e18; // 209,250,000 SG
    // set maximum token airdrop hard cap
    uint256 private constant AIRDROP_HARD_CAP = 750000e18; // 750,000 SG

    mapping(address => uint256) private _lockupAmounts;

    constructor() public ERC20Capped(NORMAL_HARD_CAP, AIRDROP_HARD_CAP) {}

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public pure 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 pure returns (uint8) {
        return _decimals;
    }

    function getAddressLockupAmount(address _account)
        public
        view
        returns (uint256)
    {
        return _lockupAmounts[_account];
    }

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public onlyOwner {
        _burn(msg.sender, amount);
    }

    /**
     * @dev See {ERC20-_burnFrom}.
     */
    function burnFrom(address account, uint256 amount) public onlyOwner {
        _burnFrom(account, amount);
    }

    /**
     * @dev Used for validating inputs before execute lockup
     */
    function _preValidateAirdrop(address _account, uint256 _amount)
        internal
        pure
    {
        require(
            _account != address(0),
            "SocialGoodToken: airdrop target address is empty"
        );
        require(_amount != 0, "SocialGoodToken: amount is zero");
    }

    /**
     * @dev Used for migrating old SG token to new SG token.
     * The token amount will be locked until the owner unlock it manually.
     */
    function airdropLockup(
        address[] calldata _accounts,
        uint256[] calldata _amounts
    ) external onlyOwner whenNotPaused {
        require(
            _accounts.length == _amounts.length,
            "SocialGoodToken: the length of accounts, amounts are not the same"
        );
        uint256 length = _accounts.length;
        for (uint256 i = 0; i != length; i++) {
            _preValidateAirdrop(_accounts[i], _amounts[i]);
            _lockup(_accounts[i], _amounts[i]);
        }
    }

    /**
     * @dev Used for locking up token amount of any address.
     * This is an internal function, only called from the owner's airdropLockup function.
     */
    function _lockup(address _account, uint256 _amount) internal {
        _lockupAmounts[_account] = _lockupAmounts[_account].add(_amount);
        _incrementUsedAirdropCap(_amount);
    }

    /**
     * @dev Used for unlocking token when migrating from old SG token to new SG token.
     * The token amount will be minted to selected addresses up to the token issue limit.
     * Data will be read from _lockupAmounts and reset to zero after token is minted.
     */
    function unlocks(address[] calldata _accounts)
        external
        onlyOwner
        whenNotPaused
    {
        uint256 length = _accounts.length;
        for (uint256 i = 0; i != length; i++) {
            _unlock(_accounts[i]);
        }
    }

    function _unlock(address _account) internal {
        require(
            _lockupAmounts[_account] != 0,
            "SocialGoodToken: amount is zero"
        );
        _airdropMint(_account, _lockupAmounts[_account]);
        _lockupAmounts[_account] = 0;
    }
}

Contract Security Audit

Contract ABI

[{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"constant":true,"inputs":[],"name":"airdropCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airdropCapUsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"airdropLockup","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"value","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":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"capUsed","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":"pure","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":[{"internalType":"address","name":"_account","type":"address"}],"name":"getAddressLockupAmount","outputs":[{"internalType":"uint256","name":"","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":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","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":"pure","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","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":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"}],"name":"unlocks","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600380546001600160a01b0319163317908190556040516aad16693ac9013bd940000091699ed194db19b238c00000916001600160a01b0391909116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36003805460ff60a01b19169055816100d5576040805162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015290519081900360640190fd5b80610127576040805162461bcd60e51b815260206004820152601d60248201527f45524332304361707065643a2061697264726f70206361702069732030000000604482015290519081900360640190fd5b600491909155600655611b568061013f6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f95780638f32d59b11610097578063a9059cbb11610071578063a9059cbb146105ad578063d245c8d3146105d9578063dd62ed3e146105e1578063f2fde38b1461060f576101c4565b80638f32d59b1461057157806395d89b4114610579578063a457c2d714610581576101c4565b80638456cb59116100d35780638456cb591461047b57806384aabd30146104835780638d0b0b76146105455780638da5cb5b1461054d576101c4565b806370a0823114610421578063715018a61461044757806379cc67901461044f576101c4565b8063313ce567116101665780633f4ba83a116101405780633f4ba83a146103c857806340c10f19146103d057806342966c68146103fc5780635c975abb14610419576101c4565b8063313ce56714610376578063355274ea14610394578063395093511461039c576101c4565b806316d33ad0116101a257806316d33ad0146102a057806318160ddd1461031257806321d4fc691461031a57806323b872dd14610340576101c4565b806306fdde03146101c9578063095ea7b31461024657806312b8f10514610286575b600080fd5b6101d1610635565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020b5781810151838201526020016101f3565b50505050905090810190601f1680156102385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102726004803603604081101561025c57600080fd5b506001600160a01b038135169060200135610659565b604080519115158252519081900360200190f35b61028e6106bf565b60408051918252519081900360200190f35b610310600480360360208110156102b657600080fd5b8101906020810181356401000000008111156102d157600080fd5b8201836020820111156102e357600080fd5b8035906020019184602083028401116401000000008311171561030557600080fd5b5090925090506106c5565b005b61028e61079b565b61028e6004803603602081101561033057600080fd5b50356001600160a01b03166107a1565b6102726004803603606081101561035657600080fd5b506001600160a01b038135811691602081013590911690604001356107bc565b61037e610824565b6040805160ff9092168252519081900360200190f35b61028e610829565b610272600480360360408110156103b257600080fd5b506001600160a01b03813516906020013561082f565b61031061088e565b610272600480360360408110156103e657600080fd5b506001600160a01b03813516906020013561096c565b6103106004803603602081101561041257600080fd5b50356109c8565b610272610a1c565b61028e6004803603602081101561043757600080fd5b50356001600160a01b0316610a2c565b610310610a47565b6103106004803603604081101561046557600080fd5b506001600160a01b038135169060200135610ad8565b610310610b2d565b6103106004803603604081101561049957600080fd5b8101906020810181356401000000008111156104b457600080fd5b8201836020820111156104c657600080fd5b803590602001918460208302840111640100000000831117156104e857600080fd5b91939092909160208101903564010000000081111561050657600080fd5b82018360208201111561051857600080fd5b8035906020019184602083028401116401000000008311171561053a57600080fd5b509092509050610c0e565b61028e610d6e565b610555610d74565b604080516001600160a01b039092168252519081900360200190f35b610272610d83565b6101d1610d94565b6102726004803603604081101561059757600080fd5b506001600160a01b038135169060200135610db0565b610272600480360360408110156105c357600080fd5b506001600160a01b038135169060200135610e0f565b61028e610e6e565b61028e600480360360408110156105f757600080fd5b506001600160a01b0381358116916020013516610e74565b6103106004803603602081101561062557600080fd5b50356001600160a01b0316610e9f565b60408051808201909152600a81526914dbd8da585b11dbdbd960b21b602082015290565b600354600090600160a01b900460ff16156106ae576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6106b88383610eef565b9392505050565b60055490565b6106cd610d83565b61070c576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b600354600160a01b900460ff161561075e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b8060005b8181146107955761078d84848381811061077857fe5b905060200201356001600160a01b0316610efc565b600101610762565b50505050565b60025490565b6001600160a01b031660009081526008602052604090205490565b600354600090600160a01b900460ff1615610811576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b61081c848484610fa4565b949350505050565b601290565b60045490565b600354600090600160a01b900460ff1615610884576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6106b88383611013565b610896610d83565b6108d5576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b600354600160a01b900460ff1661092a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6003805460ff60a01b191690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b6000610976610d83565b6109b5576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b6109bf838361104f565b50600192915050565b6109d0610d83565b610a0f576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b610a1933826110cf565b50565b600354600160a01b900460ff1690565b6001600160a01b031660009081526020819052604090205490565b610a4f610d83565b610a8e576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b610ae0610d83565b610b1f576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b610b2982826111cb565b5050565b610b35610d83565b610b74576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b600354600160a01b900460ff1615610bc6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6003805460ff60a01b1916600160a01b1790556040805133815290517f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589181900360200190a1565b610c16610d83565b610c55576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b600354600160a01b900460ff1615610ca7576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b828114610ce55760405162461bcd60e51b8152600401808060200182810382526041815260200180611abc6041913960600191505060405180910390fd5b8260005b818114610d6657610d27868683818110610cff57fe5b905060200201356001600160a01b0316858584818110610d1b57fe5b90506020020135611228565b610d5e868683818110610d3657fe5b905060200201356001600160a01b0316858584818110610d5257fe5b905060200201356112bf565b600101610ce9565b505050505050565b60065490565b6003546001600160a01b031690565b6003546001600160a01b0316331490565b604080518082019091526002815261534760f01b602082015290565b600354600090600160a01b900460ff1615610e05576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6106b8838361130a565b600354600090600160a01b900460ff1615610e64576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6106b8838361135f565b60075490565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610ea7610d83565b610ee6576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b610a198161136c565b60006109bf33848461140d565b6001600160a01b038116600090815260086020526040902054610f66576040805162461bcd60e51b815260206004820152601f60248201527f536f6369616c476f6f64546f6b656e3a20616d6f756e74206973207a65726f00604482015290519081900360640190fd5b6001600160a01b038116600090815260086020526040902054610f8a9082906114f9565b6001600160a01b0316600090815260086020526040812055565b6000610fb1848484611503565b6110098433611004856040518060600160405280602881526020016119e6602891396001600160a01b038a166000908152600160209081526040808320338452909152902054919063ffffffff61165f16565b61140d565b5060019392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916109bf918590611004908663ffffffff6116f616565b600554600090611065908363ffffffff6116f616565b90506004548111156110be576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b6110c88383611750565b6005555050565b6001600160a01b0382166111145760405162461bcd60e51b8152600401808060200182810382526021815260200180611a526021913960400191505060405180910390fd5b61115781604051806060016040528060228152602001611905602291396001600160a01b038516600090815260208190526040902054919063ffffffff61165f16565b6001600160a01b038316600090815260208190526040902055600254611183908263ffffffff61184016565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6111d582826110cf565b610b29823361100484604051806060016040528060248152602001611a2e602491396001600160a01b0388166000908152600160209081526040808320338452909152902054919063ffffffff61165f16565b6001600160a01b03821661126d5760405162461bcd60e51b81526004018080602001828103825260308152602001806119956030913960400191505060405180910390fd5b80610b29576040805162461bcd60e51b815260206004820152601f60248201527f536f6369616c476f6f64546f6b656e3a20616d6f756e74206973207a65726f00604482015290519081900360640190fd5b6001600160a01b0382166000908152600860205260409020546112e8908263ffffffff6116f616565b6001600160a01b038316600090815260086020526040902055610b2981611882565b60006109bf338461100485604051806060016040528060258152602001611afd602591393360009081526001602090815260408083206001600160a01b038d168452909152902054919063ffffffff61165f16565b60006109bf338484611503565b6001600160a01b0381166113b15760405162461bcd60e51b81526004018080602001828103825260268152602001806119276026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166114525760405162461bcd60e51b8152600401808060200182810382526024815260200180611a986024913960400191505060405180910390fd5b6001600160a01b0382166114975760405162461bcd60e51b815260040180806020018281038252602281526020018061194d6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b610b298282611750565b6001600160a01b0383166115485760405162461bcd60e51b8152600401808060200182810382526025815260200180611a736025913960400191505060405180910390fd5b6001600160a01b03821661158d5760405162461bcd60e51b81526004018080602001828103825260238152602001806118e26023913960400191505060405180910390fd5b6115d08160405180606001604052806026815260200161196f602691396001600160a01b038616600090815260208190526040902054919063ffffffff61165f16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611605908263ffffffff6116f616565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156116ee5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116b357818101518382015260200161169b565b50505050905090810190601f1680156116e05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156106b8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166117ab576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546117be908263ffffffff6116f616565b6002556001600160a01b0382166000908152602081905260409020546117ea908263ffffffff6116f616565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60006106b883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061165f565b600754600090611898908363ffffffff6116f616565b90506006548111156118db5760405162461bcd60e51b81526004018080602001828103825260218152602001806119c56021913960400191505060405180910390fd5b6007555056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536f6369616c476f6f64546f6b656e3a2061697264726f7020746172676574206164647265737320697320656d70747945524332304361707065643a2061697264726f702063617020657863656564656445524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373536f6369616c476f6f64546f6b656e3a20746865206c656e677468206f66206163636f756e74732c20616d6f756e747320617265206e6f74207468652073616d6545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582088ee271d5920b3a5aa849c501fae76479d31efe00837bce75e9d9d5e663fae9364736f6c63430005110032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f95780638f32d59b11610097578063a9059cbb11610071578063a9059cbb146105ad578063d245c8d3146105d9578063dd62ed3e146105e1578063f2fde38b1461060f576101c4565b80638f32d59b1461057157806395d89b4114610579578063a457c2d714610581576101c4565b80638456cb59116100d35780638456cb591461047b57806384aabd30146104835780638d0b0b76146105455780638da5cb5b1461054d576101c4565b806370a0823114610421578063715018a61461044757806379cc67901461044f576101c4565b8063313ce567116101665780633f4ba83a116101405780633f4ba83a146103c857806340c10f19146103d057806342966c68146103fc5780635c975abb14610419576101c4565b8063313ce56714610376578063355274ea14610394578063395093511461039c576101c4565b806316d33ad0116101a257806316d33ad0146102a057806318160ddd1461031257806321d4fc691461031a57806323b872dd14610340576101c4565b806306fdde03146101c9578063095ea7b31461024657806312b8f10514610286575b600080fd5b6101d1610635565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020b5781810151838201526020016101f3565b50505050905090810190601f1680156102385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102726004803603604081101561025c57600080fd5b506001600160a01b038135169060200135610659565b604080519115158252519081900360200190f35b61028e6106bf565b60408051918252519081900360200190f35b610310600480360360208110156102b657600080fd5b8101906020810181356401000000008111156102d157600080fd5b8201836020820111156102e357600080fd5b8035906020019184602083028401116401000000008311171561030557600080fd5b5090925090506106c5565b005b61028e61079b565b61028e6004803603602081101561033057600080fd5b50356001600160a01b03166107a1565b6102726004803603606081101561035657600080fd5b506001600160a01b038135811691602081013590911690604001356107bc565b61037e610824565b6040805160ff9092168252519081900360200190f35b61028e610829565b610272600480360360408110156103b257600080fd5b506001600160a01b03813516906020013561082f565b61031061088e565b610272600480360360408110156103e657600080fd5b506001600160a01b03813516906020013561096c565b6103106004803603602081101561041257600080fd5b50356109c8565b610272610a1c565b61028e6004803603602081101561043757600080fd5b50356001600160a01b0316610a2c565b610310610a47565b6103106004803603604081101561046557600080fd5b506001600160a01b038135169060200135610ad8565b610310610b2d565b6103106004803603604081101561049957600080fd5b8101906020810181356401000000008111156104b457600080fd5b8201836020820111156104c657600080fd5b803590602001918460208302840111640100000000831117156104e857600080fd5b91939092909160208101903564010000000081111561050657600080fd5b82018360208201111561051857600080fd5b8035906020019184602083028401116401000000008311171561053a57600080fd5b509092509050610c0e565b61028e610d6e565b610555610d74565b604080516001600160a01b039092168252519081900360200190f35b610272610d83565b6101d1610d94565b6102726004803603604081101561059757600080fd5b506001600160a01b038135169060200135610db0565b610272600480360360408110156105c357600080fd5b506001600160a01b038135169060200135610e0f565b61028e610e6e565b61028e600480360360408110156105f757600080fd5b506001600160a01b0381358116916020013516610e74565b6103106004803603602081101561062557600080fd5b50356001600160a01b0316610e9f565b60408051808201909152600a81526914dbd8da585b11dbdbd960b21b602082015290565b600354600090600160a01b900460ff16156106ae576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6106b88383610eef565b9392505050565b60055490565b6106cd610d83565b61070c576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b600354600160a01b900460ff161561075e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b8060005b8181146107955761078d84848381811061077857fe5b905060200201356001600160a01b0316610efc565b600101610762565b50505050565b60025490565b6001600160a01b031660009081526008602052604090205490565b600354600090600160a01b900460ff1615610811576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b61081c848484610fa4565b949350505050565b601290565b60045490565b600354600090600160a01b900460ff1615610884576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6106b88383611013565b610896610d83565b6108d5576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b600354600160a01b900460ff1661092a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6003805460ff60a01b191690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b6000610976610d83565b6109b5576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b6109bf838361104f565b50600192915050565b6109d0610d83565b610a0f576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b610a1933826110cf565b50565b600354600160a01b900460ff1690565b6001600160a01b031660009081526020819052604090205490565b610a4f610d83565b610a8e576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b610ae0610d83565b610b1f576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b610b2982826111cb565b5050565b610b35610d83565b610b74576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b600354600160a01b900460ff1615610bc6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6003805460ff60a01b1916600160a01b1790556040805133815290517f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589181900360200190a1565b610c16610d83565b610c55576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b600354600160a01b900460ff1615610ca7576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b828114610ce55760405162461bcd60e51b8152600401808060200182810382526041815260200180611abc6041913960600191505060405180910390fd5b8260005b818114610d6657610d27868683818110610cff57fe5b905060200201356001600160a01b0316858584818110610d1b57fe5b90506020020135611228565b610d5e868683818110610d3657fe5b905060200201356001600160a01b0316858584818110610d5257fe5b905060200201356112bf565b600101610ce9565b505050505050565b60065490565b6003546001600160a01b031690565b6003546001600160a01b0316331490565b604080518082019091526002815261534760f01b602082015290565b600354600090600160a01b900460ff1615610e05576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6106b8838361130a565b600354600090600160a01b900460ff1615610e64576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6106b8838361135f565b60075490565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610ea7610d83565b610ee6576040805162461bcd60e51b81526020600482018190526024820152600080516020611a0e833981519152604482015290519081900360640190fd5b610a198161136c565b60006109bf33848461140d565b6001600160a01b038116600090815260086020526040902054610f66576040805162461bcd60e51b815260206004820152601f60248201527f536f6369616c476f6f64546f6b656e3a20616d6f756e74206973207a65726f00604482015290519081900360640190fd5b6001600160a01b038116600090815260086020526040902054610f8a9082906114f9565b6001600160a01b0316600090815260086020526040812055565b6000610fb1848484611503565b6110098433611004856040518060600160405280602881526020016119e6602891396001600160a01b038a166000908152600160209081526040808320338452909152902054919063ffffffff61165f16565b61140d565b5060019392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916109bf918590611004908663ffffffff6116f616565b600554600090611065908363ffffffff6116f616565b90506004548111156110be576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b6110c88383611750565b6005555050565b6001600160a01b0382166111145760405162461bcd60e51b8152600401808060200182810382526021815260200180611a526021913960400191505060405180910390fd5b61115781604051806060016040528060228152602001611905602291396001600160a01b038516600090815260208190526040902054919063ffffffff61165f16565b6001600160a01b038316600090815260208190526040902055600254611183908263ffffffff61184016565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6111d582826110cf565b610b29823361100484604051806060016040528060248152602001611a2e602491396001600160a01b0388166000908152600160209081526040808320338452909152902054919063ffffffff61165f16565b6001600160a01b03821661126d5760405162461bcd60e51b81526004018080602001828103825260308152602001806119956030913960400191505060405180910390fd5b80610b29576040805162461bcd60e51b815260206004820152601f60248201527f536f6369616c476f6f64546f6b656e3a20616d6f756e74206973207a65726f00604482015290519081900360640190fd5b6001600160a01b0382166000908152600860205260409020546112e8908263ffffffff6116f616565b6001600160a01b038316600090815260086020526040902055610b2981611882565b60006109bf338461100485604051806060016040528060258152602001611afd602591393360009081526001602090815260408083206001600160a01b038d168452909152902054919063ffffffff61165f16565b60006109bf338484611503565b6001600160a01b0381166113b15760405162461bcd60e51b81526004018080602001828103825260268152602001806119276026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166114525760405162461bcd60e51b8152600401808060200182810382526024815260200180611a986024913960400191505060405180910390fd5b6001600160a01b0382166114975760405162461bcd60e51b815260040180806020018281038252602281526020018061194d6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b610b298282611750565b6001600160a01b0383166115485760405162461bcd60e51b8152600401808060200182810382526025815260200180611a736025913960400191505060405180910390fd5b6001600160a01b03821661158d5760405162461bcd60e51b81526004018080602001828103825260238152602001806118e26023913960400191505060405180910390fd5b6115d08160405180606001604052806026815260200161196f602691396001600160a01b038616600090815260208190526040902054919063ffffffff61165f16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611605908263ffffffff6116f616565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156116ee5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116b357818101518382015260200161169b565b50505050905090810190601f1680156116e05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156106b8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166117ab576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546117be908263ffffffff6116f616565b6002556001600160a01b0382166000908152602081905260409020546117ea908263ffffffff6116f616565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60006106b883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061165f565b600754600090611898908363ffffffff6116f616565b90506006548111156118db5760405162461bcd60e51b81526004018080602001828103825260218152602001806119c56021913960400191505060405180910390fd5b6007555056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536f6369616c476f6f64546f6b656e3a2061697264726f7020746172676574206164647265737320697320656d70747945524332304361707065643a2061697264726f702063617020657863656564656445524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373536f6369616c476f6f64546f6b656e3a20746865206c656e677468206f66206163636f756e74732c20616d6f756e747320617265206e6f74207468652073616d6545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582088ee271d5920b3a5aa849c501fae76479d31efe00837bce75e9d9d5e663fae9364736f6c63430005110032

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.