ETH Price: $3,304.99 (-3.76%)
Gas: 22 Gwei

Contract

0x845E8A027Ec3e132aC5292F28283D17EF6D8184f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040123018602021-04-24 8:31:361166 days ago1619253096IN
 Create: LPToken
0 ETH0.1320074556

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LPToken

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : LPToken.sol
/*
    Copyright (C) 2020 InsurAce.io

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/
*/

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.7.3;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol";
import {ILPToken} from "./ILPToken.sol";
import {Math} from "../common/Math.sol";

contract LPToken is ILPToken, OwnableUpgradeable, PausableUpgradeable, ERC20Upgradeable {
    using SafeMathUpgradeable for uint256;
    using AddressUpgradeable for address;

    function initializeLPToken(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) public initializer {
        __Ownable_init();
        __Pausable_init();
        __ERC20_init(_name, _symbol);
        _setupDecimals(_decimals);
    }

    address public lpTokenMinter;
    address public lpTokenBurner;
    mapping(address => uint256) public burnWeightPH;
    mapping(address => uint256) public pendingBurnAmtPH;
    mapping(address => uint256) public burnableAmtPH;

    mapping(address => uint256) public rewardDebt;
    uint256 public totalSupplyCap;
    uint256 public perAccountCap;

    function setup(address _lpTokenMinter, address _lpTokenBurner) external onlyOwner {
        require(_lpTokenMinter != address(0), "S:1");
        lpTokenMinter = _lpTokenMinter;
        require(_lpTokenBurner != address(0), "S:2");
        lpTokenBurner = _lpTokenBurner;
    }

    function setupMintCap(uint256 _totalSupplyCap, uint256 _perAccountCap) external onlyOwner {
        totalSupplyCap = _totalSupplyCap;
        perAccountCap = _perAccountCap;
    }

    function setupDecimals(uint8 _decimals) external onlyOwner {
        _setupDecimals(_decimals);
    }

    function canMintPerTotalSupply(uint256 _amount) public view returns (uint256) {
        if (_amount.add(totalSupply()) <= totalSupplyCap) {
            return totalSupplyCap.sub(totalSupply());
        }
        return 0;
    }

    function canMintPerAccountCap(address _account, uint256 _amount) public view returns (uint256) {
        if (_amount.add(balanceOf(_account)) <= perAccountCap) {
            return perAccountCap.sub(balanceOf(_account));
        }
        return 0;
    }

    modifier onlyMinter() {
        require(lpTokenMinter == _msgSender(), "onlyMinter");
        _;
    }

    modifier onlyBurner() {
        require(lpTokenBurner == _msgSender(), "onlyBurner");
        _;
    }

    function rewardDebtOf(address _account) external view override returns (uint256) {
        return rewardDebt[_account];
    }

    function burnableAmtOf(address _account) external view override returns (uint256) {
        uint256 currentBlock = block.number;
        uint256 burableAmt = burnableAmtPH[_account];
        if (burnWeightPH[_account] <= currentBlock) {
            burableAmt = burnableAmtPH[_account].add(pendingBurnAmtPH[_account]);
        }
        return burableAmt;
    }

    function pauseAll() external onlyOwner whenNotPaused {
        _pause();
    }

    function unPauseAll() external onlyOwner whenPaused {
        _unpause();
    }

    function mint(
        address _account,
        uint256 _amount,
        uint256 _poolRewardPerLPToken
    ) external override onlyMinter whenNotPaused {
        if (_amount != 0) {
            require(canMintPerTotalSupply(_amount) != 0, "mint:1");
            require(canMintPerAccountCap(_account, _amount) != 0, "mint:2");
            _mint(_account, _amount);
        }
        rewardDebt[_account] = _poolRewardPerLPToken.mul(balanceOf(_account)).div(1e18);
    }

    function burn(
        address _account,
        uint256 _amount,
        uint256 _poolRewardPerLPToken
    ) external override onlyBurner {
        uint256 currentBlock = block.number;
        if (burnWeightPH[_account] <= currentBlock) {
            burnWeightPH[_account] = 0;
            burnableAmtPH[_account] = burnableAmtPH[_account].add(pendingBurnAmtPH[_account]);
            pendingBurnAmtPH[_account] = 0;
        }
        require(_amount > 0 && _amount <= burnableAmtPH[_account], "B:1");
        _burn(_account, _amount);
        burnableAmtPH[_account] = burnableAmtPH[_account].sub(_amount);
        rewardDebt[_account] = _poolRewardPerLPToken.mul(balanceOf(_account)).div(1e18);
    }

    function proposeToBurn(
        address _account,
        uint256 _amount,
        uint256 _blockWeightDuration
    ) external override whenNotPaused onlyBurner {
        require(_amount > 0, "PTB:1");
        uint256 currentBlock = block.number;
        uint256 holdingAmt = balanceOf(_account);
        require(holdingAmt > 0, "PTB:2");
        require(holdingAmt.sub(pendingBurnAmtPH[_account]).sub(burnableAmtPH[_account]) >= _amount, "PTB:3");
        if (burnWeightPH[_account] <= currentBlock) {
            burnWeightPH[_account] = _blockWeightDuration.add(currentBlock);
            burnableAmtPH[_account] = burnableAmtPH[_account].add(pendingBurnAmtPH[_account]);
            pendingBurnAmtPH[_account] = _amount;
        } else {
            uint256 deltaBlk = burnWeightPH[_account].sub(currentBlock);
            uint256 newWeight = deltaBlk.mul(pendingBurnAmtPH[_account]).add(_amount.mul(_blockWeightDuration)).div(_amount.add(pendingBurnAmtPH[_account]));
            pendingBurnAmtPH[_account] = _amount.add(pendingBurnAmtPH[_account]);
            burnWeightPH[_account] = newWeight.add(currentBlock);
        }
    }

    event TokenMint(address indexed _from, address indexed _to, uint256 _amount);
    event TokenBurn(address indexed _from, address indexed _to, uint256 _amount);

    function _beforeTokenTransfer(
        address _from,
        address _to,
        uint256 _amount
    ) internal virtual override {
        super._beforeTokenTransfer(_from, _to, _amount);
        if (_msgSender() == lpTokenMinter && _from == address(0)) {
            emit TokenMint(_from, _to, _amount);
        } else if (_msgSender() == lpTokenBurner && _to == address(0)) {
            emit TokenBurn(_from, _to, _amount);
        } else if (_to == address(0)) {
            require(false, "LPToken: cannot burn");
        } else {
            require(false, "LPToken: no transfer");
        }
    }
}

