ETH Price: $3,128.83 (+0.44%)
Gas: 3 Gwei

Contract

0xb52E51b77735B4b18CA1EeFfBC33d07748d1Bf13
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040197282492024-04-24 22:36:3524 days ago1713998195IN
 Create: AskoToken
0 ETH0.013575027.12886793

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AskoToken

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 500 runs

Other Settings:
london EvmVersion
File 1 of 1 : AskoToken.sol
/**
 *Submitted for verification at Etherscan.io on 2022-11-02
*/

pragma solidity ^0.8.0;


/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
contract Initializable {

  /**
   * @dev Indicates that the contract has been initialized.
   */
  bool private initialized;

  /**
   * @dev Indicates that the contract is in the process of being initialized.
   */
  bool private initializing;

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      initialized = true;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  /// @dev Returns true if and only if the function is running in the constructor
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    address self = address(this);
    uint256 cs;
    assembly { cs := extcodesize(self) }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}


/*
 * @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 is Initializable {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return payable(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 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 Initializable, 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 virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override 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 virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override 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 virtual override 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 virtual 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 virtual 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"));
    }

    uint256[50] private ______gap;
}


/**
 * @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 Initializable, Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
    }

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

    uint256[50] private ______gap;
}


/**
 * @dev Optional functions from the ERC20 standard.
 */
abstract contract ERC20Detailed is Initializable, 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.
     */
    function initialize(string memory name, string memory symbol, uint8 decimals) public virtual initializer {
        _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;
    }

    uint256[50] private ______gap;
}


/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}


