Contract 0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d 2

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7c5f4354934fead80a23b4838fd9c7e9c3f4785fe793a49fb7ea6c4fe6c7e450Deposit120090182021-10-23 2:09:0114 hrs 45 mins ago0x33bb249fa5afcb53af4ef9091692f0d2bee10906 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00089253
0x2ca8031cd0e3658f1046e6ef1bcbe9d8fe0cdbae294c28ec56cc97e470e871d8Deposit120090082021-10-23 2:08:3114 hrs 46 mins ago0x33bb249fa5afcb53af4ef9091692f0d2bee10906 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00071904
0x3f5474763717d4442ace4c615ca27a098ec42fa24ae638b3717190baf98098bbDeposit119063012021-10-19 10:45:424 days 6 hrs ago0x983783a40e770169dcf49b4efe79af61b4fb9e59 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000637695
0x7eecd12d4178d56088a2183bbe4e734f4b57e6c4d5a97d9459a977759aa3e397Deposit119062982021-10-19 10:45:334 days 6 hrs ago0x983783a40e770169dcf49b4efe79af61b4fb9e59 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000712695
0xf73207312fcd8259953c6b6fee2c495fd9b2216371fd557eb3d8562f13b069b6Deposit118944922021-10-19 0:53:124 days 16 hrs ago0x7cf29f5c1daaf290d837e9c9a13ada0b6ec89e4e IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000637695
0xde31fa39928e5a670ca597cb4acd4b42531ba5d0cb809be8f9d084e340a8d3c8Deposit118837802021-10-18 15:55:575 days 58 mins ago0xfb8ba8ce19c8675b43b89715e49f59676f501209 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000719405
0x3a6e97e85288ac84154dd6d6eee280f32d5d0833e63097047e0e26a1a6fdb9b8Deposit118837752021-10-18 15:55:425 days 58 mins ago0xfb8ba8ce19c8675b43b89715e49f59676f501209 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00079398
0x2c3bc6247d5ff27c5f11ed509fd7aea93ebb6269d4692de2ffc9d21fa99298adDeposit118520042021-10-17 13:16:416 days 3 hrs ago0x876da0c19f486b57c9d851f73d629eecd36f27a0 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000712635
0x619d4c7c763e5123cde28ddd0f40d2614ba3170127ffdb39bb010b51aeb11d60Withdraw118353162021-10-16 23:19:026 days 17 hrs ago0x1bbc92acfca9688c9ac72e85b419821242d54955 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00068172
0x46a5dfc8101adfc44fa2ed2978a0c94b4ad474d75858558572bf4e83dfaeb3ebDeposit118271862021-10-16 16:28:137 days 26 mins ago0x1b7fae68f28a1ace2b9260a2c8059a1dd024f86b IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000973422
0xe6761271fb5ee71d550de890b2fe3574f1e6e7291b0056b5493813f7e3e093e8Deposit118271792021-10-16 16:27:527 days 26 mins ago0x1b7fae68f28a1ace2b9260a2c8059a1dd024f86b IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000712635
0x000ad3bebe1316baa6028a9d17e6aa5a09be0687b40ccc128a3078ceb1d3dc45Withdraw118261162021-10-16 15:34:207 days 1 hr ago0x4a6bbfbb1c7d0104f6356b8111ca266ef915a9c2 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00075672
0x88fb41ff4d815a1d5f8191a6b13371ba3e4dc17f0a89b0322311c98c59c5af5cDeposit118029222021-10-15 20:09:057 days 20 hrs ago0x0116bc7bc94499353d0310190d32e00856aa30d8 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000637635
0xfb4e0b7d89298ff3ec7f495bdacbec2f6f69c2edda229db67304518f19957c86Deposit117965362021-10-15 14:49:368 days 2 hrs ago0xfb8ba8ce19c8675b43b89715e49f59676f501209 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00079398
0x102c288904b75b518d09da705092615889d800aed8c4c7bcb6a8775d5d0e77c8Deposit117440212021-10-13 18:53:229 days 22 hrs ago0x4a6bbfbb1c7d0104f6356b8111ca266ef915a9c2 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00075058
0xbd85e8f40619964a163a3d819fdca5f60e864ff464bfb3ed1a6b6b3ffd04d0c9Deposit117350352021-10-13 11:16:0410 days 5 hrs ago0x983783a40e770169dcf49b4efe79af61b4fb9e59 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000637695
0xf98d477f31533bd2f399fb7d15ef56d9c3708cb22fbe3127658bb46cd2c0d35eDeposit117350332021-10-13 11:15:5810 days 5 hrs ago0x983783a40e770169dcf49b4efe79af61b4fb9e59 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000712695
0x3a5ae2e02bbd0edf75a548cce44c4daebe4f22313a133f4e983cdc9c5bcb1132Deposit117096942021-10-12 13:48:4611 days 3 hrs ago0xfb8ba8ce19c8675b43b89715e49f59676f501209 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00079398
0x20c68c890e0e3c80781691685e04e039a02b53cbcdc2e2cf051ca95568d5212fDeposit116727542021-10-11 6:15:4812 days 10 hrs ago0x9952b53a73f56535cc9d3c3d43a780660ed3d50f IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.0007429
0x1ad4a1577a85d82091b20339d7916839136ebb0ac7589cc48747cab4b09e43a3Deposit116228432021-10-09 12:32:1714 days 4 hrs ago0xfb8ba8ce19c8675b43b89715e49f59676f501209 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.00071898
0x8926b67242f8219ad858a2ee7d77ee648bce7580094eb9091442f3285908d547Deposit115936872021-10-08 12:08:0015 days 4 hrs ago0x983783a40e770169dcf49b4efe79af61b4fb9e59 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000637695
0xaf67583402559fd8724bdf9e9b4e1ab1e5a27a9e0b15a69e5d762a3283a74b74Deposit115936842021-10-08 12:07:5115 days 4 hrs ago0x983783a40e770169dcf49b4efe79af61b4fb9e59 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000712695
0xc2ec418bc2817a5b156f20c139cb91d5383f42a6a3692f9b6656f78829cc2636Withdraw115685062021-10-07 15:08:0716 days 1 hr ago0xfb8ba8ce19c8675b43b89715e49f59676f501209 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000688575
0xc35bef2aba36558188e4d6ba8cbb436226585e4a843fad5bc79cd6c0dbd06a14Withdraw115684792021-10-07 15:06:4616 days 1 hr ago0xfb8ba8ce19c8675b43b89715e49f59676f501209 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000692045
0xa1b3f7bfb1252925ca311742dda5a4dc4abdf4967c3ffa413409797d9f32cdd4Withdraw115670332021-10-07 13:54:2416 days 3 hrs ago0xfb8ba8ce19c8675b43b89715e49f59676f501209 IN  0x2d54f0293aa8b72b0b24d620d83d060cc3d20f9d0 BNB0.000763575
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-03-10
*/

// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: @openzeppelin/contracts/utils/Context.sol

pragma solidity >=0.6.0 <0.8.0;

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

// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        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;
    }
}

// File: localhost/contracts/libs/ISailReferral.sol

pragma solidity 0.6.12;

interface ISailReferral {
    /**
     * @dev Record referral.
     */
    function recordReferral(address user, address referrer) external;

    /**
     * @dev Get the referrer address that referred the user.
     */
    function getReferrer(address user) external view returns (address);
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @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);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(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: localhost/contracts/libs/SafeBEP20.sol

pragma solidity ^0.6.0;




/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(
        IBEP20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IBEP20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeBEP20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            "SafeBEP20: decreased allowance below zero"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IBEP20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeBEP20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed");
        }
    }
}

// File: localhost/contracts/libs/IBEP20.sol

pragma solidity >=0.4.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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: @openzeppelin/contracts/math/SafeMath.sol

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 SafeMath {
    /**
     * @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: localhost/contracts/libs/BEP20.sol

pragma solidity >=0.4.0;






/**
 * @dev Implementation of the {IBEP20} 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 {BEP20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-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 BEP20 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 {IBEP20-approve}.
 */
contract BEP20 is Context, IBEP20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    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.
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external override view returns (address) {
        return owner();
    }

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {BEP20-totalSupply}.
     */
    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {BEP20-balanceOf}.
     */
    function balanceOf(address account) public override view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {BEP20-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 override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {BEP20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * 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 override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, "BEP20: 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 {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero")
        );
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        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), "BEP20: transfer from the zero address");
        require(recipient != address(0), "BEP20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "BEP20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "BEP20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), "BEP20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "BEP20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), "BEP20: approve from the zero address");
        require(spender != address(0), "BEP20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, "BEP20: burn amount exceeds allowance")
        );
    }
}

// File: localhost/contracts/SailToken.sol

pragma solidity 0.6.12;