File 2 of 11 : ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/ContextUpgradeable.sol";
import "./IERC20Upgradeable.sol";
import "../../math/SafeMathUpgradeable.sol";
import "../../proxy/Initializable.sol";

/**
 * @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 {ERC20PresetMinterPauser}.
 *
 * 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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable {
    using SafeMathUpgradeable for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * 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 virtual returns (uint8) {
        return _decimals;
    }

    /**
     * @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 virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _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 virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _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 virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _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 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 virtual {
        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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
    uint256[44] private __gap;
}

File 3 of 11 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 4 of 11 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/Initializable.sol";
/**
 * @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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual 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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
    uint256[49] private __gap;
}

File 5 of 11 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./ContextUpgradeable.sol";
import "../proxy/Initializable.sol";

/**
 * @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.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal initializer {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal initializer {
        _paused = false;
    }

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

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

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

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
    uint256[49] private __gap;
}

File 6 of 11 : ILPToken.sol
/*
    Copyright (C) 2020 InsurAce.io

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/
*/

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.7.3;

interface ILPToken {
    function proposeToBurn(
        address _account,
        uint256 _amount,
        uint256 _blockWeight
    ) external;

    function mint(
        address _account,
        uint256 _amount,
        uint256 _poolRewardPerLPToken
    ) external;

    function rewardDebtOf(address _account) external view returns (uint256);

    function burnableAmtOf(address _account) external view returns (uint256);

    function burn(
        address _account,
        uint256 _amount,
        uint256 _poolRewardPerLPToken
    ) external;
}

File 7 of 11 : Math.sol
/*
    Copyright (C) 2020 InsurAce.io

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/
*/

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.7.3;

import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";

// a library for performing various math operations
library Math {
    using SafeMathUpgradeable for uint256;

    function max(uint256 x, uint256 y) internal pure returns (uint256) {
        return x < y ? y : x;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256) {
        return x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y.div(2).add(1);
            while (x < z) {
                z = x;
                x = (y.div(x).add(x)).div(2);
            }
        } else if (y != 0) {
            z = 1;
        }
    }

    // power private function
    function pow(uint256 _base, uint256 _exponent) internal pure returns (uint256) {
        if (_exponent == 0) {
            return 1;
        } else if (_exponent == 1) {
            return _base;
        } else if (_base == 0 && _exponent != 0) {
            return 0;
        } else {
            uint256 z = _base;
            for (uint256 i = 1; i < _exponent; i++) {
                z = z.mul(_base);
            }
            return z;
        }
    }
}

File 8 of 11 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;
import "../proxy/Initializable.sol";

