ETH Price: $1,829.56 (-1.78%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve211335182024-11-07 4:54:47473 days ago1730955287IN
MiqiSwap: MQ Token
0 ETH0.000229169.42103009
Approve158119302022-10-23 16:13:351219 days ago1666541615IN
MiqiSwap: MQ Token
0 ETH0.0003648715
Transfer131204992021-08-29 13:00:321639 days ago1630242032IN
MiqiSwap: MQ Token
0 ETH0.0069350.00000145
Transfer131195622021-08-29 9:27:481639 days ago1630229268IN
MiqiSwap: MQ Token
0 ETH0.0037647.00000145
Transfer131025292021-08-26 18:01:001642 days ago1630000860IN
MiqiSwap: MQ Token
0 ETH0.0102593276.68346956
Transfer131023852021-08-26 17:33:281642 days ago1629999208IN
MiqiSwap: MQ Token
0 ETH0.01654355123.65501893
Approve127507012021-07-02 21:40:311697 days ago1625262031IN
MiqiSwap: MQ Token
0 ETH0.000186434
Transfer126623772021-06-19 3:15:361711 days ago1624072536IN
MiqiSwap: MQ Token
0 ETH0.0003673315.00000156
Transfer126623122021-06-19 3:02:091711 days ago1624071729IN
MiqiSwap: MQ Token
0 ETH0.0002693711.00000145
Transfer121733792021-04-04 13:29:211786 days ago1617542961IN
MiqiSwap: MQ Token
0 ETH0.00310041132
Transfer120543172021-03-17 5:40:391804 days ago1615959639IN
MiqiSwap: MQ Token
0 ETH0.02679222191.1
Transfer119486112021-02-28 22:46:181821 days ago1614552378IN
MiqiSwap: MQ Token
0 ETH0.0029246878.00000145
Transfer118589912021-02-15 3:54:491834 days ago1613361289IN
MiqiSwap: MQ Token
0 ETH0.04418712353
Transfer118589892021-02-15 3:54:371834 days ago1613361277IN
MiqiSwap: MQ Token
0 ETH0.04418712353
Transfer118589882021-02-15 3:54:071834 days ago1613361247IN
MiqiSwap: MQ Token
0 ETH0.04418712353
Transfer118589882021-02-15 3:54:071834 days ago1613361247IN
MiqiSwap: MQ Token
0 ETH0.04418712353
Transfer118589882021-02-15 3:54:071834 days ago1613361247IN
MiqiSwap: MQ Token
0 ETH0.04418712353
Transfer118584792021-02-15 2:02:331835 days ago1613354553IN
MiqiSwap: MQ Token
0 ETH0.031294250
Transfer118584792021-02-15 2:02:331835 days ago1613354553IN
MiqiSwap: MQ Token
0 ETH0.031294250
Transfer118584792021-02-15 2:02:331835 days ago1613354553IN
MiqiSwap: MQ Token
0 ETH0.035044250
Transfer117513472021-01-29 14:33:541851 days ago1611930834IN
MiqiSwap: MQ Token
0 ETH0.00547441146.00000145
Approve117217352021-01-25 1:03:501856 days ago1611536630IN
MiqiSwap: MQ Token
0 ETH0.00632027142
Transfer117164872021-01-24 5:32:341856 days ago1611466354IN
MiqiSwap: MQ Token
0 ETH0.0032554962
Transfer117035252021-01-22 5:49:521858 days ago1611294592IN
MiqiSwap: MQ Token
0 ETH0.01622114115.70000189
Approve116301262021-01-10 23:38:521870 days ago1610321932IN
MiqiSwap: MQ Token
0 ETH0.0033826876
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MiqiToken

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.5.0;


/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
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;
    }
}
/**
 * @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 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"));
    }
}

/**
 * @dev Optional functions from the ERC20 standard.
 */
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;
    }
}

interface IRewardPool {
  function addReward(uint256 amount) external returns (bool);
}

