Contract 0xddaB2443e18B171077648254991f543413d35275

Contract Overview

Balance:
0 CLV

CLV Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x1610418456397e8a5557c5b536018b3d51356f355c12cc25f7829502f5223944Deposit19133112022-10-04 2:16:484 hrs 31 mins ago0x71abba53768a3d8fab89ff22aba855d36aaf0147 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.000732136
0x2ca551919b2174a12090e5d6ec72376cb0ab342fd9b19b9d526895f31f3dd198Deposit19132822022-10-04 2:11:004 hrs 36 mins ago0x71abba53768a3d8fab89ff22aba855d36aaf0147 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.000731998
0xcf9b7bafbc3d3f96028071f8cc43ad6a99c2f3ec9eefe325cf8a7c690dfd8b83Deposit19132422022-10-04 2:02:484 hrs 45 mins ago0x71abba53768a3d8fab89ff22aba855d36aaf0147 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.001114143
0x5934e6788e81484c20fa29903548f5aebf1626bd927a4785de8a7598d855cd9dDeposit19122252022-10-03 22:38:368 hrs 9 mins ago0x0617a09a1f1d091f51e296738d452e8a42abf475 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00700172
0xa450ff816efa055af82ada6d7d42e40417a1ae4f918c2d8fef62f7d586abe1d3Withdraw19043902022-10-02 20:10:541 day 10 hrs ago0xe5110971c85d7e9884a8238f83b402453aaa9bfa IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00652531
0x73943fc4bb93ce1044d290b6c20fdbdc43242d1fb925e26d7694becee789ab04Deposit19032722022-10-02 16:24:421 day 14 hrs ago0x267363a6af9dec271e990cf8d855ffcb07db9738 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.0077682
0xba500866e08d24bfc02b8b5d6f93d3afed27167d75c2f7fc2d4e01b8dd7b63dcDeposit18992322022-10-02 2:39:362 days 4 hrs ago0x7163b314d7c7c0197cd652f816faa0f9d03074a1 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.0063664
0x47bf8dad2f1192e5659c46d573264968af4d791c1230b526d1a6d39ed95827c9Deposit18901392022-09-30 19:48:303 days 10 hrs ago0x7163b314d7c7c0197cd652f816faa0f9d03074a1 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.0077718
0x9e86209fd7a3784135e0db53709e7ce0d8498187fd39627fd6ebbffbe639ba22Withdraw18886152022-09-30 14:39:243 days 16 hrs ago0x67eba047357e586fa68a18477364bff35ee14767 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00652399
0x31750a029557c4a8e726f2dbae4f5e9fccd3472772f9f687b3289b880f0a382bDeposit18841932022-09-29 23:44:364 days 7 hrs ago0x75f2f9e62e965670e77aadc71cef043ffbd5f383 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00155412
0xc541004a5dc43e8c207f2965275d40d3cc8caee920c549697ae606cb76e3f769Deposit18841412022-09-29 23:33:124 days 7 hrs ago0xe5110971c85d7e9884a8238f83b402453aaa9bfa IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00854898
0x4a18f02fd63e67bbd9372fd699f210c178d7895b2dfa4faf5647b8728d9b8ce8Deposit18838102022-09-29 22:25:184 days 8 hrs ago0x0617a09a1f1d091f51e296738d452e8a42abf475 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00854898
0xb7e53d72835e8ae8346787879b19d94b4388e9a5acf28cfa61f761ea8770c7fdDeposit18827092022-09-29 18:39:304 days 12 hrs ago0x10eb4e9657c1502a2f6c593f0ca6910f4c585bc8 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00854898
0xc8ceff29b165ec8f2ad3425492b2b4cbfef2f4f0c6c4b484abb563e04732a621Deposit18814092022-09-29 14:15:124 days 16 hrs ago0x67eba047357e586fa68a18477364bff35ee14767 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.0096906
0xb10a013cc6c7467d6df2f2212cbf6867c184c43d7b0abf8a5eb32cac3b0ce4efDeposit18790392022-09-29 6:15:125 days 32 mins ago0x0562a625c42931ca279e9baab375bbdf12ead098 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00554444
0x01a77155afc1b7b55e6411bef5a5a789371a72b2bdbe52b31bc934e563c86e05Deposit18790312022-09-29 6:13:245 days 34 mins ago0x70981296c3358984f725bc5309aa82010e9b1726 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00554444
0xa7f93bcfd8e8e45a641da73acc22ebad0f5047909682385b62648891e3dd6a8cDeposit18776942022-09-29 1:42:005 days 5 hrs ago0x32d152ca82cb16aeb7a6de89c6162199f34afabe IN  0xddab2443e18b171077648254991f543413d352750 CLV0.0055418
0x53730c0ec3b336606ac563a257d99c5a0b381a0e5c265785eb9ad998c1ebedb9Deposit18776732022-09-29 1:37:485 days 5 hrs ago0x0ca6df523f93f8bc274d13e18f30e4f2ed1c835a IN  0xddab2443e18b171077648254991f543413d352750 CLV0.00976844
0x6d45ae3e6f67799d8cc82767e451f9830581e4f5117f1eaff6f3b0aa8f0d6785Add18731032022-09-28 10:11:485 days 20 hrs ago0xb87a39c5d3f5c53395ba11b5058655a4a8ac82a5 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.001981475
0x33ff851e9f4ba58bab09d8d799c71426352efcac4cc7bdd893db85572666e9aaSet18729802022-09-28 9:46:545 days 21 hrs ago0xb87a39c5d3f5c53395ba11b5058655a4a8ac82a5 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.0001865375
0x6c6b76603c600f4d101894b5fb06ca8a8c3e3bef5683877e45a2f87f21839e46Add18728512022-09-28 9:20:245 days 21 hrs ago0xb87a39c5d3f5c53395ba11b5058655a4a8ac82a5 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.002701475
0xb6052f4e0bc0d2618deb1e036366de8c165a29603df3be3d67509ec4027bea13Initialize13666432022-07-15 7:33:1880 days 23 hrs ago0xb87a39c5d3f5c53395ba11b5058655a4a8ac82a5 IN  0xddab2443e18b171077648254991f543413d352750 CLV0.0105755475
0xba977591ef706fe416b6e372301c78f68e64146191e3f6abc052f9d326cc5bb50x6080604013666342022-07-15 7:31:0680 days 23 hrs ago0xb87a39c5d3f5c53395ba11b5058655a4a8ac82a5 IN  Create: Excursions0 CLV0.14925351
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0xba500866e08d24bfc02b8b5d6f93d3afed27167d75c2f7fc2d4e01b8dd7b63dc18992322022-10-02 2:39:362 days 4 hrs ago 0xddab2443e18b171077648254991f543413d352750x7163b314d7c7c0197cd652f816faa0f9d03074a142.23883373964037139 CLV
0xba500866e08d24bfc02b8b5d6f93d3afed27167d75c2f7fc2d4e01b8dd7b63dc18992322022-10-02 2:39:362 days 4 hrs ago 0x6d6ad95425fcf315c39fa6f3226471d4f16f27b3 0xddab2443e18b171077648254991f543413d3527542.23883373964037139 CLV
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Excursions

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 clvscan.com on 2022-09-20
*/