contract MinterRole is Initializable, Context {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    function initialize(address sender) public virtual initializer {
        if (!isMinter(sender)) {
            _addMinter(sender);
        }
    }

    modifier onlyMinter() {
        require(isMinter(_msgSender()), "MinterRole: caller does not have the Minter role");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public onlyMinter {
        _addMinter(account);
    }

    function renounceMinter() public {
        _removeMinter(_msgSender());
    }

    function _addMinter(address account) internal {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal {
        _minters.remove(account);
        emit MinterRemoved(account);
    }

    uint256[50] private ______gap;
}


/**
 * @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 Initializable, ERC20, MinterRole {
    function initialize(address sender) public virtual override initializer {
        MinterRole.initialize(sender);
    }

    /**
     * @dev See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the {MinterRole}.
     */
    function mint(address account, uint256 amount) public virtual onlyMinter returns (bool) {
        _mint(account, amount);
        return true;
    }

    uint256[50] private ______gap;
}


contract PauserRole is Initializable, Context {
    using Roles for Roles.Role;

    event PauserAdded(address indexed account);
    event PauserRemoved(address indexed account);

    Roles.Role private _pausers;

    function initialize(address sender) public virtual initializer {
        if (!isPauser(sender)) {
            _addPauser(sender);
        }
    }

    modifier onlyPauser() {
        require(isPauser(_msgSender()), "PauserRole: caller does not have the Pauser role");
        _;
    }

    function isPauser(address account) public view returns (bool) {
        return _pausers.has(account);
    }

    function addPauser(address account) public onlyPauser {
        _addPauser(account);
    }

    function renouncePauser() public {
        _removePauser(_msgSender());
    }

    function _addPauser(address account) internal {
        _pausers.add(account);
        emit PauserAdded(account);
    }

    function _removePauser(address account) internal {
        _pausers.remove(account);
        emit PauserRemoved(account);
    }

    uint256[50] private ______gap;
}


/**
 * @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 Initializable, Context, PauserRole {
    /**
     * @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.
     */
    function initialize(address sender) public virtual override initializer {
        PauserRole.initialize(sender);

        _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 onlyPauser whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

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

    uint256[50] private ______gap;
}


/**
 * @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 Initializable, ERC20, Pausable {
    function initialize(address sender) public virtual override initializer {
        Pausable.initialize(sender);
    }

    function transfer(address to, uint256 value) public virtual override whenNotPaused returns (bool) {
        return super.transfer(to, value);
    }

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

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

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

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

    uint256[50] private ______gap;
}


/**
 * @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 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 aplied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Initializable, Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function initialize(address sender) public virtual initializer {
        _owner = 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 _msgSender() == _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;
    }

    uint256[50] private ______gap;
}


library BasisPoints {
    using SafeMath for uint;

    uint constant private BASIS_POINTS = 10000;

    function mulBP(uint amt, uint bp) internal pure returns (uint) {
        if (amt == 0) return 0;
        return amt.mul(bp).div(BASIS_POINTS);
    }

    function addBP(uint amt, uint bp) internal pure returns (uint) {
        if (amt == 0) return 0;
        if (bp == 0) return amt;
        return amt.add(mulBP(amt, bp));
    }

    function subBP(uint amt, uint bp) internal pure returns (uint) {
        if (amt == 0) return 0;
        if (bp == 0) return amt;
        return amt.sub(mulBP(amt, bp));
    }
}


interface IStakeHandler {
    function handleStake(address staker, uint stakerDeltaValue, uint stakerFinalValue) external;
    function handleUnstake(address staker, uint stakerDeltaValue, uint stakerFinalValue) external;
}


contract AskoStaking is Initializable, Ownable {
    using BasisPoints for uint;
    using SafeMath for uint;

    uint256 constant internal DISTRIBUTION_MULTIPLIER = 2 ** 64;

    uint public stakingTaxBP;
    uint public unstakingTaxBP;
    IERC20 private askoToken;

    mapping(address => uint) public stakeValue;
    mapping(address => int) private stakerPayouts;

    uint public totalDistributions;
    uint public totalStaked;
    uint public totalStakers;
    uint private profitPerShare;
    uint private emptyStakeTokens; //These are tokens given to the contract when there are no stakers.

    IStakeHandler[] public stakeHandlers;
    uint public startTime;

    event OnDistribute(address sender, uint amountSent);
    event OnStake(address sender, uint amount, uint tax);
    event OnUnstake(address sender, uint amount, uint tax);
    event OnReinvest(address sender, uint amount, uint tax);
    event OnWithdraw(address sender, uint amount);

    modifier onlyAskoToken {
        require(msg.sender == address(askoToken), "Can only be called by AskoToken contract.");
        _;
    }

    modifier whenStakingActive {
        require(startTime != 0 && block.timestamp > startTime, "Staking not yet started.");
        _;
    }

    function initialize(
        uint _stakingTaxBP,
        uint _ustakingTaxBP,
        address owner,
        IERC20 _askoToken
    ) public initializer {
        Ownable.initialize(msg.sender);
        stakingTaxBP = _stakingTaxBP;
        unstakingTaxBP = _ustakingTaxBP;
        askoToken = _askoToken;
        //Due to issue in oz testing suite, the msg.sender might not be owner
        _transferOwnership(owner);
    }

    function stake(uint amount) public whenStakingActive {
        require(amount >= 1e18, "Must stake at least one ASKO.");
        require(askoToken.balanceOf(msg.sender) >= amount, "Cannot stake more ASKO than you hold unstaked.");
        if (stakeValue[msg.sender] == 0) totalStakers = totalStakers.add(1);
        uint tax = _addStake(amount);
        require(askoToken.transferFrom(msg.sender, address(this), amount), "Stake failed due to failed transfer.");
        emit OnStake(msg.sender, amount, tax);
    }

    function unstake(uint amount) public whenStakingActive {
        require(amount >= 1e18, "Must unstake at least one ASKO.");
        require(stakeValue[msg.sender] >= amount, "Cannot unstake more ASKO than you have staked.");
        uint tax = findTaxAmount(amount, unstakingTaxBP);
        uint earnings = amount.sub(tax);
        if (stakeValue[msg.sender] == amount) totalStakers = totalStakers.sub(1);
        totalStaked = totalStaked.sub(amount);
        stakeValue[msg.sender] = stakeValue[msg.sender].sub(amount);
        uint payout = profitPerShare.mul(amount).add(tax.mul(DISTRIBUTION_MULTIPLIER));
        stakerPayouts[msg.sender] = stakerPayouts[msg.sender] - uintToInt(payout);
        for (uint i=0; i < stakeHandlers.length; i++) {
            stakeHandlers[i].handleUnstake(msg.sender, amount, stakeValue[msg.sender]);
        }
        _increaseProfitPerShare(tax);
        require(askoToken.transferFrom(address(this), msg.sender, earnings), "Unstake failed due to failed transfer.");
        emit OnUnstake(msg.sender, amount, tax);
    }

    function withdraw(uint amount) public whenStakingActive {
        require(dividendsOf(msg.sender) >= amount, "Cannot withdraw more dividends than you have earned.");
        stakerPayouts[msg.sender] = stakerPayouts[msg.sender] + uintToInt(amount.mul(DISTRIBUTION_MULTIPLIER));
        askoToken.transfer(msg.sender, amount);
        emit OnWithdraw(msg.sender, amount);
    }

    function reinvest(uint amount) public whenStakingActive {
        require(dividendsOf(msg.sender) >= amount, "Cannot reinvest more dividends than you have earned.");
        uint payout = amount.mul(DISTRIBUTION_MULTIPLIER);
        stakerPayouts[msg.sender] = stakerPayouts[msg.sender] + uintToInt(payout);
        uint tax = _addStake(amount);
        emit OnReinvest(msg.sender, amount, tax);
    }

    function distribute(uint amount) public {
        require(askoToken.balanceOf(msg.sender) >= amount, "Cannot distribute more ASKO than you hold unstaked.");
        totalDistributions = totalDistributions.add(amount);
        _increaseProfitPerShare(amount);
        require(
            askoToken.transferFrom(msg.sender, address(this), amount),
            "Distribution failed due to failed transfer."
        );
        emit OnDistribute(msg.sender, amount);
    }

    function handleTaxDistribution(uint amount) public onlyAskoToken {
        totalDistributions = totalDistributions.add(amount);
        _increaseProfitPerShare(amount);
        emit OnDistribute(msg.sender, amount);
    }

    function dividendsOf(address staker) public view returns (uint) {
        return uint(uintToInt(profitPerShare.mul(stakeValue[staker])) - stakerPayouts[staker])
            .div(DISTRIBUTION_MULTIPLIER);
    }

    function findTaxAmount(uint value, uint taxBP) public pure returns (uint) {
        return value.mulBP(taxBP);
    }

    function numberStakeHandlersRegistered() public view returns (uint) {
        return stakeHandlers.length;
    }

    function registerStakeHandler(IStakeHandler sc) public onlyOwner {
        stakeHandlers.push(sc);
    }

    function unregisterStakeHandler(uint index) public onlyOwner {
        IStakeHandler sc = stakeHandlers[stakeHandlers.length-1];
        stakeHandlers.pop();
        stakeHandlers[index] = sc;
    }

    function setStakingBP(uint valueBP) public onlyOwner {
        require(valueBP < 10000, "Tax connot be over 100% (10000 BP)");
        stakingTaxBP = valueBP;
    }

    function setUnstakingBP(uint valueBP) public onlyOwner {
        require(valueBP < 10000, "Tax connot be over 100% (10000 BP)");
        unstakingTaxBP = valueBP;
    }

    function setStartTime(uint _startTime) public onlyOwner {
        startTime = _startTime;
    }

    function uintToInt(uint val) internal pure returns (int) {
        return int(val);
    }

    function _addStake(uint amount) internal returns (uint tax) {
        tax = findTaxAmount(amount, stakingTaxBP);
        uint stakeAmount = amount.sub(tax);
        totalStaked = totalStaked.add(stakeAmount);
        stakeValue[msg.sender] = stakeValue[msg.sender].add(stakeAmount);
        for (uint i=0; i < stakeHandlers.length; i++) {
            stakeHandlers[i].handleStake(msg.sender, stakeAmount, stakeValue[msg.sender]);
        }
        uint payout = profitPerShare.mul(stakeAmount);
        stakerPayouts[msg.sender] = stakerPayouts[msg.sender] + uintToInt(payout);
        _increaseProfitPerShare(tax);
    }

    function _increaseProfitPerShare(uint amount) internal {
        if (totalStaked != 0) {
            if (emptyStakeTokens != 0) {
                amount = amount.add(emptyStakeTokens);
                emptyStakeTokens = 0;
            }
            profitPerShare = profitPerShare.add(amount.mul(DISTRIBUTION_MULTIPLIER).div(totalStaked));
        } else {
            emptyStakeTokens = emptyStakeTokens.add(amount);
        }
    }

}



contract AskoToken is Initializable, ERC20Burnable, ERC20Mintable, ERC20Pausable, ERC20Detailed, Ownable {
    using BasisPoints for uint;
    using SafeMath for uint;

    uint public taxBP;
    bool public isTaxActive;
    AskoStaking private askoStaking;
    mapping(address => bool) private trustedContracts;
    mapping(address => bool) public taxExempt;

    function initialize(address) public virtual override(ERC20Mintable, ERC20Pausable, Ownable) initializer {
        revert("already initialized");
    }

    function setTaxExemptStatus(address account, bool status) public onlyOwner {
        taxExempt[account] = status;
    }

    function findTaxAmount(uint value) public view returns (uint) {
        return value.mulBP(taxBP);
    }

    function transfer(address recipient, uint256 amount) public override(ERC20, ERC20Pausable, IERC20) returns (bool) {
        (isTaxActive && !taxExempt[msg.sender] && !taxExempt[recipient]) ?
            _transferWithTax(msg.sender, recipient, amount) :
            _transfer(msg.sender, recipient, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public override(ERC20, ERC20Pausable, IERC20) returns (bool) {
        (isTaxActive && !taxExempt[sender] && !taxExempt[recipient]) ?
            _transferWithTax(sender, recipient, amount) :
            _transfer(sender, recipient, amount);
        if (trustedContracts[msg.sender]) return true;
        approve
        (
            msg.sender,
            allowance(
                sender,
                msg.sender
            ).sub(amount, "Transfer amount exceeds allowance")
        );
        return true;
    }

    function setTaxRate(uint valueBP) public onlyOwner {
        require(valueBP < 10000, "Tax connot be over 100% (10000 BP)");
        taxBP = valueBP;
    }

    function setIsTaxActive(bool value) public onlyOwner {
        isTaxActive = value;
    }

    function addTrustedContract(address contractAddress) public onlyOwner {
        trustedContracts[contractAddress] = true;
    }

    function removeTrustedContract(address contractAddress) public onlyOwner {
        trustedContracts[contractAddress] = false;
    }

    function _transferWithTax(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");

        uint256 tokensToTax = findTaxAmount(amount);
        uint256 tokensToTransfer = amount.sub(tokensToTax);

        // 0x98cbf0bb534e4AAf033169526ce074c47CEcea83 = gnsosis multisig wallet
        _transfer(sender, 0x98cbf0bb534e4AAf033169526ce074c47CEcea83, tokensToTax);
        _transfer(sender, recipient, tokensToTransfer);
        // askoStaking.handleTaxDistribution(tokensToTax);
    }

    function mint(address account, uint256 amount) public override onlyOwner returns (bool) {
        _mint(account, amount);
        return true;
    }

    function approve(address spender, uint256 amount) public override(ERC20, ERC20Pausable, IERC20) returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public override(ERC20, ERC20Pausable) returns (bool) {
        return ERC20.increaseAllowance(spender, addedValue);
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public override(ERC20, ERC20Pausable) returns (bool) {
        return ERC20.decreaseAllowance(spender, subtractedValue);
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterRemoved","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":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserRemoved","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"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addPauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"addTrustedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"findTaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTaxActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"removeTrustedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renouncePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setIsTaxActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setTaxExemptStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"valueBP","type":"uint256"}],"name":"setTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxBP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"taxExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061217a806100206000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80638f32d59b11610130578063bf892eaa116100b8578063dd62ed3e1161007c578063dd62ed3e146104a3578063e7dadade146104dc578063f0314df0146104ef578063f23ec8c414610502578063f2fde38b1461051557600080fd5b8063bf892eaa14610433578063c125c86114610446578063c4d66de814610459578063c6d69a301461046c578063d1ecfc681461047f57600080fd5b806398a0dd09116100ff57806398a0dd09146103e25780639df66eb7146103f0578063a457c2d7146103fa578063a9059cbb1461040d578063aa271e1a1461042057600080fd5b80638f32d59b146103ab57806395d89b41146103bf578063983b2d56146103c757806398650275146103da57600080fd5b806342966c68116101be578063715018a611610182578063715018a61461035957806379cc67901461036157806382dc1ec4146103745780638456cb59146103875780638da5cb5b1461038f57600080fd5b806342966c68146102f657806346fbf68e146103095780635c975abb1461031c5780636ef8d66d1461032857806370a082311461033057600080fd5b806323b872dd1161020557806323b872dd1461029f578063313ce567146102b257806339509351146102c85780633f4ba83a146102db57806340c10f19146102e357600080fd5b806306fdde0314610237578063095ea7b3146102555780631624f6c61461027857806318160ddd1461028d575b600080fd5b61023f610528565b60405161024c9190611c07565b60405180910390f35b610268610263366004611c71565b6105bb565b604051901515815260200161024c565b61028b610286366004611d3e565b6105d2565b005b6035545b60405190815260200161024c565b6102686102ad366004611dbc565b6106c3565b6101995460405160ff909116815260200161024c565b6102686102d6366004611c71565b6107b2565b61028b6107be565b6102686102f1366004611c71565b6108ca565b61028b610304366004611df8565b610920565b610268610317366004611e11565b61092d565b6101325460ff16610268565b61028b61093a565b61029161033e366004611e11565b6001600160a01b031660009081526033602052604090205490565b61028b610945565b61028b61036f366004611c71565b6109e7565b61028b610382366004611e11565b6109f5565b61028b610a6c565b6101cc546040516001600160a01b03909116815260200161024c565b6101cc546001600160a01b03163314610268565b61023f610b64565b61028b6103d5366004611e11565b610b74565b61028b610bf8565b610200546102689060ff1681565b6102916101ff5481565b610268610408366004611c71565b610c01565b61026861041b366004611c71565b610c0d565b61026861042e366004611e11565b610c79565b61028b610441366004611e11565b610c86565b61028b610454366004611e3c565b610cf1565b61028b610467366004611e11565b610d66565b61028b61047a366004611df8565b610e56565b61026861048d366004611e11565b6102026020526000908152604090205460ff1681565b6102916104b1366004611e6f565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61028b6104ea366004611e99565b610f01565b61028b6104fd366004611e11565b610f5e565b610291610510366004611df8565b610fcc565b61028b610523366004611e11565b610fe4565b6060610197805461053890611eb4565b80601f016020809104026020016040519081016040528092919081815260200182805461056490611eb4565b80156105b15780601f10610586576101008083540402835291602001916105b1565b820191906000526020600020905b81548152906001019060200180831161059457829003601f168201915b5050505050905090565b60006105c8338484611036565b5060015b92915050565b600054610100900460ff16806105e75750303b155b806105f5575060005460ff16155b61065d5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560448201526d195b881a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff1615801561067f576000805461ffff19166101011790555b61019761068c8582611f3d565b5061019861069a8482611f3d565b50610199805460ff191660ff841617905580156106bd576000805461ff00191690555b50505050565b6102005460009060ff1680156106f357506001600160a01b0384166000908152610202602052604090205460ff16155b801561071957506001600160a01b0383166000908152610202602052604090205460ff16155b61072d5761072884848461115b565b610738565b6107388484846112e1565b336000908152610201602052604090205460ff1615610759575060016107ab565b6107a53361026384604051806060016040528060218152602001612095602191396001600160a01b038916600090815260346020908152604080832033845290915290205491906113f3565b50600190505b9392505050565b60006107ab838361142d565b6107c73361092d565b61082c5760405162461bcd60e51b815260206004820152603060248201527f506175736572526f6c653a2063616c6c657220646f6573206e6f74206861766560448201526f207468652050617573657220726f6c6560801b6064820152608401610654565b6101325460ff1661087f5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610654565b610132805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6101cc546000906001600160a01b031633146109165760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6105c88383611468565b61092a338261154e565b50565b60006105cc60ff83611652565b610943336116d5565b565b6101cc546001600160a01b0316331461098e5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6101cc546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36101cc805473ffffffffffffffffffffffffffffffffffffffff19169055565b6109f18282611717565b5050565b6109fe3361092d565b610a635760405162461bcd60e51b815260206004820152603060248201527f506175736572526f6c653a2063616c6c657220646f6573206e6f74206861766560448201526f207468652050617573657220726f6c6560801b6064820152608401610654565b61092a8161176e565b610a753361092d565b610ada5760405162461bcd60e51b815260206004820152603060248201527f506175736572526f6c653a2063616c6c657220646f6573206e6f74206861766560448201526f207468652050617573657220726f6c6560801b6064820152608401610654565b6101325460ff1615610b2e5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610654565b610132805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108ad3390565b6060610198805461053890611eb4565b610b7d33610c79565b610bef5760405162461bcd60e51b815260206004820152603060248201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560448201527f20746865204d696e74657220726f6c65000000000000000000000000000000006064820152608401610654565b61092a816117b0565b610943336117f2565b60006107ab8383611834565b6102005460009060ff168015610c345750336000908152610202602052604090205460ff16155b8015610c5a57506001600160a01b0383166000908152610202602052604090205460ff16155b610c6e57610c6933848461115b565b6105c8565b6105c83384846112e1565b60006105cc609a83611652565b6101cc546001600160a01b03163314610ccf5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6001600160a01b0316600090815261020160205260409020805460ff19169055565b6101cc546001600160a01b03163314610d3a5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6001600160a01b0391909116600090815261020260205260409020805460ff1916911515919091179055565b600054610100900460ff1680610d7b5750303b155b80610d89575060005460ff16155b610dec5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560448201526d195b881a5b9a5d1a585b1a5e995960921b6064820152608401610654565b600054610100900460ff16158015610e0e576000805461ffff19166101011790555b60405162461bcd60e51b815260206004820152601360248201527f616c726561647920696e697469616c697a6564000000000000000000000000006044820152606401610654565b6101cc546001600160a01b03163314610e9f5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6127108110610efb5760405162461bcd60e51b815260206004820152602260248201527f54617820636f6e6e6f74206265206f7665722031303025202831303030302042604482015261502960f01b6064820152608401610654565b6101ff55565b6101cc546001600160a01b03163314610f4a5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b610200805460ff1916911515919091179055565b6101cc546001600160a01b03163314610fa75760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6001600160a01b0316600090815261020160205260409020805460ff19166001179055565b60006105cc6101ff548361188390919063ffffffff16565b6101cc546001600160a01b0316331461102d5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b61092a816118ab565b6001600160a01b0383166110985760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610654565b6001600160a01b0382166110f95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610654565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166111bf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610654565b6001600160a01b0382166112215760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610654565b61125e816040518060600160405280602681526020016120b6602691396001600160a01b03861660009081526033602052604090205491906113f3565b6001600160a01b03808516600090815260336020526040808220939093559084168152205461128d908261197b565b6001600160a01b0380841660008181526033602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061114e9085815260200190565b6001600160a01b0383166113455760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610654565b6001600160a01b0382166113a75760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610654565b60006113b282610fcc565b905060006113c083836119da565b90506113e1857398cbf0bb534e4aaf033169526ce074c47cecea838461115b565b6113ec85858361115b565b5050505050565b600081848411156114175760405162461bcd60e51b81526004016106549190611c07565b5060006114248486612013565b95945050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916105c8918590611463908661197b565b611036565b6001600160a01b0382166114be5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610654565b6035546114cb908261197b565b6035556001600160a01b0382166000908152603360205260409020546114f1908261197b565b6001600160a01b0383166000818152603360205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115429085815260200190565b60405180910390a35050565b6001600160a01b0382166115ae5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610654565b6115eb81604051806060016040528060228152602001612073602291396001600160a01b03851660009081526033602052604090205491906113f3565b6001600160a01b03831660009081526033602052604090205560355461161190826119da565b6035556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611542565b60006001600160a01b0382166116b55760405162461bcd60e51b815260206004820152602260248201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604482015261737360f01b6064820152608401610654565b506001600160a01b03166000908152602091909152604090205460ff1690565b6116e060ff82611a1c565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b611721828261154e565b6109f18233611463846040518060600160405280602481526020016120fc602491396001600160a01b038816600090815260346020908152604080832033845290915290205491906113f3565b61177960ff82611a9e565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6117bb609a82611a9e565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6117fd609a82611a1c565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b60006105c8338461146385604051806060016040528060258152602001612120602591393360009081526034602090815260408083206001600160a01b038d16845290915290205491906113f3565b600082600003611895575060006105cc565b6107ab6127106118a58585611b1a565b90611b9c565b6001600160a01b0381166119105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610654565b6101cc546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36101cc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000806119888385612026565b9050838110156107ab5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610654565b60006107ab83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506113f3565b611a268282611652565b611a7c5760405162461bcd60e51b815260206004820152602160248201527f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6044820152606560f81b6064820152608401610654565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b611aa88282611652565b15611af55760405162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c65006044820152606401610654565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b600082600003611b2c575060006105cc565b6000611b388385612039565b905082611b458583612050565b146107ab5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610654565b60006107ab83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183611bfa5760405162461bcd60e51b81526004016106549190611c07565b5060006114248486612050565b600060208083528351808285015260005b81811015611c3457858101830151858201604001528201611c18565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611c6c57600080fd5b919050565b60008060408385031215611c8457600080fd5b611c8d83611c55565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611cc257600080fd5b813567ffffffffffffffff80821115611cdd57611cdd611c9b565b604051601f8301601f19908116603f01168101908282118183101715611d0557611d05611c9b565b81604052838152866020858801011115611d1e57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215611d5357600080fd5b833567ffffffffffffffff80821115611d6b57600080fd5b611d7787838801611cb1565b94506020860135915080821115611d8d57600080fd5b50611d9a86828701611cb1565b925050604084013560ff81168114611db157600080fd5b809150509250925092565b600080600060608486031215611dd157600080fd5b611dda84611c55565b9250611de860208501611c55565b9150604084013590509250925092565b600060208284031215611e0a57600080fd5b5035919050565b600060208284031215611e2357600080fd5b6107ab82611c55565b80358015158114611c6c57600080fd5b60008060408385031215611e4f57600080fd5b611e5883611c55565b9150611e6660208401611e2c565b90509250929050565b60008060408385031215611e8257600080fd5b611e8b83611c55565b9150611e6660208401611c55565b600060208284031215611eab57600080fd5b6107ab82611e2c565b600181811c90821680611ec857607f821691505b602082108103611ee857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115611f3857600081815260208120601f850160051c81016020861015611f155750805b601f850160051c820191505b81811015611f3457828155600101611f21565b5050505b505050565b815167ffffffffffffffff811115611f5757611f57611c9b565b611f6b81611f658454611eb4565b84611eee565b602080601f831160018114611fa05760008415611f885750858301515b600019600386901b1c1916600185901b178555611f34565b600085815260208120601f198616915b82811015611fcf57888601518255948401946001909101908401611fb0565b5085821015611fed5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b818103818111156105cc576105cc611ffd565b808201808211156105cc576105cc611ffd565b80820281158282048414176105cc576105cc611ffd565b60008261206d57634e487b7160e01b600052601260045260246000fd5b50049056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63655472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206201762692d6c7c2aaaba5e95ab8a996b686dc5e6d9e69c5cc91533d22c3ddff64736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102325760003560e01c80638f32d59b11610130578063bf892eaa116100b8578063dd62ed3e1161007c578063dd62ed3e146104a3578063e7dadade146104dc578063f0314df0146104ef578063f23ec8c414610502578063f2fde38b1461051557600080fd5b8063bf892eaa14610433578063c125c86114610446578063c4d66de814610459578063c6d69a301461046c578063d1ecfc681461047f57600080fd5b806398a0dd09116100ff57806398a0dd09146103e25780639df66eb7146103f0578063a457c2d7146103fa578063a9059cbb1461040d578063aa271e1a1461042057600080fd5b80638f32d59b146103ab57806395d89b41146103bf578063983b2d56146103c757806398650275146103da57600080fd5b806342966c68116101be578063715018a611610182578063715018a61461035957806379cc67901461036157806382dc1ec4146103745780638456cb59146103875780638da5cb5b1461038f57600080fd5b806342966c68146102f657806346fbf68e146103095780635c975abb1461031c5780636ef8d66d1461032857806370a082311461033057600080fd5b806323b872dd1161020557806323b872dd1461029f578063313ce567146102b257806339509351146102c85780633f4ba83a146102db57806340c10f19146102e357600080fd5b806306fdde0314610237578063095ea7b3146102555780631624f6c61461027857806318160ddd1461028d575b600080fd5b61023f610528565b60405161024c9190611c07565b60405180910390f35b610268610263366004611c71565b6105bb565b604051901515815260200161024c565b61028b610286366004611d3e565b6105d2565b005b6035545b60405190815260200161024c565b6102686102ad366004611dbc565b6106c3565b6101995460405160ff909116815260200161024c565b6102686102d6366004611c71565b6107b2565b61028b6107be565b6102686102f1366004611c71565b6108ca565b61028b610304366004611df8565b610920565b610268610317366004611e11565b61092d565b6101325460ff16610268565b61028b61093a565b61029161033e366004611e11565b6001600160a01b031660009081526033602052604090205490565b61028b610945565b61028b61036f366004611c71565b6109e7565b61028b610382366004611e11565b6109f5565b61028b610a6c565b6101cc546040516001600160a01b03909116815260200161024c565b6101cc546001600160a01b03163314610268565b61023f610b64565b61028b6103d5366004611e11565b610b74565b61028b610bf8565b610200546102689060ff1681565b6102916101ff5481565b610268610408366004611c71565b610c01565b61026861041b366004611c71565b610c0d565b61026861042e366004611e11565b610c79565b61028b610441366004611e11565b610c86565b61028b610454366004611e3c565b610cf1565b61028b610467366004611e11565b610d66565b61028b61047a366004611df8565b610e56565b61026861048d366004611e11565b6102026020526000908152604090205460ff1681565b6102916104b1366004611e6f565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61028b6104ea366004611e99565b610f01565b61028b6104fd366004611e11565b610f5e565b610291610510366004611df8565b610fcc565b61028b610523366004611e11565b610fe4565b6060610197805461053890611eb4565b80601f016020809104026020016040519081016040528092919081815260200182805461056490611eb4565b80156105b15780601f10610586576101008083540402835291602001916105b1565b820191906000526020600020905b81548152906001019060200180831161059457829003601f168201915b5050505050905090565b60006105c8338484611036565b5060015b92915050565b600054610100900460ff16806105e75750303b155b806105f5575060005460ff16155b61065d5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560448201526d195b881a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff1615801561067f576000805461ffff19166101011790555b61019761068c8582611f3d565b5061019861069a8482611f3d565b50610199805460ff191660ff841617905580156106bd576000805461ff00191690555b50505050565b6102005460009060ff1680156106f357506001600160a01b0384166000908152610202602052604090205460ff16155b801561071957506001600160a01b0383166000908152610202602052604090205460ff16155b61072d5761072884848461115b565b610738565b6107388484846112e1565b336000908152610201602052604090205460ff1615610759575060016107ab565b6107a53361026384604051806060016040528060218152602001612095602191396001600160a01b038916600090815260346020908152604080832033845290915290205491906113f3565b50600190505b9392505050565b60006107ab838361142d565b6107c73361092d565b61082c5760405162461bcd60e51b815260206004820152603060248201527f506175736572526f6c653a2063616c6c657220646f6573206e6f74206861766560448201526f207468652050617573657220726f6c6560801b6064820152608401610654565b6101325460ff1661087f5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610654565b610132805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6101cc546000906001600160a01b031633146109165760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6105c88383611468565b61092a338261154e565b50565b60006105cc60ff83611652565b610943336116d5565b565b6101cc546001600160a01b0316331461098e5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6101cc546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36101cc805473ffffffffffffffffffffffffffffffffffffffff19169055565b6109f18282611717565b5050565b6109fe3361092d565b610a635760405162461bcd60e51b815260206004820152603060248201527f506175736572526f6c653a2063616c6c657220646f6573206e6f74206861766560448201526f207468652050617573657220726f6c6560801b6064820152608401610654565b61092a8161176e565b610a753361092d565b610ada5760405162461bcd60e51b815260206004820152603060248201527f506175736572526f6c653a2063616c6c657220646f6573206e6f74206861766560448201526f207468652050617573657220726f6c6560801b6064820152608401610654565b6101325460ff1615610b2e5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610654565b610132805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108ad3390565b6060610198805461053890611eb4565b610b7d33610c79565b610bef5760405162461bcd60e51b815260206004820152603060248201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560448201527f20746865204d696e74657220726f6c65000000000000000000000000000000006064820152608401610654565b61092a816117b0565b610943336117f2565b60006107ab8383611834565b6102005460009060ff168015610c345750336000908152610202602052604090205460ff16155b8015610c5a57506001600160a01b0383166000908152610202602052604090205460ff16155b610c6e57610c6933848461115b565b6105c8565b6105c83384846112e1565b60006105cc609a83611652565b6101cc546001600160a01b03163314610ccf5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6001600160a01b0316600090815261020160205260409020805460ff19169055565b6101cc546001600160a01b03163314610d3a5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6001600160a01b0391909116600090815261020260205260409020805460ff1916911515919091179055565b600054610100900460ff1680610d7b5750303b155b80610d89575060005460ff16155b610dec5760405162461bcd60e51b815260206004820152602e60248201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560448201526d195b881a5b9a5d1a585b1a5e995960921b6064820152608401610654565b600054610100900460ff16158015610e0e576000805461ffff19166101011790555b60405162461bcd60e51b815260206004820152601360248201527f616c726561647920696e697469616c697a6564000000000000000000000000006044820152606401610654565b6101cc546001600160a01b03163314610e9f5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6127108110610efb5760405162461bcd60e51b815260206004820152602260248201527f54617820636f6e6e6f74206265206f7665722031303025202831303030302042604482015261502960f01b6064820152608401610654565b6101ff55565b6101cc546001600160a01b03163314610f4a5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b610200805460ff1916911515919091179055565b6101cc546001600160a01b03163314610fa75760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b6001600160a01b0316600090815261020160205260409020805460ff19166001179055565b60006105cc6101ff548361188390919063ffffffff16565b6101cc546001600160a01b0316331461102d5760405162461bcd60e51b815260206004820181905260248201526000805160206120dc8339815191526044820152606401610654565b61092a816118ab565b6001600160a01b0383166110985760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610654565b6001600160a01b0382166110f95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610654565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166111bf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610654565b6001600160a01b0382166112215760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610654565b61125e816040518060600160405280602681526020016120b6602691396001600160a01b03861660009081526033602052604090205491906113f3565b6001600160a01b03808516600090815260336020526040808220939093559084168152205461128d908261197b565b6001600160a01b0380841660008181526033602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061114e9085815260200190565b6001600160a01b0383166113455760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610654565b6001600160a01b0382166113a75760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610654565b60006113b282610fcc565b905060006113c083836119da565b90506113e1857398cbf0bb534e4aaf033169526ce074c47cecea838461115b565b6113ec85858361115b565b5050505050565b600081848411156114175760405162461bcd60e51b81526004016106549190611c07565b5060006114248486612013565b95945050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916105c8918590611463908661197b565b611036565b6001600160a01b0382166114be5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610654565b6035546114cb908261197b565b6035556001600160a01b0382166000908152603360205260409020546114f1908261197b565b6001600160a01b0383166000818152603360205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115429085815260200190565b60405180910390a35050565b6001600160a01b0382166115ae5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610654565b6115eb81604051806060016040528060228152602001612073602291396001600160a01b03851660009081526033602052604090205491906113f3565b6001600160a01b03831660009081526033602052604090205560355461161190826119da565b6035556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611542565b60006001600160a01b0382166116b55760405162461bcd60e51b815260206004820152602260248201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604482015261737360f01b6064820152608401610654565b506001600160a01b03166000908152602091909152604090205460ff1690565b6116e060ff82611a1c565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b611721828261154e565b6109f18233611463846040518060600160405280602481526020016120fc602491396001600160a01b038816600090815260346020908152604080832033845290915290205491906113f3565b61177960ff82611a9e565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6117bb609a82611a9e565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6117fd609a82611a1c565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b60006105c8338461146385604051806060016040528060258152602001612120602591393360009081526034602090815260408083206001600160a01b038d16845290915290205491906113f3565b600082600003611895575060006105cc565b6107ab6127106118a58585611b1a565b90611b9c565b6001600160a01b0381166119105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610654565b6101cc546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36101cc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000806119888385612026565b9050838110156107ab5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610654565b60006107ab83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506113f3565b611a268282611652565b611a7c5760405162461bcd60e51b815260206004820152602160248201527f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6044820152606560f81b6064820152608401610654565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b611aa88282611652565b15611af55760405162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c65006044820152606401610654565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b600082600003611b2c575060006105cc565b6000611b388385612039565b905082611b458583612050565b146107ab5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610654565b60006107ab83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183611bfa5760405162461bcd60e51b81526004016106549190611c07565b5060006114248486612050565b600060208083528351808285015260005b81811015611c3457858101830151858201604001528201611c18565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611c6c57600080fd5b919050565b60008060408385031215611c8457600080fd5b611c8d83611c55565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611cc257600080fd5b813567ffffffffffffffff80821115611cdd57611cdd611c9b565b604051601f8301601f19908116603f01168101908282118183101715611d0557611d05611c9b565b81604052838152866020858801011115611d1e57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215611d5357600080fd5b833567ffffffffffffffff80821115611d6b57600080fd5b611d7787838801611cb1565b94506020860135915080821115611d8d57600080fd5b50611d9a86828701611cb1565b925050604084013560ff81168114611db157600080fd5b809150509250925092565b600080600060608486031215611dd157600080fd5b611dda84611c55565b9250611de860208501611c55565b9150604084013590509250925092565b600060208284031215611e0a57600080fd5b5035919050565b600060208284031215611e2357600080fd5b6107ab82611c55565b80358015158114611c6c57600080fd5b60008060408385031215611e4f57600080fd5b611e5883611c55565b9150611e6660208401611e2c565b90509250929050565b60008060408385031215611e8257600080fd5b611e8b83611c55565b9150611e6660208401611c55565b600060208284031215611eab57600080fd5b6107ab82611e2c565b600181811c90821680611ec857607f821691505b602082108103611ee857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115611f3857600081815260208120601f850160051c81016020861015611f155750805b601f850160051c820191505b81811015611f3457828155600101611f21565b5050505b505050565b815167ffffffffffffffff811115611f5757611f57611c9b565b611f6b81611f658454611eb4565b84611eee565b602080601f831160018114611fa05760008415611f885750858301515b600019600386901b1c1916600185901b178555611f34565b600085815260208120601f198616915b82811015611fcf57888601518255948401946001909101908401611fb0565b5085821015611fed5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b818103818111156105cc576105cc611ffd565b808201808211156105cc576105cc611ffd565b80820281158282048414176105cc576105cc611ffd565b60008261206d57634e487b7160e01b600052601260045260246000fd5b50049056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63655472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206201762692d6c7c2aaaba5e95ab8a996b686dc5e6d9e69c5cc91533d22c3ddff64736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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