// SailToken with Governance.
contract SailToken is BEP20("FullSail Finance Token", "SAIL") {
    // Burn address
    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    /// @dev overrides transfer function to meet tokenomics of SAIL
    function _transfer(address sender, address recipient, uint256 amount) internal virtual override {
        if (recipient == BURN_ADDRESS) {
            super._transfer(sender, recipient, amount);
        } else {
            // 2% of every transfer burnt
            uint256 burnAmount = amount.mul(2).div(100);
            // 98% of transfer sent to recipient
            uint256 sendAmount = amount.sub(burnAmount);
            require(amount == sendAmount + burnAmount, "SAIL::transfer: Burn value invalid");

            super._transfer(sender, BURN_ADDRESS, burnAmount);
            super._transfer(sender, recipient, sendAmount);
            amount = sendAmount;
        }
    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    /// @dev A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

      /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "SAIL::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "SAIL::delegateBySig: invalid nonce");
        require(now <= expiry, "SAIL::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "SAIL::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying SAILs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "SAIL::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

// File: localhost/contracts/MasterChef.sol

pragma solidity 0.6.12;








// MasterChef is the master of Sail. He can make Sail and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once SAIL is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChef is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;         // How many LP tokens the user has provided.
        uint256 rewardDebt;     // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of SAILs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accSailPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accSailPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IBEP20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. SAILs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that SAILs distribution occurs.
        uint256 accSailPerShare;   // Accumulated SAILs per share, times 1e12. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
    }

    // The SAIL TOKEN!
    SailToken public sail;
    // Dev address.
    address public devAddress;
    // Deposit Fee address
    address public feeAddress;
    // SAIL tokens created per block.
    uint256 public sailPerBlock;
    // Bonus muliplier for early sail makers.
    uint256 public constant BONUS_MULTIPLIER = 1;

    // Initial emission rate: 1 SAIL per block.
    uint256 public constant INITIAL_EMISSION_RATE = 1 ether;
    // Minimum emission rate: 0.1 SAIL per block.
    uint256 public constant MINIMUM_EMISSION_RATE = 100 finney;
    // Reduce emission every 9,600 blocks ~ 8 hours.
    uint256 public constant EMISSION_REDUCTION_PERIOD_BLOCKS = 9600;
    // Emission reduction rate per period in basis points: 3%.
    uint256 public constant EMISSION_REDUCTION_RATE_PER_PERIOD = 300;
    // Last reduction period index
    uint256 public lastReductionPeriodIndex = 0;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when SAIL mining starts.
    uint256 public startBlock;

    // Sail referral contract address.
    ISailReferral public sailReferral;
    // Referral commission rate in basis points.
    uint16 public referralCommissionRate = 200;
    // Max referral commission rate: 20%.
    uint16 public constant MAXIMUM_REFERRAL_COMMISSION_RATE = 2000;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmissionRateUpdated(address indexed caller, uint256 previousAmount, uint256 newAmount);
    event ReferralCommissionPaid(address indexed user, address indexed referrer, uint256 commissionAmount);

    constructor(
        SailToken _sail,
        uint256 _startBlock
    ) public {
        sail = _sail;
        startBlock = _startBlock;

        devAddress = msg.sender;
        feeAddress = msg.sender;
        sailPerBlock = INITIAL_EMISSION_RATE;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner {
        require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accSailPerShare: 0,
            depositFeeBP: _depositFeeBP
        }));
    }

    // Update the given pool's SAIL allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner {
        require(_depositFeeBP <= 10000, "set: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    // View function to see pending SAILs on frontend.
    function pendingSail(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accSailPerShare = pool.accSailPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 sailReward = multiplier.mul(sailPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accSailPerShare = accSailPerShare.add(sailReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accSailPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 sailReward = multiplier.mul(sailPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        sail.mint(devAddress, sailReward.div(10));
        sail.mint(address(this), sailReward);
        pool.accSailPerShare = pool.accSailPerShare.add(sailReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for SAIL allocation.
    function deposit(uint256 _pid, uint256 _amount, address _referrer) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (_amount > 0 && address(sailReferral) != address(0) && _referrer != address(0) && _referrer != msg.sender) {
            sailReferral.recordReferral(msg.sender, _referrer);
        }
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accSailPerShare).div(1e12).sub(user.rewardDebt);
            if (pending > 0) {
                safeSailTransfer(msg.sender, pending);
                payReferralCommission(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            if (address(pool.lpToken) == address(sail)) {
                uint256 transferTax = _amount.mul(2).div(100);
                _amount = _amount.sub(transferTax);
            }
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accSailPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accSailPerShare).div(1e12).sub(user.rewardDebt);
        if (pending > 0) {
            safeSailTransfer(msg.sender, pending);
            payReferralCommission(msg.sender, pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accSailPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    // Safe sail transfer function, just in case if rounding error causes pool to not have enough SAILs.
    function safeSailTransfer(address _to, uint256 _amount) internal {
        uint256 sailBal = sail.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > sailBal) {
            transferSuccess = sail.transfer(_to, sailBal);
        } else {
            transferSuccess = sail.transfer(_to, _amount);
        }
        require(transferSuccess, "safeSailTransfer: Transfer failed");
    }

    // Update dev address by the previous dev.
    function setDevAddress(address _devAddress) public {
        require(msg.sender == devAddress, "setDevAddress: FORBIDDEN");
        devAddress = _devAddress;
    }

    function setFeeAddress(address _feeAddress) public {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        feeAddress = _feeAddress;
    }

    // Reduce emission rate by 3% every 9,600 blocks ~ 8hours. This function can be called publicly.
    function updateEmissionRate() public {
        require(block.number > startBlock, "updateEmissionRate: Can only be called after mining starts");
        require(sailPerBlock > MINIMUM_EMISSION_RATE, "updateEmissionRate: Emission rate has reached the minimum threshold");

        uint256 currentIndex = block.number.sub(startBlock).div(EMISSION_REDUCTION_PERIOD_BLOCKS);
        if (currentIndex <= lastReductionPeriodIndex) {
            return;
        }

        uint256 newEmissionRate = sailPerBlock;
        for (uint256 index = lastReductionPeriodIndex; index < currentIndex; ++index) {
            newEmissionRate = newEmissionRate.mul(1e4 - EMISSION_REDUCTION_RATE_PER_PERIOD).div(1e4);
        }

        newEmissionRate = newEmissionRate < MINIMUM_EMISSION_RATE ? MINIMUM_EMISSION_RATE : newEmissionRate;
        if (newEmissionRate >= sailPerBlock) {
            return;
        }

        massUpdatePools();
        lastReductionPeriodIndex = currentIndex;
        uint256 previousEmissionRate = sailPerBlock;
        sailPerBlock = newEmissionRate;
        emit EmissionRateUpdated(msg.sender, previousEmissionRate, newEmissionRate);
    }

    // Update the sail referral contract address by the owner
    function setSailReferral(ISailReferral _sailReferral) public onlyOwner {
        sailReferral = _sailReferral;
    }

    // Update referral commission rate by the owner
    function setReferralCommissionRate(uint16 _referralCommissionRate) public onlyOwner {
        require(_referralCommissionRate <= MAXIMUM_REFERRAL_COMMISSION_RATE, "setReferralCommissionRate: invalid referral commission rate basis points");
        referralCommissionRate = _referralCommissionRate;
    }

    // Pay referral commission to the referrer who referred this user.
    function payReferralCommission(address _user, uint256 _pending) internal {
        if (address(sailReferral) != address(0) && referralCommissionRate > 0) {
            address referrer = sailReferral.getReferrer(_user);
            uint256 commissionAmount = _pending.mul(referralCommissionRate).div(10000);

            if (referrer != address(0) && commissionAmount > 0) {
                sail.mint(referrer, commissionAmount);
                emit ReferralCommissionPaid(_user, referrer, commissionAmount);
            }
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract SailToken","name":"_sail","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"EmissionRateUpdated","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"commissionAmount","type":"uint256"}],"name":"ReferralCommissionPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSION_REDUCTION_PERIOD_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSION_REDUCTION_RATE_PER_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_REFERRAL_COMMISSION_RATE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"lastReductionPeriodIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingSail","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accSailPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referralCommissionRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sail","outputs":[{"internalType":"contract SailToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sailPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sailReferral","outputs":[{"internalType":"contract ISailReferral","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_referralCommissionRate","type":"uint16"}],"name":"setReferralCommissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISailReferral","name":"_sailReferral","type":"address"}],"name":"setSailReferral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600655600060095560c8600b60146101000a81548161ffff021916908361ffff1602179055503480156200003957600080fd5b50604051620039fc380380620039fc833981810160405260408110156200005f57600080fd5b81019080805190602001909291908051906020019092919050505060006200008c6200021260201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001808190555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a8190555033600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550670de0b6b3a764000060058190555050506200021a565b600033905090565b6137d2806200022a6000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c806384e82a3311610125578063aec36a71116100ad578063d475bc101161007c578063d475bc10146107f3578063d4adafdf14610827578063d963842214610845578063dfab0dca14610897578063f2fde38b146108db57610211565b8063aec36a7114610751578063b7eee1f11461076f578063d0d41fe11461078d578063d30ef61b146107d157610211565b80638dbb1e3a116100f45780638dbb1e3a1461061c5780638dbdbe6d1461066857806391bb809c146106c057806393f1a40b146106de5780639d677ec11461074757610211565b806384e82a331461051e5780638705fcd4146105865780638aa28550146105ca5780638da5cb5b146105e857610211565b806348b22bfb116101a857806355dbc8261161017757806355dbc8261461049c57806361e0c468146104ce578063630b5ba1146104ec5780636a9a7660146104f6578063715018a61461051457610211565b806348b22bfb1461040057806348cd4cb11461042257806351eb05a6146104405780635312ea8e1461046e57610211565b8063334748d3116101e4578063334748d3146102fe5780633ad10ef6146103605780634127535814610394578063441a3e70146103c857610211565b8063081e3eda146102165780631526fe271461023457806317caf6f1146102ac5780631f02050c146102ca575b600080fd5b61021e61091f565b6040518082815260200191505060405180910390f35b6102606004803603602081101561024a57600080fd5b810190808035906020019092919050505061092c565b604051808673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381526020018261ffff1681526020019550505050505060405180910390f35b6102b461099d565b6040518082815260200191505060405180910390f35b6102d26109a3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61034a6004803603604081101561031457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109c9565b6040518082815260200191505060405180910390f35b610368610c0f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61039c610c35565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103fe600480360360408110156103de57600080fd5b810190808035906020019092919080359060200190929190505050610c5b565b005b610408610f4b565b604051808261ffff16815260200191505060405180910390f35b61042a610f51565b6040518082815260200191505060405180910390f35b61046c6004803603602081101561045657600080fd5b8101908080359060200190929190505050610f57565b005b61049a6004803603602081101561048457600080fd5b81019080803590602001909291905050506112b2565b005b6104cc600480360360208110156104b257600080fd5b81019080803561ffff16906020019092919050505061146e565b005b6104d66115a0565b6040518082815260200191505060405180910390f35b6104f46115ac565b005b6104fe6115d9565b6040518082815260200191505060405180910390f35b61051c6115df565b005b6105846004803603608081101561053457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803561ffff16906020019092919080351515906020019092919050505061174c565b005b6105c86004803603602081101561059c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611999565b005b6105d2611aa0565b6040518082815260200191505060405180910390f35b6105f0611aa5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106526004803603604081101561063257600080fd5b810190808035906020019092919080359060200190929190505050611ace565b6040518082815260200191505060405180910390f35b6106be6004803603606081101561067e57600080fd5b810190808035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611afe565b005b6106c86120e1565b6040518082815260200191505060405180910390f35b61072a600480360360408110156106f457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506120ed565b604051808381526020018281526020019250505060405180910390f35b61074f61211e565b005b610759612312565b6040518082815260200191505060405180910390f35b610777612318565b6040518082815260200191505060405180910390f35b6107cf600480360360208110156107a357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061231e565b005b6107d9612425565b604051808261ffff16815260200191505060405180910390f35b6107fb612439565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61082f61245f565b6040518082815260200191505060405180910390f35b6108956004803603608081101561085b57600080fd5b810190808035906020019092919080359060200190929190803561ffff169060200190929190803515159060200190929190505050612465565b005b6108d9600480360360208110156108ad57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061262f565b005b61091d600480360360208110156108f157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612722565b005b6000600780549050905090565b6007818154811061093957fe5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16905085565b60095481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600784815481106109d957fe5b9060005260206000209060050201905060006008600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ad357600080fd5b505afa158015610ae7573d6000803e3d6000fd5b505050506040513d6020811015610afd57600080fd5b81019080805190602001909291905050509050836002015443118015610b24575060008114155b15610bbf576000610b39856002015443611ace565b90506000610b7c600954610b6e8860010154610b606005548761291490919063ffffffff16565b61291490919063ffffffff16565b61299a90919063ffffffff16565b9050610bba610bab84610b9d64e8d4a510008561291490919063ffffffff16565b61299a90919063ffffffff16565b85612a2390919063ffffffff16565b935050505b610c038360010154610bf564e8d4a51000610be786886000015461291490919063ffffffff16565b61299a90919063ffffffff16565b612aab90919063ffffffff16565b94505050505092915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026001541415610cd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550600060078381548110610ceb57fe5b9060005260206000209060050201905060006008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610dc9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610dd284610f57565b6000610e1c8260010154610e0e64e8d4a51000610e008760030154876000015461291490919063ffffffff16565b61299a90919063ffffffff16565b612aab90919063ffffffff16565b90506000811115610e3c57610e313382612b2e565b610e3b3382612e02565b5b6000841115610eb457610e5c848360000154612aab90919063ffffffff16565b8260000181905550610eb333858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130db9092919063ffffffff16565b5b610ee664e8d4a51000610ed88560030154856000015461291490919063ffffffff16565b61299a90919063ffffffff16565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568866040518082815260200191505060405180910390a3505050600180819055505050565b6107d081565b600a5481565b600060078281548110610f6657fe5b9060005260206000209060050201905080600201544311610f8757506112af565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561101457600080fd5b505afa158015611028573d6000803e3d6000fd5b505050506040513d602081101561103e57600080fd5b810190808051906020019092919050505090506000811480611064575060008260010154145b156110795743826002018190555050506112af565b6000611089836002015443611ace565b905060006110cc6009546110be86600101546110b06005548761291490919063ffffffff16565b61291490919063ffffffff16565b61299a90919063ffffffff16565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611143600a8561299a90919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561119657600080fd5b505af11580156111aa573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561124157600080fd5b505af1158015611255573d6000803e3d6000fd5b505050506112996112868461127864e8d4a510008561291490919063ffffffff16565b61299a90919063ffffffff16565b8560030154612a2390919063ffffffff16565b8460030181905550438460020181905550505050505b50565b6002600154141561132b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555060006007828154811061134257fe5b9060005260206000209060050201905060006008600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001549050600082600001819055506000826001018190555061141233828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130db9092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a35050506001808190555050565b61147661317d565b73ffffffffffffffffffffffffffffffffffffffff16611494611aa5565b73ffffffffffffffffffffffffffffffffffffffff161461151d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6107d061ffff168161ffff161115611580576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604881526020018061361c6048913960600191505060405180910390fd5b80600b60146101000a81548161ffff021916908361ffff16021790555050565b67016345785d8a000081565b6000600780549050905060005b818110156115d5576115ca81610f57565b8060010190506115b9565b5050565b60065481565b6115e761317d565b73ffffffffffffffffffffffffffffffffffffffff16611605611aa5565b73ffffffffffffffffffffffffffffffffffffffff161461168e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b61175461317d565b73ffffffffffffffffffffffffffffffffffffffff16611772611aa5565b73ffffffffffffffffffffffffffffffffffffffff16146117fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6127108261ffff16111561185a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806135f76025913960400191505060405180910390fd5b8015611869576118686115ac565b5b6000600a54431161187c57600a5461187e565b435b905061189585600954612a2390919063ffffffff16565b60098190555060076040518060a001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001878152602001838152602001600081526020018561ffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a5c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f736574466565416464726573733a20464f5242494444454e000000000000000081525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600181565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611af66001611ae88585612aab90919063ffffffff16565b61291490919063ffffffff16565b905092915050565b60026001541415611b77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550600060078481548110611b8e57fe5b9060005260206000209060050201905060006008600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611bfb85610f57565b600084118015611c5a5750600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b8015611c935750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015611ccb57503373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15611d9257600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630c7f7b6b33856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b158015611d7957600080fd5b505af1158015611d8d573d6000803e3d6000fd5b505050505b600081600001541115611e0b576000611de98260010154611ddb64e8d4a51000611dcd8760030154876000015461291490919063ffffffff16565b61299a90919063ffffffff16565b612aab90919063ffffffff16565b90506000811115611e0957611dfe3382612b2e565b611e083382612e02565b5b505b600084111561204a57611e653330868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613185909392919063ffffffff16565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611f21576000611f086064611efa60028861291490919063ffffffff16565b61299a90919063ffffffff16565b9050611f1d8186612aab90919063ffffffff16565b9450505b60008260040160009054906101000a900461ffff1661ffff161115612029576000611f7f612710611f718560040160009054906101000a900461ffff1661ffff168861291490919063ffffffff16565b61299a90919063ffffffff16565b9050611ff2600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130db9092919063ffffffff16565b61201b8161200d878560000154612a2390919063ffffffff16565b612aab90919063ffffffff16565b826000018190555050612049565b612040848260000154612a2390919063ffffffff16565b81600001819055505b5b61207c64e8d4a5100061206e8460030154846000015461291490919063ffffffff16565b61299a90919063ffffffff16565b8160010181905550843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040518082815260200191505060405180910390a3505060018081905550505050565b670de0b6b3a764000081565b6008602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b600a544311612178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180613720603a913960400191505060405180910390fd5b67016345785d8a0000600554116121da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604381526020018061375a6043913960600191505060405180910390fd5b60006122056125806121f7600a5443612aab90919063ffffffff16565b61299a90919063ffffffff16565b905060065481116122165750612310565b60006005549050600060065490505b828110156122675761225a61271061224c61012c612710038561291490919063ffffffff16565b61299a90919063ffffffff16565b9150806001019050612225565b5067016345785d8a0000811061227d5780612287565b67016345785d8a00005b90506005548110612299575050612310565b6122a16115ac565b8160068190555060006005549050816005819055503373ffffffffffffffffffffffffffffffffffffffff167feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d95118284604051808381526020018281526020019250505060405180910390a25050505b565b60055481565b61012c81565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f736574446576416464726573733a20464f5242494444454e000000000000000081525060200191505060405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b60149054906101000a900461ffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61258081565b61246d61317d565b73ffffffffffffffffffffffffffffffffffffffff1661248b611aa5565b73ffffffffffffffffffffffffffffffffffffffff1614612514576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6127108261ffff161115612573576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806136fb6025913960400191505060405180910390fd5b8015612582576125816115ac565b5b6125c7836125b96007878154811061259657fe5b906000526020600020906005020160010154600954612aab90919063ffffffff16565b612a2390919063ffffffff16565b60098190555082600785815481106125db57fe5b90600052602060002090600502016001018190555081600785815481106125fe57fe5b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff16021790555050505050565b61263761317d565b73ffffffffffffffffffffffffffffffffffffffff16612655611aa5565b73ffffffffffffffffffffffffffffffffffffffff16146126de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61272a61317d565b73ffffffffffffffffffffffffffffffffffffffff16612748611aa5565b73ffffffffffffffffffffffffffffffffffffffff16146127d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061368e6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808314156129275760009050612994565b600082840290508284828161293857fe5b041461298f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806136da6021913960400191505060405180910390fd5b809150505b92915050565b6000808211612a11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381612a1a57fe5b04905092915050565b600080828401905083811015612aa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600082821115612b23576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612bb957600080fd5b505afa158015612bcd573d6000803e3d6000fd5b505050506040513d6020811015612be357600080fd5b81019080805190602001909291905050509050600081831115612cd557600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612c9357600080fd5b505af1158015612ca7573d6000803e3d6000fd5b505050506040513d6020811015612cbd57600080fd5b81019080805190602001909291905050509050612da6565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612d6857600080fd5b505af1158015612d7c573d6000803e3d6000fd5b505050506040513d6020811015612d9257600080fd5b810190808051906020019092919050505090505b80612dfc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806135d66021913960400191505060405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015612e7557506000600b60149054906101000a900461ffff1661ffff16115b156130d7576000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634a9fefc7846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612f0557600080fd5b505afa158015612f19573d6000803e3d6000fd5b505050506040513d6020811015612f2f57600080fd5b810190808051906020019092919050505090506000612f7f612710612f71600b60149054906101000a900461ffff1661ffff168661291490919063ffffffff16565b61299a90919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015612fbe5750600081115b156130d457600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561305657600080fd5b505af115801561306a573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f86ddab457291316e0f5496737e5ca67c4037234c32c3be04c48ae96186893a7b836040518082815260200191505060405180910390a35b50505b5050565b6131788363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613246565b505050565b600033905090565b613240846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613246565b50505050565b60606132a8826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166133359092919063ffffffff16565b9050600081511115613330578080602001905160208110156132c957600080fd5b810190808051906020019092919050505061332f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613664602a913960400191505060405180910390fd5b5b505050565b6060613344848460008561334d565b90509392505050565b6060824710156133a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136b46026913960400191505060405180910390fd5b6133b1856134f6565b613423576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106134735780518252602082019150602081019050602083039250613450565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146134d5576040519150601f19603f3d011682016040523d82523d6000602084013e6134da565b606091505b50915091506134ea828286613509565b92505050949350505050565b600080823b905060008111915050919050565b60608315613519578290506135ce565b60008351111561352c5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613593578082015181840152602081019050613578565b50505050905090810190601f1680156135c05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe736166655361696c5472616e736665723a205472616e73666572206661696c65646164643a20696e76616c6964206465706f7369742066656520626173697320706f696e7473736574526566657272616c436f6d6d697373696f6e526174653a20696e76616c696420726566657272616c20636f6d6d697373696f6e207261746520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e7473757064617465456d697373696f6e526174653a2043616e206f6e6c792062652063616c6c6564206166746572206d696e696e6720737461727473757064617465456d697373696f6e526174653a20456d697373696f6e207261746520686173207265616368656420746865206d696e696d756d207468726573686f6c64a2646970667358221220f89b55282470280bc9abb0a638a8f6b93db051877f1e7b46193db85cccaf526564736f6c634300060c00330000000000000000000000008148b58393f00b4b379cbeb8018d3445e0b636a000000000000000000000000000000000000000000000000000000000005524e0

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000008148b58393f00b4b379cbeb8018d3445e0b636a000000000000000000000000000000000000000000000000000000000005524e0

-----Decoded View---------------
Arg [0] : _sail (address): 0x8148b58393f00b4b379cbeb8018d3445e0b636a0
Arg [1] : _startBlock (uint256): 5580000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008148b58393f00b4b379cbeb8018d3445e0b636a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000005524e0


Deployed ByteCode Sourcemap

49662:13821:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53443:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;52053:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52294:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;52459:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;55225:759;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51187:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;51247;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;58792:812;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;52641:62;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;52385:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;56323:808;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;59675:398;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62545:306;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51614:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;56067:180;;;:::i;:::-;;51974:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5482:148;;;:::i;:::-;;53707:660;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;60842:166;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51399:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4831:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;55018:143;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;57200:1540;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51501:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;52135:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;61118:1177;;;:::i;:::-;;51318:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51867:64;;;:::i;:::-;;;;;;;;;;;;;;;;;;;60668:166;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;52549:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;51138:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;51733:63;;;:::i;:::-;;;;;;;;;;;;;;;;;;;54479:463;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62366:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;5785:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;53443:95;53488:7;53515:8;:15;;;;53508:22;;53443:95;:::o;52053:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;52294:34::-;;;;:::o;52459:33::-;;;;;;;;;;;;;:::o;55225:759::-;55298:7;55318:21;55342:8;55351:4;55342:14;;;;;;;;;;;;;;;;;;55318:38;;55367:21;55391:8;:14;55400:4;55391:14;;;;;;;;;;;:21;55406:5;55391:21;;;;;;;;;;;;;;;55367:45;;55423:23;55449:4;:20;;;55423:46;;55480:16;55499:4;:12;;;;;;;;;;;;:22;;;55530:4;55499:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55480:56;;55566:4;:20;;;55551:12;:35;:52;;;;;55602:1;55590:8;:13;;55551:52;55547:349;;;55620:18;55641:49;55655:4;:20;;;55677:12;55641:13;:49::i;:::-;55620:70;;55705:18;55726:70;55780:15;;55726:49;55759:4;:15;;;55726:28;55741:12;;55726:10;:14;;:28;;;;:::i;:::-;:32;;:49;;;;:::i;:::-;:53;;:70;;;;:::i;:::-;55705:91;;55829:55;55849:34;55874:8;55849:20;55864:4;55849:10;:14;;:20;;;;:::i;:::-;:24;;:34;;;;:::i;:::-;55829:15;:19;;:55;;;;:::i;:::-;55811:73;;55547:349;;;55913:63;55960:4;:15;;;55913:42;55950:4;55913:32;55929:15;55913:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:42;;;;:::i;:::-;:46;;:63;;;;:::i;:::-;55906:70;;;;;;55225:759;;;;:::o;51187:25::-;;;;;;;;;;;;;:::o;51247:::-;;;;;;;;;;;;;:::o;58792:812::-;1783:1;2389:7;;:19;;2381:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1783:1;2522:7;:18;;;;58872:21:::1;58896:8;58905:4;58896:14;;;;;;;;;;;;;;;;;;58872:38;;58921:21;58945:8;:14;58954:4;58945:14;;;;;;;;;;;:26;58960:10;58945:26;;;;;;;;;;;;;;;58921:50;;59005:7;58990:4;:11;;;:22;;58982:53;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;59046:16;59057:4;59046:10;:16::i;:::-;59073:15;59091:68;59143:4;:15;;;59091:47;59133:4;59091:37;59107:4;:20;;;59091:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;:51;;:68;;;;:::i;:::-;59073:86;;59184:1;59174:7;:11;59170:138;;;59202:37;59219:10;59231:7;59202:16;:37::i;:::-;59254:42;59276:10;59288:7;59254:21;:42::i;:::-;59170:138;59332:1;59322:7;:11;59318:152;;;59364:24;59380:7;59364:4;:11;;;:15;;:24;;;;:::i;:::-;59350:4;:11;;:38;;;;59403:55;59437:10;59450:7;59403:4;:12;;;;;;;;;;;;:25;;;;:55;;;;;:::i;:::-;59318:152;59498:47;59540:4;59498:37;59514:4;:20;;;59498:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;59480:4;:15;;:65;;;;59582:4;59570:10;59561:35;;;59588:7;59561:35;;;;;;;;;;;;;;;;;;2553:1;;;1739::::0;2701:7;:22;;;;58792:812;;:::o;52641:62::-;52699:4;52641:62;:::o;52385:25::-;;;;:::o;56323:808::-;56375:21;56399:8;56408:4;56399:14;;;;;;;;;;;;;;;;;;56375:38;;56444:4;:20;;;56428:12;:36;56424:75;;56481:7;;;56424:75;56509:16;56528:4;:12;;;;;;;;;;;;:22;;;56559:4;56528:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56509:56;;56592:1;56580:8;:13;:37;;;;56616:1;56597:4;:15;;;:20;56580:37;56576:126;;;56657:12;56634:4;:20;;:35;;;;56684:7;;;;56576:126;56712:18;56733:49;56747:4;:20;;;56769:12;56733:13;:49::i;:::-;56712:70;;56793:18;56814:70;56868:15;;56814:49;56847:4;:15;;;56814:28;56829:12;;56814:10;:14;;:28;;;;:::i;:::-;:32;;:49;;;;:::i;:::-;:53;;:70;;;;:::i;:::-;56793:91;;56895:4;;;;;;;;;;;:9;;;56905:10;;;;;;;;;;;56917:18;56932:2;56917:10;:14;;:18;;;;:::i;:::-;56895:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56947:4;;;;;;;;;;;:9;;;56965:4;56972:10;56947:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57017:60;57042:34;57067:8;57042:20;57057:4;57042:10;:14;;:20;;;;:::i;:::-;:24;;:34;;;;:::i;:::-;57017:4;:20;;;:24;;:60;;;;:::i;:::-;56994:4;:20;;:83;;;;57111:12;57088:4;:20;;:35;;;;56323:808;;;;;;:::o;59675:398::-;1783:1;2389:7;;:19;;2381:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1783:1;2522:7;:18;;;;59747:21:::1;59771:8;59780:4;59771:14;;;;;;;;;;;;;;;;;;59747:38;;59796:21;59820:8;:14;59829:4;59820:14;;;;;;;;;;;:26;59835:10;59820:26;;;;;;;;;;;;;;;59796:50;;59857:14;59874:4;:11;;;59857:28;;59910:1;59896:4;:11;;:15;;;;59940:1;59922:4;:15;;:19;;;;59952:54;59986:10;59999:6;59952:4;:12;;;;;;;;;;;;:25;;;;:54;;;;;:::i;:::-;60052:4;60040:10;60022:43;;;60058:6;60022:43;;;;;;;;;;;;;;;;;;2553:1;;;1739::::0;2701:7;:22;;;;59675:398;:::o;62545:306::-;5062:12;:10;:12::i;:::-;5051:23;;:7;:5;:7::i;:::-;:23;;;5043:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52699:4:::1;62648:59;;:23;:59;;;;62640:144;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62820:23;62795:22;;:48;;;;;;;;;;;;;;;;;;62545:306:::0;:::o;51614:58::-;51662:10;51614:58;:::o;56067:180::-;56112:14;56129:8;:15;;;;56112:32;;56160:11;56155:85;56183:6;56177:3;:12;56155:85;;;56213:15;56224:3;56213:10;:15::i;:::-;56191:5;;;;;56155:85;;;;56067:180;:::o;51974:43::-;;;;:::o;5482:148::-;5062:12;:10;:12::i;:::-;5051:23;;:7;:5;:7::i;:::-;:23;;;5043:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5589:1:::1;5552:40;;5573:6;::::0;::::1;;;;;;;;5552:40;;;;;;;;;;;;5620:1;5603:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;5482:148::o:0;53707:660::-;5062:12;:10;:12::i;:::-;5051:23;;:7;:5;:7::i;:::-;:23;;;5043:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53851:5:::1;53834:13;:22;;;;53826:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53913:11;53909:61;;;53941:17;:15;:17::i;:::-;53909:61;53980:23;54021:10;;54006:12;:25;:53;;54049:10;;54006:53;;;54034:12;54006:53;53980:79;;54088:32;54108:11;54088:15;;:19;;:32;;;;:::i;:::-;54070:15;:50;;;;54131:8;54145:213;;;;;;;;54178:8;54145:213;;;;;;54213:11;54145:213;;;;54256:15;54145:213;;;;54303:1;54145:213;;;;54333:13;54145:213;;;;::::0;54131:228:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5122:1;53707:660:::0;;;;:::o;60842:166::-;60926:10;;;;;;;;;;;60912:24;;:10;:24;;;60904:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60989:11;60976:10;;:24;;;;;;;;;;;;;;;;;;60842:166;:::o;51399:44::-;51442:1;51399:44;:::o;4831:87::-;4877:7;4904:6;;;;;;;;;;;4897:13;;4831:87;:::o;55018:143::-;55090:7;55117:36;51442:1;55117:14;55125:5;55117:3;:7;;:14;;;;:::i;:::-;:18;;:36;;;;:::i;:::-;55110:43;;55018:143;;;;:::o;57200:1540::-;1783:1;2389:7;;:19;;2381:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1783:1;2522:7;:18;;;;57298:21:::1;57322:8;57331:4;57322:14;;;;;;;;;;;;;;;;;;57298:38;;57347:21;57371:8;:14;57380:4;57371:14;;;;;;;;;;;:26;57386:10;57371:26;;;;;;;;;;;;;;;57347:50;;57408:16;57419:4;57408:10;:16::i;:::-;57449:1;57439:7;:11;:50;;;;;57487:1;57454:35;;57462:12;;;;;;;;;;;57454:35;;;;57439:50;:77;;;;;57514:1;57493:23;;:9;:23;;;;57439:77;:104;;;;;57533:10;57520:23;;:9;:23;;;;57439:104;57435:187;;;57560:12;;;;;;;;;;;:27;;;57588:10;57600:9;57560:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;57435:187;57650:1;57636:4;:11;;;:15;57632:298;;;57668:15;57686:68;57738:4;:15;;;57686:47;57728:4;57686:37;57702:4;:20;;;57686:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;:51;;:68;;;;:::i;:::-;57668:86;;57783:1;57773:7;:11;57769:150;;;57805:37;57822:10;57834:7;57805:16;:37::i;:::-;57861:42;57883:10;57895:7;57861:21;:42::i;:::-;57769:150;57632:298;;57954:1;57944:7;:11;57940:667;;;57972:74;58010:10;58031:4;58038:7;57972:4;:12;;;;;;;;;;;;:29;;;;:74;;;;;;:::i;:::-;58098:4;;;;;;;;;;;58065:38;;58073:4;:12;;;;;;;;;;;;58065:38;;;58061:177;;;58124:19;58146:23;58165:3;58146:14;58158:1;58146:7;:11;;:14;;;;:::i;:::-;:18;;:23;;;;:::i;:::-;58124:45;;58198:24;58210:11;58198:7;:11;;:24;;;;:::i;:::-;58188:34;;58061:177;;58276:1;58256:4;:17;;;;;;;;;;;;:21;;;58252:344;;;58298:18;58319:41;58354:5;58319:30;58331:4;:17;;;;;;;;;;;;58319:30;;:7;:11;;:30;;;;:::i;:::-;:34;;:41;;;;:::i;:::-;58298:62;;58379:49;58405:10;;;;;;;;;;;58417;58379:4;:12;;;;;;;;;;;;:25;;;;:49;;;;;:::i;:::-;58461:40;58490:10;58461:24;58477:7;58461:4;:11;;;:15;;:24;;;;:::i;:::-;:28;;:40;;;;:::i;:::-;58447:4;:11;;:54;;;;58252:344;;;;58556:24;58572:7;58556:4;:11;;;:15;;:24;;;;:::i;:::-;58542:4;:11;;:38;;;;58252:344;57940:667;58635:47;58677:4;58635:37;58651:4;:20;;;58635:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;58617:4;:15;;:65;;;;58718:4;58706:10;58698:34;;;58724:7;58698:34;;;;;;;;;;;;;;;;;;2553:1;;1739::::0;2701:7;:22;;;;57200:1540;;;:::o;51501:55::-;51549:7;51501:55;:::o;52135:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;61118:1177::-;61189:10;;61174:12;:25;61166:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51662:10;61281:12;;:36;61273:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61402:20;61425:66;51792:4;61425:28;61442:10;;61425:12;:16;;:28;;;;:::i;:::-;:32;;:66;;;;:::i;:::-;61402:89;;61522:24;;61506:12;:40;61502:79;;61563:7;;;61502:79;61593:23;61619:12;;61593:38;;61647:13;61663:24;;61647:40;;61642:193;61697:12;61689:5;:20;61642:193;;;61753:70;61819:3;61753:61;51928:3;61773;:40;61753:15;:19;;:61;;;;:::i;:::-;:65;;:70;;;;:::i;:::-;61735:88;;61711:7;;;;;61642:193;;;;51662:10;61865:15;:39;:81;;61931:15;61865:81;;;51662:10;61865:81;61847:99;;61980:12;;61961:15;:31;61957:70;;62009:7;;;;61957:70;62039:17;:15;:17::i;:::-;62094:12;62067:24;:39;;;;62117:28;62148:12;;62117:43;;62186:15;62171:12;:30;;;;62237:10;62217:70;;;62249:20;62271:15;62217:70;;;;;;;;;;;;;;;;;;;;;;;;61118:1177;;;;:::o;51318:27::-;;;;:::o;51867:64::-;51928:3;51867:64;:::o;60668:166::-;60752:10;;;;;;;;;;;60738:24;;:10;:24;;;60730:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60815:11;60802:10;;:24;;;;;;;;;;;;;;;;;;60668:166;:::o;52549:42::-;;;;;;;;;;;;;:::o;51138:21::-;;;;;;;;;;;;;:::o;51733:63::-;51792:4;51733:63;:::o;54479:463::-;5062:12;:10;:12::i;:::-;5051:23;;:7;:5;:7::i;:::-;:23;;;5043:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54620:5:::1;54603:13;:22;;;;54595:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54682:11;54678:61;;;54710:17;:15;:17::i;:::-;54678:61;54767:63;54818:11;54767:46;54787:8;54796:4;54787:14;;;;;;;;;;;;;;;;;;:25;;;54767:15;;:19;;:46;;;;:::i;:::-;:50;;:63;;;;:::i;:::-;54749:15;:81;;;;54869:11;54841:8;54850:4;54841:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;54921:13;54891:8;54900:4;54891:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;54479:463:::0;;;;:::o;62366:118::-;5062:12;:10;:12::i;:::-;5051:23;;:7;:5;:7::i;:::-;:23;;;5043:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62463:13:::1;62448:12;;:28;;;;;;;;;;;;;;;;;;62366:118:::0;:::o;5785:244::-;5062:12;:10;:12::i;:::-;5051:23;;:7;:5;:7::i;:::-;:23;;;5043:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5894:1:::1;5874:22;;:8;:22;;;;5866:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5984:8;5955:38;;5976:6;::::0;::::1;;;;;;;;5955:38;;;;;;;;;;;;6013:8;6004:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;5785:244:::0;:::o;25309:220::-;25367:7;25396:1;25391;:6;25387:20;;;25406:1;25399:8;;;;25387:20;25418:9;25434:1;25430;:5;25418:17;;25463:1;25458;25454;:5;;;;;;:10;25446:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25520:1;25513:8;;;25309:220;;;;;:::o;26007:153::-;26065:7;26097:1;26093;:5;26085:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26151:1;26147;:5;;;;;;26140:12;;26007:153;;;;:::o;24430:179::-;24488:7;24508:9;24524:1;24520;:5;24508:17;;24549:1;24544;:6;;24536:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24600:1;24593:8;;;24430:179;;;;:::o;24892:158::-;24950:7;24983:1;24978;:6;;24970:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25041:1;25037;:5;25030:12;;24892:158;;;;:::o;60187:425::-;60263:15;60281:4;;;;;;;;;;;:14;;;60304:4;60281:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60263:47;;60321:20;60374:7;60364;:17;60360:173;;;60416:4;;;;;;;;;;;:13;;;60430:3;60435:7;60416:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60398:45;;60360:173;;;60494:4;;;;;;;;;;;:13;;;60508:3;60513:7;60494:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60476:45;;60360:173;60551:15;60543:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60187:425;;;;:::o;62931:549::-;63052:1;63019:35;;63027:12;;;;;;;;;;;63019:35;;;;:65;;;;;63083:1;63058:22;;;;;;;;;;;:26;;;63019:65;63015:458;;;63101:16;63120:12;;;;;;;;;;;:24;;;63145:5;63120:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63101:50;;63166:24;63193:47;63234:5;63193:36;63206:22;;;;;;;;;;;63193:36;;:8;:12;;:36;;;;:::i;:::-;:40;;:47;;;;:::i;:::-;63166:74;;63281:1;63261:22;;:8;:22;;;;:46;;;;;63306:1;63287:16;:20;63261:46;63257:205;;;63328:4;;;;;;;;;;;:9;;;63338:8;63348:16;63328:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63419:8;63389:57;;63412:5;63389:57;;;63429:16;63389:57;;;;;;;;;;;;;;;;;;63257:205;63015:458;;;62931:549;;:::o;15096:211::-;15213:86;15233:5;15263:23;;;15288:2;15292:5;15240:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15213:19;:86::i;:::-;15096:211;;;:::o;3370:106::-;3423:15;3458:10;3451:17;;3370:106;:::o;15315:248::-;15459:96;15479:5;15509:27;;;15538:4;15544:2;15548:5;15486:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15459:19;:96::i;:::-;15315:248;;;;:::o;17631:774::-;18055:23;18081:69;18109:4;18081:69;;;;;;;;;;;;;;;;;18089:5;18081:27;;;;:69;;;;;:::i;:::-;18055:95;;18185:1;18165:10;:17;:21;18161:237;;;18320:10;18309:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18301:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18161:237;17631:774;;;:::o;10112:195::-;10215:12;10247:52;10269:6;10277:4;10283:1;10286:12;10247:21;:52::i;:::-;10240:59;;10112:195;;;;;:::o;11164:530::-;11291:12;11349:5;11324:21;:30;;11316:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11416:18;11427:6;11416:10;:18::i;:::-;11408:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11542:12;11556:23;11583:6;:11;;11603:5;11611:4;11583:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11541:75;;;;11634:52;11652:7;11661:10;11673:12;11634:17;:52::i;:::-;11627:59;;;;11164:530;;;;;;:::o;7194:422::-;7254:4;7462:12;7573:7;7561:20;7553:28;;7607:1;7600:4;:8;7593:15;;;7194:422;;;:::o;13704:742::-;13819:12;13848:7;13844:595;;;13879:10;13872:17;;;;13844:595;14013:1;13993:10;:17;:21;13989:439;;;14256:10;14250:17;14317:15;14304:10;14300:2;14296:19;14289:44;14204:148;14399:12;14392:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13704:742;;;;;;:::o

Swarm Source

ipfs://f89b55282470280bc9abb0a638a8f6b93db051877f1e7b46193db85cccaf5265
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.