/**
 *Submitted for verification at moonriver.moonscan.io on 2021-12-03
*/

// 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/utils/EnumerableSet.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// 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: @openzeppelin/contracts/proxy/Initializable.sol



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


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

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

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !Address.isContract(address(this));
    }
}

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



pragma solidity >=0.6.0 <0.8.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// 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: @openzeppelin/contracts/token/ERC20/IERC20.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol



pragma solidity >=0.6.0 <0.8.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 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 SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(IERC20 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
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 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),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 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(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: 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(IERC20 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, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/Excursions.sol



pragma solidity 0.6.12;






interface IWMOVR {
    function deposit() external payable;
    function withdraw(uint) external;
}

contract Excursions is Initializable, AccessControl {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR");

    // 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 wanWans
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accRewardPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accRewardPerShare` (and `lastRewardTimestamp`) 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 {
        IERC20  lpToken;          // Address of LP token contract.
        IERC20  rewardToken;      // token address for reward

        uint256 currentSupply;   //
        uint256 bonusStartTimestamp;  //
        uint256 bonusEndTimestamp;    // Block number when bonus period ends.

        uint256 lastRewardTimestamp;  // Last block number that reward distribution occurs.
        uint256 accRewardPerShare;// Accumulated reward per share, times 1e12 or 1e32. See below.
        uint256 rewardPerSecond;   // tokens reward per block.
    }

    IWMOVR public wmovr;            // The WMOVR contract
    PoolInfo[] public poolInfo;   // Info of each pool.
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;// Info of each user that stakes LP tokens.
    mapping (address => bool) public isCollateral;
    mapping (address => bool) public isRewardToken;
    
    event Add(uint256 indexed pid, address indexed lpToken, address indexed rewardToken, uint256 startTime, uint256 endTime, uint256 rewardPerSecond);
    event Set(uint256 indexed pid, uint256 endTime, uint256 rewardPerSecond);
    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);

    modifier onlyOperator() {
        require(hasRole(OPERATOR_ROLE, msg.sender), "not operator");
        _;
    }

    modifier onlyValidPool(uint256 _pid) {
        require(_pid < poolInfo.length,"invalid pid");
        _;
    }

    function initialize(address admin, address operator, IWMOVR _wmovr)
        external
        initializer
    {
        _setupRole(DEFAULT_ADMIN_ROLE, admin);
        _setupRole(OPERATOR_ROLE, operator);
        wmovr = _wmovr;
    }

    // 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(address _lpToken, address _rewardToken, uint256 _startTime, uint256 _endTime, uint256 _rewardPerSecond)
        external
        onlyOperator
    {
        require(block.timestamp < _endTime, "invalid end time");
        require(_startTime < _endTime, "invalid start time");
        require(_lpToken != address(0), "invalid lp");
        require(_rewardToken != address(0), "invalid reward token");
        require(_rewardToken != _lpToken, "reward token cannot be same with lpToken");
        require(!isCollateral[_rewardToken], "collateral cannot use for reward");
        require(!isRewardToken[_lpToken], "reward token cannot use for collateral");
        isCollateral[_lpToken] = true;
        isRewardToken[_rewardToken] = true;

        poolInfo.push(PoolInfo({
            lpToken: IERC20(_lpToken),
            rewardToken: IERC20(_rewardToken),
            currentSupply: 0,
            bonusStartTimestamp: _startTime,
            bonusEndTimestamp: _endTime,
            lastRewardTimestamp: block.timestamp > _startTime ? block.timestamp : _startTime,
            accRewardPerShare: 0,
            rewardPerSecond: _rewardPerSecond
        }));
        emit Add((poolInfo.length - 1), _lpToken, _rewardToken, _startTime, _endTime, _rewardPerSecond);
    }

    // Update the given pool's. Can only be called by the owner.
    function set(uint256 _pid, uint256 _rewardPerSecond, uint256 _endTime)
        external
        onlyOperator
    {
        updatePool(_pid);
        poolInfo[_pid].rewardPerSecond = _rewardPerSecond;
        poolInfo[_pid].bonusEndTimestamp = _endTime;

        emit Set(_pid, _rewardPerSecond, _endTime);
    }

    // Update reward vairables 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.timestamp <= pool.lastRewardTimestamp) {
            return;
        }

        if (pool.currentSupply == 0) {
            pool.lastRewardTimestamp = block.timestamp;
            return;
        }

        uint256 multiplier = getMultiplier(pool.lastRewardTimestamp, block.timestamp, pool.bonusStartTimestamp, pool.bonusEndTimestamp);
        uint256 tokenReward = multiplier.mul(pool.rewardPerSecond);
        pool.accRewardPerShare = pool.accRewardPerShare.add(tokenReward.mul(1e32).div(pool.currentSupply));
        pool.lastRewardTimestamp = block.timestamp;
    }

    function deposit(uint256 _pid, uint256 _amount) external onlyValidPool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];

        updatePool(_pid);

        UserInfo storage user = userInfo[_pid][msg.sender];

        uint256 pending = user.amount.mul(pool.accRewardPerShare).div(1e32).sub(user.rewardDebt);

        pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);

        user.amount = user.amount.add(_amount);
        pool.currentSupply = pool.currentSupply.add(_amount);
        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e32);

        if(pending > 0) {
            if (address(pool.rewardToken) == address(wmovr)) { // convert wmovr to wan 
                wmovr.withdraw(pending);
                msg.sender.transfer(pending);
            } else {
                pool.rewardToken.safeTransfer(msg.sender, pending);
            }
        }
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) external onlyValidPool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accRewardPerShare).div(1e32).sub(user.rewardDebt);

        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.currentSupply = pool.currentSupply.sub(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e32);

        if (_amount > 0) {
            pool.lpToken.safeTransfer(msg.sender, _amount);
        }
        if(pending > 0) {
            if (address(pool.rewardToken) == address(wmovr)) { // convert wmovr to movr 
                wmovr.withdraw(pending);
                msg.sender.transfer(pending);
            } else {
                pool.rewardToken.safeTransfer(msg.sender, pending);
            }
        }
        emit Withdraw(msg.sender, _pid, _amount);
    }

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

    receive() external payable {
        require(msg.sender == address(wmovr), "Only support value from WMOVR"); // only accept MOVR via fallback from the WMOVR contract
    }

    /* Internal and Private Function */
    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to, uint256 _startTime, uint256 _endTime) internal pure returns (uint256) {
        if (_from >= _endTime) {
            return 0;
        }

        if (_to < _startTime) {
            return 0;
        }

        if (_from < _startTime) {
            _from = _startTime;
        }

        if (_to > _endTime) {
            _to = _endTime;
        }
        return _to.sub(_from);
    }

    /* Get Function*/
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // View function to see pending reward on frontend.
    function pendingReward(uint256 _pid, address _user) external view onlyValidPool(_pid) returns (uint256, uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;

        if (block.timestamp > pool.lastRewardTimestamp && pool.currentSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardTimestamp, block.timestamp, pool.bonusStartTimestamp, pool.bonusEndTimestamp);
            uint256 tokenReward = multiplier.mul(pool.rewardPerSecond);
            accRewardPerShare = accRewardPerShare.add(tokenReward.mul(1e32).div(pool.currentSupply));
        }
        return (user.amount, user.amount.mul(accRewardPerShare).div(1e32).sub(user.rewardDebt));
    }


}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"lpToken","type":"address"},{"indexed":true,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardPerSecond","type":"uint256"}],"name":"Add","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":"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardPerSecond","type":"uint256"}],"name":"Set","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"contract IWMOVR","name":"_wmovr","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isCollateral","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isRewardToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"contract IERC20","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"currentSupply","type":"uint256"},{"internalType":"uint256","name":"bonusStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"bonusEndTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"rewardPerSecond","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"set","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"},{"inputs":[],"name":"wmovr","outputs":[{"internalType":"contract IWMOVR","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506132b0806100206000396000f3fe60806040526004361061014f5760003560e01c806391d14854116100b6578063ca15c8731161006f578063ca15c87314610871578063cbcf0270146108c0578063d547741f1461094f578063e2bbb158146109aa578063f5b541a6146109ef578063fa0c6fb514610a1a57610219565b806391d14854146105f157806393f1a40b1461066257806398969e82146106d8578063a217fddf1461074e578063b5fd73f814610779578063c0c53b8b146107e057610219565b806343b0e8df1161010857806343b0e8df14610461578063441a3e70146104b057806351eb05a6146104f55780635312ea8e14610530578063630b5ba11461056b5780639010d07c1461058257610219565b8063081e3eda1461021e5780630ee21e54146102495780631526fe27146102b0578063248a9ca31461035c5780632f2ff15d146103ab57806336568abe1461040657610219565b3661021957600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4f6e6c7920737570706f72742076616c75652066726f6d20574d4f565200000081525060200191505060405180910390fd5b005b600080fd5b34801561022a57600080fd5b50610233610a5b565b6040518082815260200191505060405180910390f35b34801561025557600080fd5b506102986004803603602081101561026c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a68565b60405180821515815260200191505060405180910390f35b3480156102bc57600080fd5b506102e9600480360360208110156102d357600080fd5b8101908080359060200190929190505050610a88565b604051808973ffffffffffffffffffffffffffffffffffffffff1681526020018873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018681526020018581526020018481526020018381526020018281526020019850505050505050505060405180910390f35b34801561036857600080fd5b506103956004803603602081101561037f57600080fd5b8101908080359060200190929190505050610b1d565b6040518082815260200191505060405180910390f35b3480156103b757600080fd5b50610404600480360360408110156103ce57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b3d565b005b34801561041257600080fd5b5061045f6004803603604081101561042957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bc7565b005b34801561046d57600080fd5b506104ae6004803603606081101561048457600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610c60565b005b3480156104bc57600080fd5b506104f3600480360360408110156104d357600080fd5b810190808035906020019092919080359060200190929190505050610d90565b005b34801561050157600080fd5b5061052e6004803603602081101561051857600080fd5b81019080803590602001909291905050506111c4565b005b34801561053c57600080fd5b506105696004803603602081101561055357600080fd5b81019080803590602001909291905050506112ac565b005b34801561057757600080fd5b50610580611489565b005b34801561058e57600080fd5b506105c5600480360360408110156105a557600080fd5b8101908080359060200190929190803590602001909291905050506114b6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156105fd57600080fd5b5061064a6004803603604081101561061457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114e8565b60405180821515815260200191505060405180910390f35b34801561066e57600080fd5b506106bb6004803603604081101561068557600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061151a565b604051808381526020018281526020019250505060405180910390f35b3480156106e457600080fd5b50610731600480360360408110156106fb57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061154b565b604051808381526020018281526020019250505060405180910390f35b34801561075a57600080fd5b50610763611748565b6040518082815260200191505060405180910390f35b34801561078557600080fd5b506107c86004803603602081101561079c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061174f565b60405180821515815260200191505060405180910390f35b3480156107ec57600080fd5b5061086f6004803603606081101561080357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061176f565b005b34801561087d57600080fd5b506108aa6004803603602081101561089457600080fd5b81019080803590602001909291905050506118e8565b6040518082815260200191505060405180910390f35b3480156108cc57600080fd5b5061094d600480360360a08110156108e357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019092919050505061190f565b005b34801561095b57600080fd5b506109a86004803603604081101561097257600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612065565b005b3480156109b657600080fd5b506109ed600480360360408110156109cd57600080fd5b8101908080359060200190929190803590602001909291905050506120ef565b005b3480156109fb57600080fd5b50610a04612511565b6040518082815260200191505060405180910390f35b348015610a2657600080fd5b50610a2f612535565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000600380549050905090565b60056020528060005260406000206000915054906101000a900460ff1681565b60038181548110610a9557fe5b90600052602060002090600802016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154908060040154908060050154908060060154908060070154905088565b600060016000838152602001908152602001600020600201549050919050565b610b646001600084815260200190815260200160002060020154610b5f61255b565b6114e8565b610bb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613100602f913960400191505060405180910390fd5b610bc38282612563565b5050565b610bcf61255b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018061324c602f913960400191505060405180910390fd5b610c5c82826125f7565b5050565b610c8a7f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c336114e8565b610cfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f6e6f74206f70657261746f72000000000000000000000000000000000000000081525060200191505060405180910390fd5b610d05836111c4565b8160038481548110610d1357fe5b9060005260206000209060080201600701819055508060038481548110610d3657fe5b906000526020600020906008020160040181905550827f0b21d5252af0bf3501a80676d626577e67cf86107154a76664b5b7994cc8fd8c8383604051808381526020018281526020019250505060405180910390a2505050565b816003805490508110610e0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f696e76616c69642070696400000000000000000000000000000000000000000081525060200191505060405180910390fd5b600060038481548110610e1a57fe5b9060005260206000209060080201905060006004600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610e87856111c4565b6000610eda8260010154610ecc6d04ee2d6d415b85acef8100000000610ebe8760060154876000015461268b90919063ffffffff16565b61271190919063ffffffff16565b61279a90919063ffffffff16565b90506000851115610f2457610efc85836000015461279a90919063ffffffff16565b8260000181905550610f1b85846002015461279a90919063ffffffff16565b83600201819055505b610f5f6d04ee2d6d415b85acef8100000000610f518560060154856000015461268b90919063ffffffff16565b61271190919063ffffffff16565b82600101819055506000851115610fc057610fbf33868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661281d9092919063ffffffff16565b5b600081111561116d57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561111c57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156110b857600080fd5b505af11580156110cc573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611116573d6000803e3d6000fd5b5061116c565b61116b33828560010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661281d9092919063ffffffff16565b5b5b853373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040518082815260200191505060405180910390a3505050505050565b6000600382815481106111d357fe5b90600052602060002090600802019050806005015442116111f457506112a9565b60008160020154141561121057428160050181905550506112a9565b600061122a826005015442846003015485600401546128bf565b9050600061124583600701548361268b90919063ffffffff16565b905061129461128184600201546112736d04ee2d6d415b85acef81000000008561268b90919063ffffffff16565b61271190919063ffffffff16565b846006015461291890919063ffffffff16565b83600601819055504283600501819055505050505b50565b806003805490508110611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f696e76616c69642070696400000000000000000000000000000000000000000081525060200191505060405180910390fd5b60006003838154811061133657fe5b9060005260206000209060080201905060006004600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000811115611433576113c78260000154846002015461279a90919063ffffffff16565b8360020181905550600082600001819055506000826001018190555061143233828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661281d9092919063ffffffff16565b5b843373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a35050505050565b6000600380549050905060005b818110156114b2576114a7816111c4565b806001019050611496565b5050565b60006114e082600160008681526020019081526020016000206000016129a090919063ffffffff16565b905092915050565b600061151282600160008681526020019081526020016000206000016129ba90919063ffffffff16565b905092915050565b6004602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b6000808360038054905081106115c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f696e76616c69642070696400000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600386815481106115d857fe5b9060005260206000209060080201905060006004600088815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260060154905082600501544211801561165d57506000836002015414155b156116e757600061167c846005015442866003015487600401546128bf565b9050600061169785600701548361268b90919063ffffffff16565b90506116e26116d386600201546116c56d04ee2d6d415b85acef81000000008561268b90919063ffffffff16565b61271190919063ffffffff16565b8461291890919063ffffffff16565b925050505b8160000154611739836001015461172b6d04ee2d6d415b85acef810000000061171d86886000015461268b90919063ffffffff16565b61271190919063ffffffff16565b61279a90919063ffffffff16565b95509550505050509250929050565b6000801b81565b60066020528060005260406000206000915054906101000a900460ff1681565b600060019054906101000a900460ff168061178e575061178d6129ea565b5b806117a4575060008054906101000a900460ff16155b6117f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806131ab602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015611849576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6118566000801b856129fb565b6118807f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c846129fb565b81600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156118e25760008060016101000a81548160ff0219169083151502179055505b50505050565b600061190860016000848152602001908152602001600020600001612a09565b9050919050565b6119397f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c336114e8565b6119ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f6e6f74206f70657261746f72000000000000000000000000000000000000000081525060200191505060405180910390fd5b814210611a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f696e76616c696420656e642074696d650000000000000000000000000000000081525060200191505060405180910390fd5b818310611a95576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f696e76616c69642073746172742074696d65000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611b38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f696e76616c6964206c700000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611bdb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f696e76616c69642072657761726420746f6b656e00000000000000000000000081525060200191505060405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611c60576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806131fa6028913960400191505060405180910390fd5b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611d20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f636f6c6c61746572616c2063616e6e6f742075736520666f722072657761726481525060200191505060405180910390fd5b600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611dc3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061312f6026913960400191505060405180910390fd5b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060036040518061010001604052808773ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001858152602001848152602001854211611ed95785611edb565b425b81526020016000815260200183815250908060018154018082558091505060019003906000526020600020906008020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015550508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff166001600380549050037f170a83bf0c36e4cf56ebd3775c694275e73636c0a3dbd99a59d12b244781d81486868660405180848152602001838152602001828152602001935050505060405180910390a45050505050565b61208c600160008481526020019081526020016000206002015461208761255b565b6114e8565b6120e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061317b6030913960400191505060405180910390fd5b6120eb82826125f7565b5050565b81600380549050811061216a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f696e76616c69642070696400000000000000000000000000000000000000000081525060200191505060405180910390fd5b60006003848154811061217957fe5b90600052602060002090600802019050612192846111c4565b60006004600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000612239826001015461222b6d04ee2d6d415b85acef810000000061221d8760060154876000015461268b90919063ffffffff16565b61271190919063ffffffff16565b61279a90919063ffffffff16565b905061228c3330878660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612a1e909392919063ffffffff16565b6122a385836000015461291890919063ffffffff16565b82600001819055506122c285846002015461291890919063ffffffff16565b83600201819055506123056d04ee2d6d415b85acef81000000006122f78560060154856000015461268b90919063ffffffff16565b61271190919063ffffffff16565b826001018190555060008111156124ba57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561246957600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561240557600080fd5b505af1158015612419573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612463573d6000803e3d6000fd5b506124b9565b6124b833828560010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661281d9092919063ffffffff16565b5b5b853373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15876040518082815260200191505060405180910390a3505050505050565b7f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c81565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b61258b8160016000858152602001908152602001600020600001612adf90919063ffffffff16565b156125f35761259861255b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61261f8160016000858152602001908152602001600020600001612b0f90919063ffffffff16565b156126875761262c61255b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008083141561269e576000905061270b565b60008284029050828482816126af57fe5b0414612706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806131d96021913960400191505060405180910390fd5b809150505b92915050565b6000808211612788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161279157fe5b04905092915050565b600082821115612812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6128ba8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612b3f565b505050565b60008185106128d15760009050612910565b828410156128e25760009050612910565b828510156128ee578294505b818411156128fa578193505b61290d858561279a90919063ffffffff16565b90505b949350505050565b600080828401905083811015612996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60006129af8360000183612c2e565b60001c905092915050565b60006129e2836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612cb1565b905092915050565b60006129f530612cd4565b15905090565b612a058282612563565b5050565b6000612a1782600001612ce7565b9050919050565b612ad9846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612b3f565b50505050565b6000612b07836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612cf8565b905092915050565b6000612b37836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612d68565b905092915050565b6060612ba1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612e509092919063ffffffff16565b9050600081511115612c2957808060200190516020811015612bc257600080fd5b8101908080519060200190929190505050612c28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613222602a913960400191505060405180910390fd5b5b505050565b600081836000018054905011612c8f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806130de6022913960400191505060405180910390fd5b826000018281548110612c9e57fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600080823b905060008111915050919050565b600081600001805490509050919050565b6000612d048383612cb1565b612d5d578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612d62565b600090505b92915050565b60008083600101600084815260200190815260200160002054905060008114612e445760006001820390506000600186600001805490500390506000866000018281548110612db357fe5b9060005260206000200154905080876000018481548110612dd057fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480612e0857fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050612e4a565b60009150505b92915050565b6060612e5f8484600085612e68565b90509392505050565b606082471015612ec3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806131556026913960400191505060405180910390fd5b612ecc85612cd4565b612f3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612f8e5780518252602082019150602081019050602083039250612f6b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612ff0576040519150601f19603f3d011682016040523d82523d6000602084013e612ff5565b606091505b5091509150613005828286613011565b92505050949350505050565b60608315613021578290506130d6565b6000835111156130345782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561309b578082015181840152602081019050613080565b50505050905090810190601f1680156130c85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7472657761726420746f6b656e2063616e6e6f742075736520666f7220636f6c6c61746572616c416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7772657761726420746f6b656e2063616e6e6f742062652073616d652077697468206c70546f6b656e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122045db38f7a723a5befc0dd8dd6573f55fb087850017bace3d1ec0b1fff7c48b2264736f6c634300060c0033

Deployed ByteCode Sourcemap

42684:10268:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51278:5;;;;;;;;;;;51256:28;;:10;:28;;;51248:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42684:10268;;;;;51983:95;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;44561:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;44388:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25263:114;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25639:227;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26848:209;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47185:320;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;49576:1038;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47844:692;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;50685:517;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47588:180;;;;;;;;;;;;;:::i;:::-;;24936:138;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;23897:139;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;44445:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;52143:802;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;22642:49;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;44613:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;45396:239;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24210:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;45804:1307;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26111:230;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;48544:980;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;42811:61;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;44329:19;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;51983:95;52028:7;52055:8;:15;;;;52048:22;;51983:95;:::o;44561:45::-;;;;;;;;;;;;;;;;;;;;;;:::o;44388:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;25263:114::-;25320:7;25347:6;:12;25354:4;25347:12;;;;;;;;;;;:22;;;25340:29;;25263:114;;;:::o;25639:227::-;25723:45;25731:6;:12;25738:4;25731:12;;;;;;;;;;;:22;;;25755:12;:10;:12::i;:::-;25723:7;:45::i;:::-;25715:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25833:25;25844:4;25850:7;25833:10;:25::i;:::-;25639:227;;:::o;26848:209::-;26946:12;:10;:12::i;:::-;26935:23;;:7;:23;;;26927:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27023:26;27035:4;27041:7;27023:11;:26::i;:::-;26848:209;;:::o;47185:320::-;45196:34;42851:21;45219:10;45196:7;:34::i;:::-;45188:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47312:16:::1;47323:4;47312:10;:16::i;:::-;47372;47339:8;47348:4;47339:14;;;;;;;;;;;;;;;;;;:30;;:49;;;;47434:8;47399;47408:4;47399:14;;;;;;;;;;;;;;;;;;:32;;:43;;;;47464:4;47460:37;47470:16;47488:8;47460:37;;;;;;;;;;;;;;;;;;;;;;;;47185:320:::0;;;:::o;49576:1038::-;49648:4;45338:8;:15;;;;45331:4;:22;45323:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49665:21:::1;49689:8;49698:4;49689:14;;;;;;;;;;;;;;;;;;49665:38;;49714:21;49738:8;:14;49747:4;49738:14;;;;;;;;;;;:26;49753:10;49738:26;;;;;;;;;;;;;;;49714:50;;49777:16;49788:4;49777:10;:16::i;:::-;49804:15;49822:70;49876:4;:15;;;49822:49;49866:4;49822:39;49838:4;:22;;;49822:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;:53;;:70;;;;:::i;:::-;49804:88;;49918:1;49908:7;:11;49905:148;;;49950:24;49966:7;49950:4;:11;;;:15;;:24;;;;:::i;:::-;49936:4;:11;;:38;;;;50010:31;50033:7;50010:4;:18;;;:22;;:31;;;;:::i;:::-;49989:4;:18;;:52;;;;49905:148;50081:49;50125:4;50081:39;50097:4;:22;;;50081:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;50063:4;:15;;:67;;;;50157:1;50147:7;:11;50143:90;;;50175:46;50201:10;50213:7;50175:4;:12;;;;;;;;;;;;:25;;;;:46;;;;;:::i;:::-;50143:90;50256:1;50246:7;:11;50243:313;;;50315:5;;;;;;;;;;;50278:43;;50286:4;:16;;;;;;;;;;;;50278:43;;;50274:271;;;50368:5;;;;;;;;;;;:14;;;50383:7;50368:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;50410:10;:19;;:28;50430:7;50410:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;50274:271;;;50479:50;50509:10;50521:7;50479:4;:16;;;;;;;;;;;;:29;;;;:50;;;;;:::i;:::-;50274:271;50243:313;50592:4;50580:10;50571:35;;;50598:7;50571:35;;;;;;;;;;;;;;;;;;45379:1;;;49576:1038:::0;;;:::o;47844:692::-;47896:21;47920:8;47929:4;47920:14;;;;;;;;;;;;;;;;;;47896:38;;47968:4;:24;;;47949:15;:43;47945:82;;48009:7;;;47945:82;48065:1;48043:4;:18;;;:23;48039:119;;;48110:15;48083:4;:24;;:42;;;;48140:7;;;48039:119;48170:18;48191:106;48205:4;:24;;;48231:15;48248:4;:24;;;48274:4;:22;;;48191:13;:106::i;:::-;48170:127;;48308:19;48330:36;48345:4;:20;;;48330:10;:14;;:36;;;;:::i;:::-;48308:58;;48402:73;48429:45;48455:4;:18;;;48429:21;48445:4;48429:11;:15;;:21;;;;:::i;:::-;:25;;:45;;;;:::i;:::-;48402:4;:22;;;:26;;:73;;;;:::i;:::-;48377:4;:22;;:98;;;;48513:15;48486:4;:24;;:42;;;;47844:692;;;;;:::o;50685:517::-;50749:4;45338:8;:15;;;;45331:4;:22;45323:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50766:21:::1;50790:8;50799:4;50790:14;;;;;;;;;;;;;;;;;;50766:38;;50815:21;50839:8;:14;50848:4;50839:14;;;;;;;;;;;:26;50854:10;50839:26;;;;;;;;;;;;;;;50815:50;;50876:14;50893:4;:11;;;50876:28;;50927:1;50918:6;:10;50915:221;;;50965:35;50988:4;:11;;;50965:4;:18;;;:22;;:35;;;;:::i;:::-;50944:4;:18;;:56;;;;51029:1;51015:4;:11;;:15;;;;51063:1;51045:4;:15;;:19;;;;51079:45;51105:10;51117:6;51079:4;:12;;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;50915:221;51181:4;51169:10;51151:43;;;51187:6;51151:43;;;;;;;;;;;;;;;;;;45379:1;;;50685:517:::0;;:::o;47588:180::-;47633:14;47650:8;:15;;;;47633:32;;47681:11;47676:85;47704:6;47698:3;:12;47676:85;;;47734:15;47745:3;47734:10;:15::i;:::-;47712:5;;;;;47676:85;;;;47588:180;:::o;24936:138::-;25009:7;25036:30;25060:5;25036:6;:12;25043:4;25036:12;;;;;;;;;;;:20;;:23;;:30;;;;:::i;:::-;25029:37;;24936:138;;;;:::o;23897:139::-;23966:4;23990:38;24020:7;23990:6;:12;23997:4;23990:12;;;;;;;;;;;:20;;:29;;:38;;;;:::i;:::-;23983:45;;23897:139;;;;:::o;44445:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;52143:802::-;52238:7;52247;52223:4;45338:8;:15;;;;45331:4;:22;45323:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52267:21:::1;52291:8;52300:4;52291:14;;;;;;;;;;;;;;;;;;52267:38;;52316:21;52340:8;:14;52349:4;52340:14;;;;;;;;;;;:21;52355:5;52340:21;;;;;;;;;;;;;;;52316:45;;52372:25;52400:4;:22;;;52372:50;;52457:4;:24;;;52439:15;:42;:69;;;;;52507:1;52485:4;:18;;;:23;;52439:69;52435:405;;;52525:18;52546:106;52560:4;:24;;;52586:15;52603:4;:24;;;52629:4;:22;;;52546:13;:106::i;:::-;52525:127;;52667:19;52689:36;52704:4;:20;;;52689:10;:14;;:36;;;;:::i;:::-;52667:58;;52760:68;52782:45;52808:4;:18;;;52782:21;52798:4;52782:11;:15;;:21;;;;:::i;:::-;:25;;:45;;;;:::i;:::-;52760:17;:21;;:68;;;;:::i;:::-;52740:88;;52435:405;;;52858:4;:11;;;52871:65;52920:4;:15;;;52871:44;52910:4;52871:34;52887:17;52871:4;:11;;;:15;;:34;;;;:::i;:::-;:38;;:44;;;;:::i;:::-;:48;;:65;;;;:::i;:::-;52850:87;;;;;;;52143:802:::0;;;;;;:::o;22642:49::-;22687:4;22642:49;;;:::o;44613:46::-;;;;;;;;;;;;;;;;;;;;;;:::o;45396:239::-;20352:13;;;;;;;;;;;:33;;;;20369:16;:14;:16::i;:::-;20352:33;:50;;;;20390:12;;;;;;;;;;20389:13;20352:50;20344:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20466:19;20489:13;;;;;;;;;;;20488:14;20466:36;;20517:14;20513:101;;;20564:4;20548:13;;:20;;;;;;;;;;;;;;;;;;20598:4;20583:12;;:19;;;;;;;;;;;;;;;;;;20513:101;45519:37:::1;22687:4;45530:18:::0;::::1;45550:5;45519:10;:37::i;:::-;45567:35;42851:21;45593:8;45567:10;:35::i;:::-;45621:6;45613:5;;:14;;;;;;;;;;;;;;;;;;20644::::0;20640:68;;;20691:5;20675:13;;:21;;;;;;;;;;;;;;;;;;20640:68;45396:239;;;;:::o;24210:127::-;24273:7;24300:29;:6;:12;24307:4;24300:12;;;;;;;;;;;:20;;:27;:29::i;:::-;24293:36;;24210:127;;;:::o;45804:1307::-;45196:34;42851:21;45219:10;45196:7;:34::i;:::-;45188:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46003:8:::1;45985:15;:26;45977:55;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;46064:8;46051:10;:21;46043:52;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;46134:1;46114:22;;:8;:22;;;;46106:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;46194:1;46170:26;;:12;:26;;;;46162:59;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;46256:8;46240:24;;:12;:24;;;;46232:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46329:12;:26;46342:12;46329:26;;;;;;;;;;;;;;;;;;;;;;;;;46328:27;46320:72;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;46412:13;:23;46426:8;46412:23;;;;;;;;;;;;;;;;;;;;;;;;;46411:24;46403:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46514:4;46489:12;:22;46502:8;46489:22;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;46559:4;46529:13;:27;46543:12;46529:27;;;;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;46576:8;46590:406;;;;;;;;46630:8;46590:406;;;;;;46674:12;46590:406;;;;;;46717:1;46590:406;;;;46754:10;46590:406;;;;46798:8;46590:406;;;;46860:10;46842:15;:28;:59;;46891:10;46842:59;;;46873:15;46842:59;46590:406;;;;46935:1;46590:406;;;;46968:16;46590:406;;::::0;46576:421:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47050:12;47013:90;;47040:8;47013:90;;47036:1;47018:8;:15;;;;:19;47013:90;47064:10;47076:8;47086:16;47013:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45804:1307:::0;;;;;:::o;26111:230::-;26196:45;26204:6;:12;26211:4;26204:12;;;;;;;;;;;:22;;;26228:12;:10;:12::i;:::-;26196:7;:45::i;:::-;26188:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26307:26;26319:4;26325:7;26307:11;:26::i;:::-;26111:230;;:::o;48544:980::-;48615:4;45338:8;:15;;;;45331:4;:22;45323:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48632:21:::1;48656:8;48665:4;48656:14;;;;;;;;;;;;;;;;;;48632:38;;48683:16;48694:4;48683:10;:16::i;:::-;48712:21;48736:8;:14;48745:4;48736:14;;;;;;;;;;;:26;48751:10;48736:26;;;;;;;;;;;;;;;48712:50;;48775:15;48793:70;48847:4;:15;;;48793:49;48837:4;48793:39;48809:4;:22;;;48793:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;:53;;:70;;;;:::i;:::-;48775:88;;48876:74;48914:10;48935:4;48942:7;48876:4;:12;;;;;;;;;;;;:29;;;;:74;;;;;;:::i;:::-;48977:24;48993:7;48977:4;:11;;;:15;;:24;;;;:::i;:::-;48963:4;:11;;:38;;;;49033:31;49056:7;49033:4;:18;;;:22;;:31;;;;:::i;:::-;49012:4;:18;;:52;;;;49093:49;49137:4;49093:39;49109:4;:22;;;49093:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49;;;;:::i;:::-;49075:4;:15;;:67;;;;49168:1;49158:7;:11;49155:312;;;49227:5;;;;;;;;;;;49190:43;;49198:4;:16;;;;;;;;;;;;49190:43;;;49186:270;;;49279:5;;;;;;;;;;;:14;;;49294:7;49279:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;49321:10;:19;;:28;49341:7;49321:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;49186:270;;;49390:50;49420:10;49432:7;49390:4;:16;;;;;;;;;;;;:29;;;;:50;;;;;:::i;:::-;49186:270;49155:312;49502:4;49490:10;49482:34;;;49508:7;49482:34;;;;;;;;;;;;;;;;;;45379:1;;;48544:980:::0;;;:::o;42811:61::-;42851:21;42811:61;:::o;44329:19::-;;;;;;;;;;;;;:::o;716:106::-;769:15;804:10;797:17;;716:106;:::o;28091:188::-;28165:33;28190:7;28165:6;:12;28172:4;28165:12;;;;;;;;;;;:20;;:24;;:33;;;;:::i;:::-;28161:111;;;28247:12;:10;:12::i;:::-;28220:40;;28238:7;28220:40;;28232:4;28220:40;;;;;;;;;;28161:111;28091:188;;:::o;28287:192::-;28362:36;28390:7;28362:6;:12;28369:4;28362:12;;;;;;;;;;;:20;;:27;;:36;;;;:::i;:::-;28358:114;;;28447:12;:10;:12::i;:::-;28420:40;;28438:7;28420:40;;28432:4;28420:40;;;;;;;;;;28358:114;28287:192;;:::o;32162:220::-;32220:7;32249:1;32244;:6;32240:20;;;32259:1;32252:8;;;;32240:20;32271:9;32287:1;32283;:5;32271:17;;32316:1;32311;32307;:5;;;;;;:10;32299:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32373:1;32366:8;;;32162:220;;;;;:::o;32860:153::-;32918:7;32950:1;32946;:5;32938:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33004:1;33000;:5;;;;;;32993:12;;32860:153;;;;:::o;31745:158::-;31803:7;31836:1;31831;:6;;31823:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31894:1;31890;:5;31883:12;;31745:158;;;;:::o;39427:177::-;39510:86;39530:5;39560:23;;;39585:2;39589:5;39537:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39510:19;:86::i;:::-;39427:177;;;:::o;51500:452::-;51612:7;51645:8;51636:5;:17;51632:58;;51677:1;51670:8;;;;51632:58;51712:10;51706:3;:16;51702:57;;;51746:1;51739:8;;;;51702:57;51783:10;51775:5;:18;51771:69;;;51818:10;51810:18;;51771:69;51862:8;51856:3;:14;51852:61;;;51893:8;51887:14;;51852:61;51930:14;51938:5;51930:3;:7;;:14;;;;:::i;:::-;51923:21;;51500:452;;;;;;;:::o;31283:179::-;31341:7;31361:9;31377:1;31373;:5;31361:17;;31402:1;31397;:6;;31389:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31453:1;31446:8;;;31283:179;;;;:::o;9014:158::-;9088:7;9139:22;9143:3;:10;;9155:5;9139:3;:22::i;:::-;9131:31;;9108:56;;9014:158;;;;:::o;8300:167::-;8380:4;8404:55;8414:3;:10;;8450:5;8434:23;;8426:32;;8404:9;:55::i;:::-;8397:62;;8300:167;;;;:::o;20808:114::-;20856:4;20881:33;20908:4;20881:18;:33::i;:::-;20880:34;20873:41;;20808:114;:::o;27640:112::-;27719:25;27730:4;27736:7;27719:10;:25::i;:::-;27640:112;;:::o;8553:117::-;8616:7;8643:19;8651:3;:10;;8643:7;:19::i;:::-;8636:26;;8553:117;;;:::o;39612:205::-;39713:96;39733:5;39763:27;;;39792:4;39798:2;39802:5;39740:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39713:19;:96::i;:::-;39612:205;;;;:::o;7728:152::-;7798:4;7822:50;7827:3;:10;;7863:5;7847:23;;7839:32;;7822:4;:50::i;:::-;7815:57;;7728:152;;;;:::o;8056:158::-;8129:4;8153:53;8161:3;:10;;8197:5;8181:23;;8173:32;;8153:7;:53::i;:::-;8146:60;;8056:158;;;;:::o;41732:761::-;42156:23;42182:69;42210:4;42182:69;;;;;;;;;;;;;;;;;42190:5;42182:27;;;;:69;;;;;:::i;:::-;42156:95;;42286:1;42266:10;:17;:21;42262:224;;;42408:10;42397:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42389:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42262:224;41732:761;;;:::o;5680:204::-;5747:7;5796:5;5775:3;:11;;:18;;;;:26;5767:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5858:3;:11;;5870:5;5858:18;;;;;;;;;;;;;;;;5851:25;;5680:204;;;;:::o;5012:129::-;5085:4;5132:1;5109:3;:12;;:19;5122:5;5109:19;;;;;;;;;;;;:24;;5102:31;;5012:129;;;;:::o;11560:422::-;11620:4;11828:12;11939:7;11927:20;11919:28;;11973:1;11966:4;:8;11959:15;;;11560:422;;;:::o;5227:109::-;5283:7;5310:3;:11;;:18;;;;5303:25;;5227:109;;;:::o;2792:414::-;2855:4;2877:21;2887:3;2892:5;2877:9;:21::i;:::-;2872:327;;2915:3;:11;;2932:5;2915:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3098:3;:11;;:18;;;;3076:3;:12;;:19;3089:5;3076:19;;;;;;;;;;;:40;;;;3138:4;3131:11;;;;2872:327;3182:5;3175:12;;2792:414;;;;;:::o;3382:1544::-;3448:4;3566:18;3587:3;:12;;:19;3600:5;3587:19;;;;;;;;;;;;3566:40;;3637:1;3623:10;:15;3619:1300;;3985:21;4022:1;4009:10;:14;3985:38;;4038:17;4079:1;4058:3;:11;;:18;;;;:22;4038:42;;4325:17;4345:3;:11;;4357:9;4345:22;;;;;;;;;;;;;;;;4325:42;;4491:9;4462:3;:11;;4474:13;4462:26;;;;;;;;;;;;;;;:38;;;;4610:1;4594:13;:17;4568:3;:12;;:23;4581:9;4568:23;;;;;;;;;;;:43;;;;4720:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;4815:3;:12;;:19;4828:5;4815:19;;;;;;;;;;;4808:26;;;4858:4;4851:11;;;;;;;;3619:1300;4902:5;4895:12;;;3382:1544;;;;;:::o;14478:195::-;14581:12;14613:52;14635:6;14643:4;14649:1;14652:12;14613:21;:52::i;:::-;14606:59;;14478:195;;;;;:::o;15530:530::-;15657:12;15715:5;15690:21;:30;;15682:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15782:18;15793:6;15782:10;:18::i;:::-;15774:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15908:12;15922:23;15949:6;:11;;15969:5;15977:4;15949:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15907:75;;;;16000:52;16018:7;16027:10;16039:12;16000:17;:52::i;:::-;15993:59;;;;15530:530;;;;;;:::o;18070:742::-;18185:12;18214:7;18210:595;;;18245:10;18238:17;;;;18210:595;18379:1;18359:10;:17;:21;18355:439;;;18622:10;18616:17;18683:15;18670:10;18666:2;18662:19;18655:44;18570:148;18765:12;18758:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18070:742;;;;;;:::o

Swarm Source

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