/*
 * @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.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
    uint256[50] private __gap;
}

File 9 of 11 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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);
}

File 10 of 11 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 11 of 11 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

import "../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract 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 protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already 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) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"TokenBurn","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":"_amount","type":"uint256"}],"name":"TokenMint","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":"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":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_poolRewardPerLPToken","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"burnWeightPH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"burnableAmtOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"burnableAmtPH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"canMintPerAccountCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"canMintPerTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"}],"name":"initializeLPToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpTokenBurner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpTokenMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_poolRewardPerLPToken","type":"uint256"}],"name":"mint","outputs":[],"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":"pauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pendingBurnAmtPH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"perAccountCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_blockWeightDuration","type":"uint256"}],"name":"proposeToBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"rewardDebtOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lpTokenMinter","type":"address"},{"internalType":"address","name":"_lpTokenBurner","type":"address"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_decimals","type":"uint8"}],"name":"setupDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalSupplyCap","type":"uint256"},{"internalType":"uint256","name":"_perAccountCap","type":"uint256"}],"name":"setupMintCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyCap","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":"unPauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506129ad806100206000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806370a0823111610125578063bb102aea116100ad578063e30171f81161007c578063e30171f81461075a578063e67c101214610780578063f2fde38b146107a6578063f5298aca146107cc578063fe947ffe146107fe5761021c565b8063bb102aea146105c6578063dd62ed3e146105ce578063df9c975a146105fc578063e0708bd61461072e5761021c565b80638da5cb5b116100f45780638da5cb5b1461053857806395d89b4114610540578063a457c2d714610548578063a9059cbb14610574578063af3ea98d146105a05761021c565b806370a08231146104d0578063715018a6146104f657806379d79a34146104fe57806387c19009146105065761021c565b8063394dad68116101a85780635873eb9b116101775780635873eb9b14610451578063595c6a67146104775780635c975abb1461047f57806364c4342c146104875780636e7a8764146104ad5761021c565b8063394dad68146103da57806339509351146103f757806343c6ae06146104235780634bb2be741461042b5761021c565b806318160ddd116101ef57806318160ddd1461031a57806323b872dd146103345780632d34ba791461036a578063313ce56714610398578063389b06b7146103b65761021c565b806306fdde031461022157806307c97ffb1461029e578063095ea7b3146102a8578063156e29f6146102e8575b600080fd5b61022961081e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026357818101518382015260200161024b565b50505050905090810190601f1680156102905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a66108b4565b005b6102d4600480360360408110156102be57600080fd5b506001600160a01b038135169060200135610970565b604080519115158252519081900360200190f35b6102a6600480360360608110156102fe57600080fd5b506001600160a01b03813516906020810135906040013561098e565b610322610b0f565b60408051918252519081900360200190f35b6102d46004803603606081101561034a57600080fd5b506001600160a01b03813581169160208101359091169060400135610b15565b6102a66004803603604081101561038057600080fd5b506001600160a01b0381358116916020013516610b9c565b6103a0610cbb565b6040805160ff9092168252519081900360200190f35b6103be610cc4565b604080516001600160a01b039092168252519081900360200190f35b610322600480360360208110156103f057600080fd5b5035610cd3565b6102d46004803603604081101561040d57600080fd5b506001600160a01b038135169060200135610d13565b6103be610d61565b6103226004803603602081101561044157600080fd5b50356001600160a01b0316610d70565b6103226004803603602081101561046757600080fd5b50356001600160a01b0316610d8b565b6102a6610d9d565b6102d4610e54565b6103226004803603602081101561049d57600080fd5b50356001600160a01b0316610e5d565b6102a6600480360360408110156104c357600080fd5b5080359060200135610e6f565b610322600480360360208110156104e657600080fd5b50356001600160a01b0316610edc565b6102a6610ef7565b610322610fa3565b6102a66004803603606081101561051c57600080fd5b506001600160a01b038135169060208101359060400135610fa9565b6103be6112cd565b6102296112dc565b6102d46004803603604081101561055e57600080fd5b506001600160a01b03813516906020013561133d565b6102d46004803603604081101561058a57600080fd5b506001600160a01b0381351690602001356113a5565b610322600480360360208110156105b657600080fd5b50356001600160a01b03166113b9565b61032261141e565b610322600480360360408110156105e457600080fd5b506001600160a01b0381358116916020013516611424565b6102a66004803603606081101561061257600080fd5b81019060208101813564010000000081111561062d57600080fd5b82018360208201111561063f57600080fd5b8035906020019184600183028401116401000000008311171561066157600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156106b457600080fd5b8201836020820111156106c657600080fd5b803590602001918460018302840111640100000000831117156106e857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff16915061144f9050565b6103226004803603604081101561074457600080fd5b506001600160a01b038135169060200135611517565b6103226004803603602081101561077057600080fd5b50356001600160a01b0316611552565b6103226004803603602081101561079657600080fd5b50356001600160a01b0316611564565b6102a6600480360360208110156107bc57600080fd5b50356001600160a01b0316611576565b6102a6600480360360608110156107e257600080fd5b506001600160a01b038135169060208101359060400135611679565b6102a66004803603602081101561081457600080fd5b503560ff16611837565b609a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108aa5780601f1061087f576101008083540402835291602001916108aa565b820191906000526020600020905b81548152906001019060200180831161088d57829003601f168201915b5050505050905090565b6108bc6118a5565b6001600160a01b03166108cd6112cd565b6001600160a01b031614610916576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b61091e610e54565b610966576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b61096e6118a9565b565b600061098461097d6118a5565b8484611949565b5060015b92915050565b6109966118a5565b60c9546001600160a01b039081169116146109e5576040805162461bcd60e51b815260206004820152600a60248201526937b7363ca6b4b73a32b960b11b604482015290519081900360640190fd5b6109ed610e54565b15610a32576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b8115610ac957610a4182610cd3565b610a7b576040805162461bcd60e51b81526020600482015260066024820152656d696e743a3160d01b604482015290519081900360640190fd5b610a858383611517565b610abf576040805162461bcd60e51b815260206004820152600660248201526536b4b73a1d1960d11b604482015290519081900360640190fd5b610ac98383611a35565b610aee670de0b6b3a7640000610ae8610ae186610edc565b8490611b27565b90611b80565b6001600160a01b03909316600090815260ce60205260409020929092555050565b60995490565b6000610b22848484611be7565b610b9284610b2e6118a5565b610b8d856040518060600160405280602881526020016128a1602891396001600160a01b038a16600090815260986020526040812090610b6c6118a5565b6001600160a01b031681526020810191909152604001600020549190611d44565b611949565b5060019392505050565b610ba46118a5565b6001600160a01b0316610bb56112cd565b6001600160a01b031614610bfe576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b6001600160a01b038216610c3f576040805162461bcd60e51b8152602060048201526003602482015262533a3160e81b604482015290519081900360640190fd5b60c980546001600160a01b0319166001600160a01b03848116919091179091558116610c98576040805162461bcd60e51b8152602060048201526003602482015262299d1960e91b604482015290519081900360640190fd5b60ca80546001600160a01b0319166001600160a01b039290921691909117905550565b609c5460ff1690565b60ca546001600160a01b031681565b600060cf54610cea610ce3610b0f565b8490611ddb565b11610d0a57610d03610cfa610b0f565b60cf5490611e35565b9050610d0e565b5060005b919050565b6000610984610d206118a5565b84610b8d8560986000610d316118a5565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611ddb565b60c9546001600160a01b031681565b6001600160a01b0316600090815260ce602052604090205490565b60ce6020526000908152604090205481565b610da56118a5565b6001600160a01b0316610db66112cd565b6001600160a01b031614610dff576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b610e07610e54565b15610e4c576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b61096e611e92565b60655460ff1690565b60cc6020526000908152604090205481565b610e776118a5565b6001600160a01b0316610e886112cd565b6001600160a01b031614610ed1576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b60cf9190915560d055565b6001600160a01b031660009081526097602052604090205490565b610eff6118a5565b6001600160a01b0316610f106112cd565b6001600160a01b031614610f59576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b60d05481565b610fb1610e54565b15610ff6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b610ffe6118a5565b60ca546001600160a01b0390811691161461104d576040805162461bcd60e51b815260206004820152600a60248201526937b7363ca13ab93732b960b11b604482015290519081900360640190fd5b6000821161108a576040805162461bcd60e51b81526020600482015260056024820152645054423a3160d81b604482015290519081900360640190fd5b43600061109685610edc565b9050600081116110d5576040805162461bcd60e51b8152602060048201526005602482015264282a211d1960d91b604482015290519081900360640190fd5b6001600160a01b038516600090815260cd602090815260408083205460cc9092529091205485916111119161110b908590611e35565b90611e35565b101561114c576040805162461bcd60e51b81526020600482015260056024820152645054423a3360d81b604482015290519081900360640190fd5b6001600160a01b038516600090815260cb602052604090205482106111da576111758383611ddb565b6001600160a01b038616600090815260cb602090815260408083209390935560cc81528282205460cd909152919020546111ae91611ddb565b6001600160a01b038616600090815260cd602090815260408083209390935560cc9052208490556112c6565b6001600160a01b038516600090815260cb60205260408120546111fd9084611e35565b6001600160a01b038716600090815260cc60205260408120549192509061126090611229908890611ddb565b610ae86112368989611b27565b6001600160a01b038b16600090815260cc602052604090205461125a908790611b27565b90611ddb565b6001600160a01b038816600090815260cc6020526040902054909150611287908790611ddb565b6001600160a01b038816600090815260cc60205260409020556112aa8185611ddb565b6001600160a01b038816600090815260cb602052604090205550505b5050505050565b6033546001600160a01b031690565b609b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108aa5780601f1061087f576101008083540402835291602001916108aa565b600061098461134a6118a5565b84610b8d8560405180606001604052806025815260200161295360259139609860006113746118a5565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611d44565b60006109846113b26118a5565b8484611be7565b6001600160a01b038116600090815260cd602090815260408083205460cb9092528220544391908210611417576001600160a01b038416600090815260cc602090815260408083205460cd9092529091205461141491611ddb565b90505b9392505050565b60cf5481565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b600054610100900460ff16806114685750611468611f15565b80611476575060005460ff16155b6114b15760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff161580156114dc576000805460ff1961ff0019909116610100171660011790555b6114e4611f26565b6114ec611fd7565b6114f68484612074565b6114ff8261212a565b8015611511576000805461ff00191690555b50505050565b600060d054611528610ce385610edc565b116115495761154261153984610edc565b60d05490611e35565b9050610988565b50600092915050565b60cd6020526000908152604090205481565b60cb6020526000908152604090205481565b61157e6118a5565b6001600160a01b031661158f6112cd565b6001600160a01b0316146115d8576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b6001600160a01b03811661161d5760405162461bcd60e51b81526004018080602001828103825260268152602001806127e46026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b6116816118a5565b60ca546001600160a01b039081169116146116d0576040805162461bcd60e51b815260206004820152600a60248201526937b7363ca13ab93732b960b11b604482015290519081900360640190fd5b6001600160a01b038316600090815260cb602052604090205443908110611751576001600160a01b038416600090815260cb6020908152604080832083905560cc82528083205460cd9092529091205461172991611ddb565b6001600160a01b038516600090815260cd602090815260408083209390935560cc9052908120555b60008311801561177957506001600160a01b038416600090815260cd60205260409020548311155b6117b0576040805162461bcd60e51b8152602060048201526003602482015262423a3160e81b604482015290519081900360640190fd5b6117ba8484612140565b6001600160a01b038416600090815260cd60205260409020546117dd9084611e35565b6001600160a01b038516600090815260cd6020526040902055611815670de0b6b3a7640000610ae861180e87610edc565b8590611b27565b6001600160a01b03909416600090815260ce6020526040902093909355505050565b61183f6118a5565b6001600160a01b03166118506112cd565b6001600160a01b031614611899576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b6118a28161212a565b50565b3390565b6118b1610e54565b6118f9576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61192c6118a5565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b03831661198e5760405162461bcd60e51b815260040180806020018281038252602481526020018061292f6024913960400191505060405180910390fd5b6001600160a01b0382166119d35760405162461bcd60e51b815260040180806020018281038252602281526020018061280a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260986020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038216611a90576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611a9c6000838361223c565b609954611aa99082611ddb565b6099556001600160a01b038216600090815260976020526040902054611acf9082611ddb565b6001600160a01b03831660008181526097602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082611b3657506000610988565b82820282848281611b4357fe5b04146114175760405162461bcd60e51b81526004018080602001828103825260218152602001806128806021913960400191505060405180910390fd5b6000808211611bd6576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611bdf57fe5b049392505050565b6001600160a01b038316611c2c5760405162461bcd60e51b815260040180806020018281038252602581526020018061290a6025913960400191505060405180910390fd5b6001600160a01b038216611c715760405162461bcd60e51b815260040180806020018281038252602381526020018061279f6023913960400191505060405180910390fd5b611c7c83838361223c565b611cb98160405180606001604052806026815260200161282c602691396001600160a01b0386166000908152609760205260409020549190611d44565b6001600160a01b038085166000908152609760205260408082209390935590841681522054611ce89082611ddb565b6001600160a01b0380841660008181526097602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611dd35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d98578181015183820152602001611d80565b50505050905090810190601f168015611dc55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611417576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115611e8c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b611e9a610e54565b15611edf576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861192c6118a5565b6000611f20306123e9565b15905090565b600054610100900460ff1680611f3f5750611f3f611f15565b80611f4d575060005460ff16155b611f885760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015611fb3576000805460ff1961ff0019909116610100171660011790555b611fbb6123ef565b611fc361248f565b80156118a2576000805461ff001916905550565b600054610100900460ff1680611ff05750611ff0611f15565b80611ffe575060005460ff16155b6120395760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015612064576000805460ff1961ff0019909116610100171660011790555b61206c6123ef565b611fc3612588565b600054610100900460ff168061208d575061208d611f15565b8061209b575060005460ff16155b6120d65760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015612101576000805460ff1961ff0019909116610100171660011790555b6121096123ef565b6121138383612633565b8015612125576000805461ff00191690555b505050565b609c805460ff191660ff92909216919091179055565b6001600160a01b0382166121855760405162461bcd60e51b81526004018080602001828103825260218152602001806128e96021913960400191505060405180910390fd5b6121918260008361223c565b6121ce816040518060600160405280602281526020016127c2602291396001600160a01b0385166000908152609760205260409020549190611d44565b6001600160a01b0383166000908152609760205260409020556099546121f49082611e35565b6099556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b612247838383612125565b60c9546001600160a01b031661225b6118a5565b6001600160a01b031614801561227857506001600160a01b038316155b156122cd57816001600160a01b0316836001600160a01b03167f93fa088ec3b37b93af5deae7b6bc55626e2c2dc086b1184bd2fefc28566d6392836040518082815260200191505060405180910390a3612125565b60ca546001600160a01b03166122e16118a5565b6001600160a01b03161480156122fe57506001600160a01b038216155b1561235357816001600160a01b0316836001600160a01b03167fb37c6417ca02c8084d9b4013dd6cb0f56bbd792f58dee3354014d14f714fc16b836040518082815260200191505060405180910390a3612125565b6001600160a01b0382166123a5576040805162461bcd60e51b815260206004820152601460248201527326282a37b5b2b71d1031b0b73737ba10313ab93760611b604482015290519081900360640190fd5b6040805162461bcd60e51b815260206004820152601460248201527326282a37b5b2b71d103737903a3930b739b332b960611b604482015290519081900360640190fd5b3b151590565b600054610100900460ff16806124085750612408611f15565b80612416575060005460ff16155b6124515760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015611fc3576000805460ff1961ff00199091166101001716600117905580156118a2576000805461ff001916905550565b600054610100900460ff16806124a857506124a8611f15565b806124b6575060005460ff16155b6124f15760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff1615801561251c576000805460ff1961ff0019909116610100171660011790555b60006125266118a5565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156118a2576000805461ff001916905550565b600054610100900460ff16806125a157506125a1611f15565b806125af575060005460ff16155b6125ea5760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015612615576000805460ff1961ff0019909116610100171660011790555b6065805460ff1916905580156118a2576000805461ff001916905550565b600054610100900460ff168061264c575061264c611f15565b8061265a575060005460ff16155b6126955760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff161580156126c0576000805460ff1961ff0019909116610100171660011790555b82516126d390609a90602086019061270b565b5081516126e790609b90602085019061270b565b50609c805460ff191660121790558015612125576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061274c57805160ff1916838001178555612779565b82800160010185558215612779579182015b8281111561277957825182559160200191906001019061275e565b50612785929150612789565b5090565b5b80821115612785576000815560010161278a56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c67f4c4411c40033af3097fe286134c37559925e5b97a02d767d5328acea9cd564736f6c63430007030033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021c5760003560e01c806370a0823111610125578063bb102aea116100ad578063e30171f81161007c578063e30171f81461075a578063e67c101214610780578063f2fde38b146107a6578063f5298aca146107cc578063fe947ffe146107fe5761021c565b8063bb102aea146105c6578063dd62ed3e146105ce578063df9c975a146105fc578063e0708bd61461072e5761021c565b80638da5cb5b116100f45780638da5cb5b1461053857806395d89b4114610540578063a457c2d714610548578063a9059cbb14610574578063af3ea98d146105a05761021c565b806370a08231146104d0578063715018a6146104f657806379d79a34146104fe57806387c19009146105065761021c565b8063394dad68116101a85780635873eb9b116101775780635873eb9b14610451578063595c6a67146104775780635c975abb1461047f57806364c4342c146104875780636e7a8764146104ad5761021c565b8063394dad68146103da57806339509351146103f757806343c6ae06146104235780634bb2be741461042b5761021c565b806318160ddd116101ef57806318160ddd1461031a57806323b872dd146103345780632d34ba791461036a578063313ce56714610398578063389b06b7146103b65761021c565b806306fdde031461022157806307c97ffb1461029e578063095ea7b3146102a8578063156e29f6146102e8575b600080fd5b61022961081e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026357818101518382015260200161024b565b50505050905090810190601f1680156102905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a66108b4565b005b6102d4600480360360408110156102be57600080fd5b506001600160a01b038135169060200135610970565b604080519115158252519081900360200190f35b6102a6600480360360608110156102fe57600080fd5b506001600160a01b03813516906020810135906040013561098e565b610322610b0f565b60408051918252519081900360200190f35b6102d46004803603606081101561034a57600080fd5b506001600160a01b03813581169160208101359091169060400135610b15565b6102a66004803603604081101561038057600080fd5b506001600160a01b0381358116916020013516610b9c565b6103a0610cbb565b6040805160ff9092168252519081900360200190f35b6103be610cc4565b604080516001600160a01b039092168252519081900360200190f35b610322600480360360208110156103f057600080fd5b5035610cd3565b6102d46004803603604081101561040d57600080fd5b506001600160a01b038135169060200135610d13565b6103be610d61565b6103226004803603602081101561044157600080fd5b50356001600160a01b0316610d70565b6103226004803603602081101561046757600080fd5b50356001600160a01b0316610d8b565b6102a6610d9d565b6102d4610e54565b6103226004803603602081101561049d57600080fd5b50356001600160a01b0316610e5d565b6102a6600480360360408110156104c357600080fd5b5080359060200135610e6f565b610322600480360360208110156104e657600080fd5b50356001600160a01b0316610edc565b6102a6610ef7565b610322610fa3565b6102a66004803603606081101561051c57600080fd5b506001600160a01b038135169060208101359060400135610fa9565b6103be6112cd565b6102296112dc565b6102d46004803603604081101561055e57600080fd5b506001600160a01b03813516906020013561133d565b6102d46004803603604081101561058a57600080fd5b506001600160a01b0381351690602001356113a5565b610322600480360360208110156105b657600080fd5b50356001600160a01b03166113b9565b61032261141e565b610322600480360360408110156105e457600080fd5b506001600160a01b0381358116916020013516611424565b6102a66004803603606081101561061257600080fd5b81019060208101813564010000000081111561062d57600080fd5b82018360208201111561063f57600080fd5b8035906020019184600183028401116401000000008311171561066157600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156106b457600080fd5b8201836020820111156106c657600080fd5b803590602001918460018302840111640100000000831117156106e857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff16915061144f9050565b6103226004803603604081101561074457600080fd5b506001600160a01b038135169060200135611517565b6103226004803603602081101561077057600080fd5b50356001600160a01b0316611552565b6103226004803603602081101561079657600080fd5b50356001600160a01b0316611564565b6102a6600480360360208110156107bc57600080fd5b50356001600160a01b0316611576565b6102a6600480360360608110156107e257600080fd5b506001600160a01b038135169060208101359060400135611679565b6102a66004803603602081101561081457600080fd5b503560ff16611837565b609a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108aa5780601f1061087f576101008083540402835291602001916108aa565b820191906000526020600020905b81548152906001019060200180831161088d57829003601f168201915b5050505050905090565b6108bc6118a5565b6001600160a01b03166108cd6112cd565b6001600160a01b031614610916576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b61091e610e54565b610966576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b61096e6118a9565b565b600061098461097d6118a5565b8484611949565b5060015b92915050565b6109966118a5565b60c9546001600160a01b039081169116146109e5576040805162461bcd60e51b815260206004820152600a60248201526937b7363ca6b4b73a32b960b11b604482015290519081900360640190fd5b6109ed610e54565b15610a32576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b8115610ac957610a4182610cd3565b610a7b576040805162461bcd60e51b81526020600482015260066024820152656d696e743a3160d01b604482015290519081900360640190fd5b610a858383611517565b610abf576040805162461bcd60e51b815260206004820152600660248201526536b4b73a1d1960d11b604482015290519081900360640190fd5b610ac98383611a35565b610aee670de0b6b3a7640000610ae8610ae186610edc565b8490611b27565b90611b80565b6001600160a01b03909316600090815260ce60205260409020929092555050565b60995490565b6000610b22848484611be7565b610b9284610b2e6118a5565b610b8d856040518060600160405280602881526020016128a1602891396001600160a01b038a16600090815260986020526040812090610b6c6118a5565b6001600160a01b031681526020810191909152604001600020549190611d44565b611949565b5060019392505050565b610ba46118a5565b6001600160a01b0316610bb56112cd565b6001600160a01b031614610bfe576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b6001600160a01b038216610c3f576040805162461bcd60e51b8152602060048201526003602482015262533a3160e81b604482015290519081900360640190fd5b60c980546001600160a01b0319166001600160a01b03848116919091179091558116610c98576040805162461bcd60e51b8152602060048201526003602482015262299d1960e91b604482015290519081900360640190fd5b60ca80546001600160a01b0319166001600160a01b039290921691909117905550565b609c5460ff1690565b60ca546001600160a01b031681565b600060cf54610cea610ce3610b0f565b8490611ddb565b11610d0a57610d03610cfa610b0f565b60cf5490611e35565b9050610d0e565b5060005b919050565b6000610984610d206118a5565b84610b8d8560986000610d316118a5565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611ddb565b60c9546001600160a01b031681565b6001600160a01b0316600090815260ce602052604090205490565b60ce6020526000908152604090205481565b610da56118a5565b6001600160a01b0316610db66112cd565b6001600160a01b031614610dff576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b610e07610e54565b15610e4c576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b61096e611e92565b60655460ff1690565b60cc6020526000908152604090205481565b610e776118a5565b6001600160a01b0316610e886112cd565b6001600160a01b031614610ed1576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b60cf9190915560d055565b6001600160a01b031660009081526097602052604090205490565b610eff6118a5565b6001600160a01b0316610f106112cd565b6001600160a01b031614610f59576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b60d05481565b610fb1610e54565b15610ff6576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b610ffe6118a5565b60ca546001600160a01b0390811691161461104d576040805162461bcd60e51b815260206004820152600a60248201526937b7363ca13ab93732b960b11b604482015290519081900360640190fd5b6000821161108a576040805162461bcd60e51b81526020600482015260056024820152645054423a3160d81b604482015290519081900360640190fd5b43600061109685610edc565b9050600081116110d5576040805162461bcd60e51b8152602060048201526005602482015264282a211d1960d91b604482015290519081900360640190fd5b6001600160a01b038516600090815260cd602090815260408083205460cc9092529091205485916111119161110b908590611e35565b90611e35565b101561114c576040805162461bcd60e51b81526020600482015260056024820152645054423a3360d81b604482015290519081900360640190fd5b6001600160a01b038516600090815260cb602052604090205482106111da576111758383611ddb565b6001600160a01b038616600090815260cb602090815260408083209390935560cc81528282205460cd909152919020546111ae91611ddb565b6001600160a01b038616600090815260cd602090815260408083209390935560cc9052208490556112c6565b6001600160a01b038516600090815260cb60205260408120546111fd9084611e35565b6001600160a01b038716600090815260cc60205260408120549192509061126090611229908890611ddb565b610ae86112368989611b27565b6001600160a01b038b16600090815260cc602052604090205461125a908790611b27565b90611ddb565b6001600160a01b038816600090815260cc6020526040902054909150611287908790611ddb565b6001600160a01b038816600090815260cc60205260409020556112aa8185611ddb565b6001600160a01b038816600090815260cb602052604090205550505b5050505050565b6033546001600160a01b031690565b609b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108aa5780601f1061087f576101008083540402835291602001916108aa565b600061098461134a6118a5565b84610b8d8560405180606001604052806025815260200161295360259139609860006113746118a5565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611d44565b60006109846113b26118a5565b8484611be7565b6001600160a01b038116600090815260cd602090815260408083205460cb9092528220544391908210611417576001600160a01b038416600090815260cc602090815260408083205460cd9092529091205461141491611ddb565b90505b9392505050565b60cf5481565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b600054610100900460ff16806114685750611468611f15565b80611476575060005460ff16155b6114b15760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff161580156114dc576000805460ff1961ff0019909116610100171660011790555b6114e4611f26565b6114ec611fd7565b6114f68484612074565b6114ff8261212a565b8015611511576000805461ff00191690555b50505050565b600060d054611528610ce385610edc565b116115495761154261153984610edc565b60d05490611e35565b9050610988565b50600092915050565b60cd6020526000908152604090205481565b60cb6020526000908152604090205481565b61157e6118a5565b6001600160a01b031661158f6112cd565b6001600160a01b0316146115d8576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b6001600160a01b03811661161d5760405162461bcd60e51b81526004018080602001828103825260268152602001806127e46026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b6116816118a5565b60ca546001600160a01b039081169116146116d0576040805162461bcd60e51b815260206004820152600a60248201526937b7363ca13ab93732b960b11b604482015290519081900360640190fd5b6001600160a01b038316600090815260cb602052604090205443908110611751576001600160a01b038416600090815260cb6020908152604080832083905560cc82528083205460cd9092529091205461172991611ddb565b6001600160a01b038516600090815260cd602090815260408083209390935560cc9052908120555b60008311801561177957506001600160a01b038416600090815260cd60205260409020548311155b6117b0576040805162461bcd60e51b8152602060048201526003602482015262423a3160e81b604482015290519081900360640190fd5b6117ba8484612140565b6001600160a01b038416600090815260cd60205260409020546117dd9084611e35565b6001600160a01b038516600090815260cd6020526040902055611815670de0b6b3a7640000610ae861180e87610edc565b8590611b27565b6001600160a01b03909416600090815260ce6020526040902093909355505050565b61183f6118a5565b6001600160a01b03166118506112cd565b6001600160a01b031614611899576040805162461bcd60e51b815260206004820181905260248201526000805160206128c9833981519152604482015290519081900360640190fd5b6118a28161212a565b50565b3390565b6118b1610e54565b6118f9576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61192c6118a5565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b03831661198e5760405162461bcd60e51b815260040180806020018281038252602481526020018061292f6024913960400191505060405180910390fd5b6001600160a01b0382166119d35760405162461bcd60e51b815260040180806020018281038252602281526020018061280a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260986020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038216611a90576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611a9c6000838361223c565b609954611aa99082611ddb565b6099556001600160a01b038216600090815260976020526040902054611acf9082611ddb565b6001600160a01b03831660008181526097602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082611b3657506000610988565b82820282848281611b4357fe5b04146114175760405162461bcd60e51b81526004018080602001828103825260218152602001806128806021913960400191505060405180910390fd5b6000808211611bd6576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611bdf57fe5b049392505050565b6001600160a01b038316611c2c5760405162461bcd60e51b815260040180806020018281038252602581526020018061290a6025913960400191505060405180910390fd5b6001600160a01b038216611c715760405162461bcd60e51b815260040180806020018281038252602381526020018061279f6023913960400191505060405180910390fd5b611c7c83838361223c565b611cb98160405180606001604052806026815260200161282c602691396001600160a01b0386166000908152609760205260409020549190611d44565b6001600160a01b038085166000908152609760205260408082209390935590841681522054611ce89082611ddb565b6001600160a01b0380841660008181526097602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611dd35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d98578181015183820152602001611d80565b50505050905090810190601f168015611dc55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611417576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115611e8c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b611e9a610e54565b15611edf576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861192c6118a5565b6000611f20306123e9565b15905090565b600054610100900460ff1680611f3f5750611f3f611f15565b80611f4d575060005460ff16155b611f885760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015611fb3576000805460ff1961ff0019909116610100171660011790555b611fbb6123ef565b611fc361248f565b80156118a2576000805461ff001916905550565b600054610100900460ff1680611ff05750611ff0611f15565b80611ffe575060005460ff16155b6120395760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015612064576000805460ff1961ff0019909116610100171660011790555b61206c6123ef565b611fc3612588565b600054610100900460ff168061208d575061208d611f15565b8061209b575060005460ff16155b6120d65760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015612101576000805460ff1961ff0019909116610100171660011790555b6121096123ef565b6121138383612633565b8015612125576000805461ff00191690555b505050565b609c805460ff191660ff92909216919091179055565b6001600160a01b0382166121855760405162461bcd60e51b81526004018080602001828103825260218152602001806128e96021913960400191505060405180910390fd5b6121918260008361223c565b6121ce816040518060600160405280602281526020016127c2602291396001600160a01b0385166000908152609760205260409020549190611d44565b6001600160a01b0383166000908152609760205260409020556099546121f49082611e35565b6099556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b612247838383612125565b60c9546001600160a01b031661225b6118a5565b6001600160a01b031614801561227857506001600160a01b038316155b156122cd57816001600160a01b0316836001600160a01b03167f93fa088ec3b37b93af5deae7b6bc55626e2c2dc086b1184bd2fefc28566d6392836040518082815260200191505060405180910390a3612125565b60ca546001600160a01b03166122e16118a5565b6001600160a01b03161480156122fe57506001600160a01b038216155b1561235357816001600160a01b0316836001600160a01b03167fb37c6417ca02c8084d9b4013dd6cb0f56bbd792f58dee3354014d14f714fc16b836040518082815260200191505060405180910390a3612125565b6001600160a01b0382166123a5576040805162461bcd60e51b815260206004820152601460248201527326282a37b5b2b71d1031b0b73737ba10313ab93760611b604482015290519081900360640190fd5b6040805162461bcd60e51b815260206004820152601460248201527326282a37b5b2b71d103737903a3930b739b332b960611b604482015290519081900360640190fd5b3b151590565b600054610100900460ff16806124085750612408611f15565b80612416575060005460ff16155b6124515760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015611fc3576000805460ff1961ff00199091166101001716600117905580156118a2576000805461ff001916905550565b600054610100900460ff16806124a857506124a8611f15565b806124b6575060005460ff16155b6124f15760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff1615801561251c576000805460ff1961ff0019909116610100171660011790555b60006125266118a5565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156118a2576000805461ff001916905550565b600054610100900460ff16806125a157506125a1611f15565b806125af575060005460ff16155b6125ea5760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff16158015612615576000805460ff1961ff0019909116610100171660011790555b6065805460ff1916905580156118a2576000805461ff001916905550565b600054610100900460ff168061264c575061264c611f15565b8061265a575060005460ff16155b6126955760405162461bcd60e51b815260040180806020018281038252602e815260200180612852602e913960400191505060405180910390fd5b600054610100900460ff161580156126c0576000805460ff1961ff0019909116610100171660011790555b82516126d390609a90602086019061270b565b5081516126e790609b90602085019061270b565b50609c805460ff191660121790558015612125576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061274c57805160ff1916838001178555612779565b82800160010185558215612779579182015b8281111561277957825182559160200191906001019061275e565b50612785929150612789565b5090565b5b80821115612785576000815560010161278a56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c67f4c4411c40033af3097fe286134c37559925e5b97a02d767d5328acea9cd564736f6c63430007030033

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.