contract MiqiToken is Context, ERC20, ERC20Detailed{
  using SafeMath for uint256;
  
  uint256 private _totalSupply = 33000000*10**18; // 33000000
  uint256 private _minSupply = 33000*10**18;      // 33000
  uint256 private _totalBurned = 0;     
  uint256 private _totalPooled = 0;
  uint256 private _totalFoundation = 0;  
  uint256 private _burnRate = 6;             // 6 percent to burn
  uint256 private _poolRate = 5;              // 5 percent for reward pool
  uint256 private _foundationRate = 1;        // 1 percent for foundation
  
  mapping (address => bool) public admins;
  mapping (address => uint8) public whitelist; 
  address public foundation = 0xF7Ca3d84B6F61eeF26eB17942eaAA1ce6fa809F9;
  IRewardPool[] public rewardPools;
  
  event AdminUpdated(address indexed admin, address indexed account, bool enable);
  event RewardPoolAdded(address indexed admin, address indexed pool);
  event WhitelistUpdated(address indexed admin, address indexed account, uint8 flag);
  event TransferFiltered(uint256 send, uint256 burn, uint256 pools, uint256 foundation);
    
  constructor () public ERC20Detailed("MiqiToken", "MQ", 18) {
    _mint(_msgSender(), _totalSupply);   
    
    _setAdmin(_msgSender(), _msgSender(), true);
  }
  
  modifier onlyAdmin(){
    require(admins[_msgSender()], "caller has no admin role");
    _;
  }
  
  function _outboundFree(address account) private view returns(bool){
    return whitelist[account] & 0x10 == 0x10;
  }

  function _inboundFree(address account) private view returns(bool){
    return whitelist[account] & 0x01 == 0x01;
  }
  
  function _filter(address sender, address recipient, uint256 amount) private returns(uint256) {
    
    if( _outboundFree(sender) || _inboundFree(recipient) ||  totalSupply() <= _minSupply) {
      return amount;
    }
    
    require(amount > 10000, "less than minimum transfer amount required");
    
    uint256 burnAmount;
    uint256 foundationAmount;
    uint256 poolAmountTotal = 0;
    uint256 poolAmount = 0;
    
    burnAmount = amount.mul(_burnRate).div(100);    
    if(rewardPools.length == 0) {
      foundationAmount = amount.mul(_foundationRate.add(_poolRate)).div(100);
    }else{
      foundationAmount = amount.mul(_foundationRate).div(100);    
      poolAmountTotal = amount.mul(_poolRate).div(100);
      poolAmount = poolAmountTotal.div(rewardPools.length);
    }
    
    uint256 leftSupply = totalSupply().sub(burnAmount).sub(poolAmountTotal).sub(foundationAmount);
    require(leftSupply >= _minSupply, "less than minimum supply required after transfer");
    
    uint256 sendAmount = amount.sub(burnAmount).sub(poolAmount).sub(foundationAmount);
    
    _burn(sender, burnAmount);
    _totalBurned = _totalBurned.add(burnAmount);
    
    _transfer(_msgSender(), foundation, foundationAmount);
    _totalFoundation = _totalFoundation.add(foundationAmount);
    
    for(uint i=0; i<rewardPools.length;i++){
      _transfer(_msgSender(), address(rewardPools[i]), poolAmount);
      
      require( rewardPools[i].addReward(poolAmount) );
    }
    _totalPooled = _totalPooled.add(poolAmountTotal);
        
    emit TransferFiltered(sendAmount, burnAmount, poolAmountTotal, foundationAmount);
    
    return sendAmount;
  }
  
  function transfer(address recipient, uint256 amount) public returns (bool) {
    uint256 _amount = _filter(_msgSender(), recipient, amount);
    return super.transfer(recipient, _amount);
  }

  function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
    uint256 _amount = _filter(sender, recipient, amount);
    return super.transferFrom(sender, recipient, _amount);
  }
  
  function setWhitelist(address account, uint8 flag) public onlyAdmin {
    address sender = _msgSender();
    
    flag = flag & 0x11;              // only two bits matter
    whitelist[account] = flag & 0x11; 
    
    emit WhitelistUpdated(sender, account, flag);
  }
  
  
  function setAdmin(address account, bool enable) public onlyAdmin {
    require(_msgSender() != account, "cannot admin yourself");
    _setAdmin(_msgSender(), account, enable);
  }
  
  function _setAdmin(address sender, address account, bool enable) private {    
    admins[account] = enable;
    
    uint8 flag = 0x00;
    if(enable) flag = 0x11;
    setWhitelist(account, flag);
    
    emit AdminUpdated(sender, account, enable);
  }
   
  function addRewardPool(address poolAddress) public onlyAdmin {
    address sender = _msgSender();
    
    IRewardPool pool = IRewardPool(poolAddress);
    rewardPools.push(pool);
    
    setWhitelist(poolAddress, 0x11);   // add to whitelist
    
    emit RewardPoolAdded(sender, poolAddress);
  }

  function totalBurned() public view returns(uint256){
    return _totalBurned;
  }
  
  function totalPooled() public view returns(uint256){
    return _totalPooled;
  }

  function totalFoundation() public view returns(uint256){
    return _totalFoundation;
  }
  
  function totalPools() public view returns(uint256){
    return rewardPools.length;
  }
     
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"enable","type":"bool"}],"name":"AdminUpdated","type":"event"},{"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":"admin","type":"address"},{"indexed":true,"internalType":"address","name":"pool","type":"address"}],"name":"RewardPoolAdded","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":"uint256","name":"send","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pools","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"foundation","type":"uint256"}],"name":"TransferFiltered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint8","name":"flag","type":"uint8"}],"name":"WhitelistUpdated","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"poolAddress","type":"address"}],"name":"addRewardPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"admins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"foundation","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardPools","outputs":[{"internalType":"contract IRewardPool","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"enable","type":"bool"}],"name":"setAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint8","name":"flag","type":"uint8"}],"name":"setWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalFoundation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalPooled","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalPools","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"}]

60806040526a1b4c0595a86aa1c10000006006556906fceeff6681b2a00000600755600060085560006009556000600a556006600b556005600c556001600d5573f7ca3d84b6f61eef26eb17942eaaa1ce6fa809f9601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000a157600080fd5b506040518060400160405280600981526020017f4d697169546f6b656e00000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f4d510000000000000000000000000000000000000000000000000000000000008152506012826003908051906020019062000128929190620006b3565b50816004908051906020019062000141929190620006b3565b5080600560006101000a81548160ff021916908360ff1602179055505050506200018362000174620001bb60201b60201c565b600654620001c360201b60201c565b620001b562000197620001bb60201b60201c565b620001a7620001bb60201b60201c565b60016200038d60201b60201c565b62000762565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b62000283816002546200047660201b6200196d1790919060201c565b600281905550620002e1816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546200047660201b6200196d1790919060201c565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060008090508115620003f557601190505b620004078382620004ff60201b60201c565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f671acea21add0a3dfc4603428dcda43a0fed320faec2aff0e2feed34225941f884604051808215151515815260200191505060405180910390a350505050565b600080828401905083811015620004f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600e600062000513620001bb60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16620005ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f63616c6c657220686173206e6f2061646d696e20726f6c65000000000000000081525060200191505060405180910390fd5b6000620005e0620001bb60201b60201c565b905060118216915060118216600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f3b4389267c29c0cef3e99493be58d3e88961abc26bcc65cc49a8374b48199f1584604051808260ff1660ff16815260200191505060405180910390a3505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620006f657805160ff191683800117855562000727565b8280016001018555821562000727579182015b828111156200072657825182559160200191906001019062000709565b5b5090506200073691906200073a565b5090565b6200075f91905b808211156200075b57600081600090555060010162000741565b5090565b90565b6124b180620007726000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80636ec21cc8116100b8578063a6c3b8e81161007c578063a6c3b8e81461069d578063a9059cbb146106e1578063ab3c7e5214610747578063d89135cd14610765578063dd62ed3e14610783578063fb6711a8146107fb57610142565b80636ec21cc8146104e057806370a08231146104fe57806395d89b41146105565780639b19251a146105d9578063a457c2d71461063757610142565b80633769c40b1161010a5780633769c40b146102f8578063395093511461031657806341fbb0501461037c578063429b62e5146103c657806346abf391146104225780634b0bddd21461049057610142565b806306fdde0314610147578063095ea7b3146101ca57806318160ddd1461023057806323b872dd1461024e578063313ce567146102d4575b600080fd5b61014f61084c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561018f578082015181840152602081019050610174565b50505050905090810190601f1680156101bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610216600480360360408110156101e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506108ee565b604051808215151515815260200191505060405180910390f35b61023861090c565b6040518082815260200191505060405180910390f35b6102ba6004803603606081101561026457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610916565b604051808215151515815260200191505060405180910390f35b6102dc61093b565b604051808260ff1660ff16815260200191505060405180910390f35b610300610952565b6040518082815260200191505060405180910390f35b6103626004803603604081101561032c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061095c565b604051808215151515815260200191505060405180910390f35b610384610a0f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610408600480360360208110156103dc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a35565b604051808215151515815260200191505060405180910390f35b61044e6004803603602081101561043857600080fd5b8101908080359060200190929190505050610a55565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104de600480360360408110156104a657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050610a91565b005b6104e8610c16565b6040518082815260200191505060405180910390f35b6105406004803603602081101561051457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c20565b6040518082815260200191505060405180910390f35b61055e610c68565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561059e578082015181840152602081019050610583565b50505050905090810190601f1680156105cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61061b600480360360208110156105ef57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d0a565b604051808260ff1660ff16815260200191505060405180910390f35b6106836004803603604081101561064d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d2a565b604051808215151515815260200191505060405180910390f35b6106df600480360360208110156106b357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610df7565b005b61072d600480360360408110156106f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f9e565b604051808215151515815260200191505060405180910390f35b61074f610fc8565b6040518082815260200191505060405180910390f35b61076d610fd5565b6040518082815260200191505060405180910390f35b6107e56004803603604081101561079957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fdf565b6040518082815260200191505060405180910390f35b61084a6004803603604081101561081157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff169060200190929190505050611066565b005b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108e45780601f106108b9576101008083540402835291602001916108e4565b820191906000526020600020905b8154815290600101906020018083116108c757829003601f168201915b5050505050905090565b60006109026108fb611209565b8484611211565b6001905092915050565b6000600254905090565b600080610924858585611408565b9050610931858583611894565b9150509392505050565b6000600560009054906101000a900460ff16905090565b6000600a54905090565b6000610a05610969611209565b84610a00856001600061097a611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461196d90919063ffffffff16565b611211565b6001905092915050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e6020528060005260406000206000915054906101000a900460ff1681565b60118181548110610a6257fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e6000610a9d611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b57576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f63616c6c657220686173206e6f2061646d696e20726f6c65000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff16610b76611209565b73ffffffffffffffffffffffffffffffffffffffff161415610c00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f63616e6e6f742061646d696e20796f757273656c66000000000000000000000081525060200191505060405180910390fd5b610c12610c0b611209565b83836119f5565b5050565b6000600954905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d005780601f10610cd557610100808354040283529160200191610d00565b820191906000526020600020905b815481529060010190602001808311610ce357829003601f168201915b5050505050905090565b600f6020528060005260406000206000915054906101000a900460ff1681565b6000610ded610d37611209565b84610de8856040518060600160405280602581526020016124586025913960016000610d61611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ad59092919063ffffffff16565b611211565b6001905092915050565b600e6000610e03611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ebd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f63616c6c657220686173206e6f2061646d696e20726f6c65000000000000000081525060200191505060405180910390fd5b6000610ec7611209565b9050600082905060118190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610f3f836011611066565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f3da6223e288f520b050e2371cd33bb2900ceb2b2fea3efae9b4838b972afef6060405160405180910390a3505050565b600080610fb3610fac611209565b8585611408565b9050610fbf8482611b95565b91505092915050565b6000601180549050905090565b6000600854905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600e6000611072611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661112c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f63616c6c657220686173206e6f2061646d696e20726f6c65000000000000000081525060200191505060405180910390fd5b6000611136611209565b905060118216915060118216600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f3b4389267c29c0cef3e99493be58d3e88961abc26bcc65cc49a8374b48199f1584604051808260ff1660ff16815260200191505060405180910390a3505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611297576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124346024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561131d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806123036022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600061141384611bb3565b80611423575061142283611c11565b5b80611437575060075461143461090c565b11155b156114445781905061188d565b612710821161149e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061240a602a913960400191505060405180910390fd5b600080600080905060008090506114d360646114c5600b5489611c6f90919063ffffffff16565b611cf590919063ffffffff16565b9350600060118054905014156115265761151f6064611511611502600c54600d5461196d90919063ffffffff16565b89611c6f90919063ffffffff16565b611cf590919063ffffffff16565b9250611595565b61154e6064611540600d5489611c6f90919063ffffffff16565b611cf590919063ffffffff16565b9250611578606461156a600c5489611c6f90919063ffffffff16565b611cf590919063ffffffff16565b915061159260118054905083611cf590919063ffffffff16565b90505b60006115d5846115c7856115b9896115ab61090c565b611d3f90919063ffffffff16565b611d3f90919063ffffffff16565b611d3f90919063ffffffff16565b9050600754811015611632576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806123946030913960400191505060405180910390fd5b600061166b8561165d8561164f8a8d611d3f90919063ffffffff16565b611d3f90919063ffffffff16565b611d3f90919063ffffffff16565b90506116778a87611d89565b61168c8660085461196d90919063ffffffff16565b6008819055506116c661169d611209565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687611f41565b6116db85600a5461196d90919063ffffffff16565b600a8190555060008090505b6011805490508110156118185761173d6116ff611209565b6011838154811061170c57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1686611f41565b6011818154811061174a57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166374de4ec4856040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156117c757600080fd5b505af11580156117db573d6000803e3d6000fd5b505050506040513d60208110156117f157600080fd5b810190808051906020019092919050505061180b57600080fd5b80806001019150506116e7565b5061182e8460095461196d90919063ffffffff16565b6009819055507ff284deeb18a8ad367d1a2b4d78b89ce395cd195b57bd87f345be2a006035f521818786886040518085815260200184815260200183815260200182815260200194505050505060405180910390a18096505050505050505b9392505050565b60006118a1848484611f41565b611962846118ad611209565b61195d8560405180606001604052806028815260200161236c60289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000611913611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ad59092919063ffffffff16565b611211565b600190509392505050565b6000808284019050838110156119eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060008090508115611a5c57601190505b611a668382611066565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f671acea21add0a3dfc4603428dcda43a0fed320faec2aff0e2feed34225941f884604051808215151515815260200191505060405180910390a350505050565b6000838311158290611b82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b47578082015181840152602081019050611b2c565b50505050905090810190601f168015611b745780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000611ba9611ba2611209565b8484611f41565b6001905092915050565b6000601080600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161660ff16149050919050565b6000600180600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161660ff16149050919050565b600080831415611c825760009050611cef565b6000828402905082848281611c9357fe5b0414611cea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061234b6021913960400191505060405180910390fd5b809150505b92915050565b6000611d3783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121f7565b905092915050565b6000611d8183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ad5565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e0f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806123c46021913960400191505060405180910390fd5b611e7a816040518060600160405280602281526020016122e1602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ad59092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ed181600254611d3f90919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611fc7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806123e56025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561204d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806122be6023913960400191505060405180910390fd5b6120b881604051806060016040528060268152602001612325602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ad59092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061214b816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461196d90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b600080831182906122a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561226857808201518184015260208101905061224d565b50505050905090810190601f1680156122955780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816122af57fe5b04905080915050939250505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63656c657373207468616e206d696e696d756d20737570706c79207265717569726564206166746572207472616e7366657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573736c657373207468616e206d696e696d756d207472616e7366657220616d6f756e7420726571756972656445524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820f6c260a736536c2f320cf637800801c529363674486ec96179c914d7cd23f3c964736f6c63430005100032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80636ec21cc8116100b8578063a6c3b8e81161007c578063a6c3b8e81461069d578063a9059cbb146106e1578063ab3c7e5214610747578063d89135cd14610765578063dd62ed3e14610783578063fb6711a8146107fb57610142565b80636ec21cc8146104e057806370a08231146104fe57806395d89b41146105565780639b19251a146105d9578063a457c2d71461063757610142565b80633769c40b1161010a5780633769c40b146102f8578063395093511461031657806341fbb0501461037c578063429b62e5146103c657806346abf391146104225780634b0bddd21461049057610142565b806306fdde0314610147578063095ea7b3146101ca57806318160ddd1461023057806323b872dd1461024e578063313ce567146102d4575b600080fd5b61014f61084c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561018f578082015181840152602081019050610174565b50505050905090810190601f1680156101bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610216600480360360408110156101e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506108ee565b604051808215151515815260200191505060405180910390f35b61023861090c565b6040518082815260200191505060405180910390f35b6102ba6004803603606081101561026457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610916565b604051808215151515815260200191505060405180910390f35b6102dc61093b565b604051808260ff1660ff16815260200191505060405180910390f35b610300610952565b6040518082815260200191505060405180910390f35b6103626004803603604081101561032c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061095c565b604051808215151515815260200191505060405180910390f35b610384610a0f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610408600480360360208110156103dc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a35565b604051808215151515815260200191505060405180910390f35b61044e6004803603602081101561043857600080fd5b8101908080359060200190929190505050610a55565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104de600480360360408110156104a657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050610a91565b005b6104e8610c16565b6040518082815260200191505060405180910390f35b6105406004803603602081101561051457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c20565b6040518082815260200191505060405180910390f35b61055e610c68565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561059e578082015181840152602081019050610583565b50505050905090810190601f1680156105cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61061b600480360360208110156105ef57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d0a565b604051808260ff1660ff16815260200191505060405180910390f35b6106836004803603604081101561064d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d2a565b604051808215151515815260200191505060405180910390f35b6106df600480360360208110156106b357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610df7565b005b61072d600480360360408110156106f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f9e565b604051808215151515815260200191505060405180910390f35b61074f610fc8565b6040518082815260200191505060405180910390f35b61076d610fd5565b6040518082815260200191505060405180910390f35b6107e56004803603604081101561079957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fdf565b6040518082815260200191505060405180910390f35b61084a6004803603604081101561081157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff169060200190929190505050611066565b005b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108e45780601f106108b9576101008083540402835291602001916108e4565b820191906000526020600020905b8154815290600101906020018083116108c757829003601f168201915b5050505050905090565b60006109026108fb611209565b8484611211565b6001905092915050565b6000600254905090565b600080610924858585611408565b9050610931858583611894565b9150509392505050565b6000600560009054906101000a900460ff16905090565b6000600a54905090565b6000610a05610969611209565b84610a00856001600061097a611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461196d90919063ffffffff16565b611211565b6001905092915050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e6020528060005260406000206000915054906101000a900460ff1681565b60118181548110610a6257fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e6000610a9d611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b57576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f63616c6c657220686173206e6f2061646d696e20726f6c65000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff16610b76611209565b73ffffffffffffffffffffffffffffffffffffffff161415610c00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f63616e6e6f742061646d696e20796f757273656c66000000000000000000000081525060200191505060405180910390fd5b610c12610c0b611209565b83836119f5565b5050565b6000600954905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d005780601f10610cd557610100808354040283529160200191610d00565b820191906000526020600020905b815481529060010190602001808311610ce357829003601f168201915b5050505050905090565b600f6020528060005260406000206000915054906101000a900460ff1681565b6000610ded610d37611209565b84610de8856040518060600160405280602581526020016124586025913960016000610d61611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ad59092919063ffffffff16565b611211565b6001905092915050565b600e6000610e03611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ebd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f63616c6c657220686173206e6f2061646d696e20726f6c65000000000000000081525060200191505060405180910390fd5b6000610ec7611209565b9050600082905060118190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610f3f836011611066565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f3da6223e288f520b050e2371cd33bb2900ceb2b2fea3efae9b4838b972afef6060405160405180910390a3505050565b600080610fb3610fac611209565b8585611408565b9050610fbf8482611b95565b91505092915050565b6000601180549050905090565b6000600854905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600e6000611072611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661112c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f63616c6c657220686173206e6f2061646d696e20726f6c65000000000000000081525060200191505060405180910390fd5b6000611136611209565b905060118216915060118216600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f3b4389267c29c0cef3e99493be58d3e88961abc26bcc65cc49a8374b48199f1584604051808260ff1660ff16815260200191505060405180910390a3505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611297576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124346024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561131d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806123036022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600061141384611bb3565b80611423575061142283611c11565b5b80611437575060075461143461090c565b11155b156114445781905061188d565b612710821161149e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061240a602a913960400191505060405180910390fd5b600080600080905060008090506114d360646114c5600b5489611c6f90919063ffffffff16565b611cf590919063ffffffff16565b9350600060118054905014156115265761151f6064611511611502600c54600d5461196d90919063ffffffff16565b89611c6f90919063ffffffff16565b611cf590919063ffffffff16565b9250611595565b61154e6064611540600d5489611c6f90919063ffffffff16565b611cf590919063ffffffff16565b9250611578606461156a600c5489611c6f90919063ffffffff16565b611cf590919063ffffffff16565b915061159260118054905083611cf590919063ffffffff16565b90505b60006115d5846115c7856115b9896115ab61090c565b611d3f90919063ffffffff16565b611d3f90919063ffffffff16565b611d3f90919063ffffffff16565b9050600754811015611632576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806123946030913960400191505060405180910390fd5b600061166b8561165d8561164f8a8d611d3f90919063ffffffff16565b611d3f90919063ffffffff16565b611d3f90919063ffffffff16565b90506116778a87611d89565b61168c8660085461196d90919063ffffffff16565b6008819055506116c661169d611209565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687611f41565b6116db85600a5461196d90919063ffffffff16565b600a8190555060008090505b6011805490508110156118185761173d6116ff611209565b6011838154811061170c57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1686611f41565b6011818154811061174a57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166374de4ec4856040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156117c757600080fd5b505af11580156117db573d6000803e3d6000fd5b505050506040513d60208110156117f157600080fd5b810190808051906020019092919050505061180b57600080fd5b80806001019150506116e7565b5061182e8460095461196d90919063ffffffff16565b6009819055507ff284deeb18a8ad367d1a2b4d78b89ce395cd195b57bd87f345be2a006035f521818786886040518085815260200184815260200183815260200182815260200194505050505060405180910390a18096505050505050505b9392505050565b60006118a1848484611f41565b611962846118ad611209565b61195d8560405180606001604052806028815260200161236c60289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000611913611209565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ad59092919063ffffffff16565b611211565b600190509392505050565b6000808284019050838110156119eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060008090508115611a5c57601190505b611a668382611066565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f671acea21add0a3dfc4603428dcda43a0fed320faec2aff0e2feed34225941f884604051808215151515815260200191505060405180910390a350505050565b6000838311158290611b82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b47578082015181840152602081019050611b2c565b50505050905090810190601f168015611b745780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000611ba9611ba2611209565b8484611f41565b6001905092915050565b6000601080600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161660ff16149050919050565b6000600180600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161660ff16149050919050565b600080831415611c825760009050611cef565b6000828402905082848281611c9357fe5b0414611cea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061234b6021913960400191505060405180910390fd5b809150505b92915050565b6000611d3783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121f7565b905092915050565b6000611d8183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ad5565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e0f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806123c46021913960400191505060405180910390fd5b611e7a816040518060600160405280602281526020016122e1602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ad59092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ed181600254611d3f90919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611fc7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806123e56025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561204d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806122be6023913960400191505060405180910390fd5b6120b881604051806060016040528060268152602001612325602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ad59092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061214b816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461196d90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b600080831182906122a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561226857808201518184015260208101905061224d565b50505050905090810190601f1680156122955780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816122af57fe5b04905080915050939250505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63656c657373207468616e206d696e696d756d20737570706c79207265717569726564206166746572207472616e7366657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573736c657373207468616e206d696e696d756d207472616e7366657220616d6f756e7420726571756972656445524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820f6c260a736536c2f320cf637800801c529363674486ec96179c914d7cd23f3c964736f6c63430005100032

Deployed Bytecode Sourcemap

19218:5206:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19218:5206:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18183:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;18183:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11822:152;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;11822:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;10843:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22757:220;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22757:220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19035:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24227:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13159:210;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13159:210:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19869:70;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19776:39;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19776:39:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19944:32;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19944:32:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23272:182;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23272:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24138:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;10997:110;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;10997:110:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18385:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;18385:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19820:43;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19820:43:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;13872:261;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13872:261:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23733:308;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23733:308:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;22557:194;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22557:194:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24326:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24047:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11541:134;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;11541:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22985:275;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22985:275:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;18183:83;18220:13;18253:5;18246:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18183:83;:::o;11822:152::-;11888:4;11905:39;11914:12;:10;:12::i;:::-;11928:7;11937:6;11905:8;:39::i;:::-;11962:4;11955:11;;11822:152;;;;:::o;10843:91::-;10887:7;10914:12;;10907:19;;10843:91;:::o;22757:220::-;22846:4;22859:15;22877:34;22885:6;22893:9;22904:6;22877:7;:34::i;:::-;22859:52;;22925:46;22944:6;22952:9;22963:7;22925:18;:46::i;:::-;22918:53;;;22757:220;;;;;:::o;19035:83::-;19076:5;19101:9;;;;;;;;;;;19094:16;;19035:83;:::o;24227:91::-;24274:7;24296:16;;24289:23;;24227:91;:::o;13159:210::-;13239:4;13256:83;13265:12;:10;:12::i;:::-;13279:7;13288:50;13327:10;13288:11;:25;13300:12;:10;:12::i;:::-;13288:25;;;;;;;;;;;;;;;:34;13314:7;13288:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;13256:8;:83::i;:::-;13357:4;13350:11;;13159:210;;;;:::o;19869:70::-;;;;;;;;;;;;;:::o;19776:39::-;;;;;;;;;;;;;;;;;;;;;;:::o;19944:32::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;23272:182::-;20530:6;:20;20537:12;:10;:12::i;:::-;20530:20;;;;;;;;;;;;;;;;;;;;;;;;;20522:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23368:7;23352:23;;:12;:10;:12::i;:::-;:23;;;;23344:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23408:40;23418:12;:10;:12::i;:::-;23432:7;23441:6;23408:9;:40::i;:::-;23272:182;;:::o;24138:83::-;24181:7;24203:12;;24196:19;;24138:83;:::o;10997:110::-;11054:7;11081:9;:18;11091:7;11081:18;;;;;;;;;;;;;;;;11074:25;;10997:110;;;:::o;18385:87::-;18424:13;18457:7;18450:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18385:87;:::o;19820:43::-;;;;;;;;;;;;;;;;;;;;;;:::o;13872:261::-;13957:4;13974:129;13983:12;:10;:12::i;:::-;13997:7;14006:96;14045:15;14006:96;;;;;;;;;;;;;;;;;:11;:25;14018:12;:10;:12::i;:::-;14006:25;;;;;;;;;;;;;;;:34;14032:7;14006:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;13974:8;:129::i;:::-;14121:4;14114:11;;13872:261;;;;:::o;23733:308::-;20530:6;:20;20537:12;:10;:12::i;:::-;20530:20;;;;;;;;;;;;;;;;;;;;;;;;;20522:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23801:14;23818:12;:10;:12::i;:::-;23801:29;;23843:16;23874:11;23843:43;;23893:11;23910:4;23893:22;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;23893:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23928:31;23941:11;23954:4;23928:12;:31::i;:::-;24023:11;23999:36;;24015:6;23999:36;;;;;;;;;;;;20586:1;;23733:308;:::o;22557:194::-;22626:4;22639:15;22657:40;22665:12;:10;:12::i;:::-;22679:9;22690:6;22657:7;:40::i;:::-;22639:58;;22711:34;22726:9;22737:7;22711:14;:34::i;:::-;22704:41;;;22557:194;;;;:::o;24326:88::-;24368:7;24390:11;:18;;;;24383:25;;24326:88;:::o;24047:83::-;24090:7;24112:12;;24105:19;;24047:83;:::o;11541:134::-;11613:7;11640:11;:18;11652:5;11640:18;;;;;;;;;;;;;;;:27;11659:7;11640:27;;;;;;;;;;;;;;;;11633:34;;11541:134;;;;:::o;22985:275::-;20530:6;:20;20537:12;:10;:12::i;:::-;20530:20;;;;;;;;;;;;;;;;;;;;;;;;;20522:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23060:14;23077:12;:10;:12::i;:::-;23060:29;;23116:4;23109;:11;23102:18;;23192:4;23185;:11;23164:9;:18;23174:7;23164:18;;;;;;;;;;;;;;;;:32;;;;;;;;;;;;;;;;;;23240:7;23215:39;;23232:6;23215:39;;;23249:4;23215:39;;;;;;;;;;;;;;;;;;;;;;20586:1;22985:275;;:::o;808:98::-;853:15;888:10;881:17;;808:98;:::o;16803:338::-;16914:1;16897:19;;:5;:19;;;;16889:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16995:1;16976:21;;:7;:21;;;;16968:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17079:6;17049:11;:18;17061:5;17049:18;;;;;;;;;;;;;;;:27;17068:7;17049:27;;;;;;;;;;;;;;;:36;;;;17117:7;17101:32;;17110:5;17101:32;;;17126:6;17101:32;;;;;;;;;;;;;;;;;;16803:338;;;:::o;20852:1697::-;20936:7;20962:21;20976:6;20962:13;:21::i;:::-;:48;;;;20987:23;21000:9;20987:12;:23::i;:::-;20962:48;:80;;;;21032:10;;21015:13;:11;:13::i;:::-;:27;;20962:80;20958:116;;;21060:6;21053:13;;;;20958:116;21103:5;21094:6;:14;21086:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21168:18;21193:24;21224:23;21250:1;21224:27;;21258:18;21279:1;21258:22;;21306:30;21332:3;21306:21;21317:9;;21306:6;:10;;:21;;;;:::i;:::-;:25;;:30;;;;:::i;:::-;21293:43;;21372:1;21350:11;:18;;;;:23;21347:313;;;21403:51;21450:3;21403:42;21414:30;21434:9;;21414:15;;:19;;:30;;;;:::i;:::-;21403:6;:10;;:42;;;;:::i;:::-;:46;;:51;;;;:::i;:::-;21384:70;;21347:313;;;21494:36;21526:3;21494:27;21505:15;;21494:6;:10;;:27;;;;:::i;:::-;:31;;:36;;;;:::i;:::-;21475:55;;21561:30;21587:3;21561:21;21572:9;;21561:6;:10;;:21;;;;:::i;:::-;:25;;:30;;;;:::i;:::-;21543:48;;21613:39;21633:11;:18;;;;21613:15;:19;;:39;;;;:::i;:::-;21600:52;;21347:313;21672:18;21693:72;21748:16;21693:50;21727:15;21693:29;21711:10;21693:13;:11;:13::i;:::-;:17;;:29;;;;:::i;:::-;:33;;:50;;;;:::i;:::-;:54;;:72;;;;:::i;:::-;21672:93;;21794:10;;21780;:24;;21772:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21870:18;21891:60;21934:16;21891:38;21918:10;21891:22;21902:10;21891:6;:10;;:22;;;;:::i;:::-;:26;;:38;;;;:::i;:::-;:42;;:60;;;;:::i;:::-;21870:81;;21964:25;21970:6;21978:10;21964:5;:25::i;:::-;22011:28;22028:10;22011:12;;:16;;:28;;;;:::i;:::-;21996:12;:43;;;;22052:53;22062:12;:10;:12::i;:::-;22076:10;;;;;;;;;;;22088:16;22052:9;:53::i;:::-;22131:38;22152:16;22131;;:20;;:38;;;;:::i;:::-;22112:16;:57;;;;22186:6;22193:1;22186:8;;22182:180;22198:11;:18;;;;22196:1;:20;22182:180;;;22230:60;22240:12;:10;:12::i;:::-;22262:11;22274:1;22262:14;;;;;;;;;;;;;;;;;;;;;;;;;22279:10;22230:9;:60::i;:::-;22316:11;22328:1;22316:14;;;;;;;;;;;;;;;;;;;;;;;;;:24;;;22341:10;22316:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22316:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;22316:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22316:36:0;;;;;;;;;;;;;;;;22307:47;;;;;;22217:3;;;;;;;22182:180;;;;22383:33;22400:15;22383:12;;:16;;:33;;;;:::i;:::-;22368:12;:48;;;;22438:75;22455:10;22467;22479:15;22496:16;22438:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22533:10;22526:17;;;;;;;;20852:1697;;;;;;:::o;12446:304::-;12535:4;12552:36;12562:6;12570:9;12581:6;12552:9;:36::i;:::-;12599:121;12608:6;12616:12;:10;:12::i;:::-;12630:89;12668:6;12630:89;;;;;;;;;;;;;;;;;:11;:19;12642:6;12630:19;;;;;;;;;;;;;;;:33;12650:12;:10;:12::i;:::-;12630:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;12599:8;:121::i;:::-;12738:4;12731:11;;12446:304;;;;;:::o;4768:181::-;4826:7;4846:9;4862:1;4858;:5;4846:17;;4887:1;4882;:6;;4874:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4940:1;4933:8;;;4768:181;;;;:::o;23462:262::-;23564:6;23546;:15;23553:7;23546:15;;;;;;;;;;;;;;;;:24;;;;;;;;;;;;;;;;;;23583:10;23596:4;23583:17;;23610:6;23607:22;;;23625:4;23618:11;;23607:22;23636:27;23649:7;23658:4;23636:12;:27::i;:::-;23702:7;23681:37;;23694:6;23681:37;;;23711:6;23681:37;;;;;;;;;;;;;;;;;;;;;;23462:262;;;;:::o;5697:192::-;5783:7;5816:1;5811;:6;;5819:12;5803:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;5803:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5843:9;5859:1;5855;:5;5843:17;;5880:1;5873:8;;;5697:192;;;;;:::o;11320:158::-;11389:4;11406:42;11416:12;:10;:12::i;:::-;11430:9;11441:6;11406:9;:42::i;:::-;11466:4;11459:11;;11320:158;;;;:::o;20601:119::-;20662:4;20710;20702;20681:9;:18;20691:7;20681:18;;;;;;;;;;;;;;;;;;;;;;;;;:25;:33;;;20674:40;;20601:119;;;:::o;20726:118::-;20786:4;20834;20826;20805:9;:18;20815:7;20805:18;;;;;;;;;;;;;;;;;;;;;;;;;:25;:33;;;20798:40;;20726:118;;;:::o;6140:471::-;6198:7;6448:1;6443;:6;6439:47;;;6473:1;6466:8;;;;6439:47;6498:9;6514:1;6510;:5;6498:17;;6543:1;6538;6534;:5;;;;;;:10;6526:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6602:1;6595:8;;;6140:471;;;;;:::o;7079:132::-;7137:7;7164:39;7168:1;7171;7164:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;7157:46;;7079:132;;;;:::o;5224:136::-;5282:7;5309:43;5313:1;5316;5309:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;5302:50;;5224:136;;;;:::o;16015:348::-;16110:1;16091:21;;:7;:21;;;;16083:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16184:68;16207:6;16184:68;;;;;;;;;;;;;;;;;:9;:18;16194:7;16184:18;;;;;;;;;;;;;;;;:22;;:68;;;;;:::i;:::-;16163:9;:18;16173:7;16163:18;;;;;;;;;;;;;;;:89;;;;16278:24;16295:6;16278:12;;:16;;:24;;;;:::i;:::-;16263:12;:39;;;;16344:1;16318:37;;16327:7;16318:37;;;16348:6;16318:37;;;;;;;;;;;;;;;;;;16015:348;;:::o;14623:471::-;14739:1;14721:20;;:6;:20;;;;14713:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14823:1;14802:23;;:9;:23;;;;14794:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14898;14920:6;14898:71;;;;;;;;;;;;;;;;;:9;:17;14908:6;14898:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;14878:9;:17;14888:6;14878:17;;;;;;;;;;;;;;;:91;;;;15003:32;15028:6;15003:9;:20;15013:9;15003:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;14980:9;:20;14990:9;14980:20;;;;;;;;;;;;;;;:55;;;;15068:9;15051:35;;15060:6;15051:35;;;15079:6;15051:35;;;;;;;;;;;;;;;;;;14623:471;;;:::o;7741:345::-;7827:7;7926:1;7922;:5;7929:12;7914:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;7914:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7953:9;7969:1;7965;:5;;;;;;7953:17;;8077:1;8070:8;;;7741:345;;;;;:::o

Swarm Source

bzzr://f6c260a736536c2f320cf637800801c529363674486ec96179c914d7cd23f3c9

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

OVERVIEW

MiQiSwap decentralized exchange is a cross-chain decentralized exchange protocol that connects various public chains.

Loading...
Loading
[ Download: CSV Export  ]

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