ETH Price: $3,130.51 (-4.40%)

Contract

0xD278754ccAEaFE7DD17Dddd7ea51De43d26A6F51
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw196850802024-04-18 21:39:59209 days ago1713476399IN
0xD278754c...3d26A6F51
0 ETH0.0021283210.13076042
Withdraw144782502022-03-29 1:49:25961 days ago1648518565IN
0xD278754c...3d26A6F51
0 ETH0.0094662445.05910663
Withdraw142013912022-02-14 1:55:351004 days ago1644803735IN
0xD278754c...3d26A6F51
0 ETH0.003515940.21389428
Claim STACK142012952022-02-14 1:34:121004 days ago1644802452IN
0xD278754c...3d26A6F51
0 ETH0.0057110335.82070485
Withdraw140196862022-01-16 23:57:591032 days ago1642377479IN
0xD278754c...3d26A6F51
0 ETH0.0205332597.73786671
Withdraw140176432022-01-16 16:28:201033 days ago1642350500IN
0xD278754c...3d26A6F51
0 ETH0.00940998107.62879262
Withdraw140174372022-01-16 15:44:191033 days ago1642347859IN
0xD278754c...3d26A6F51
0 ETH0.0071369293.8378293
Withdraw140174062022-01-16 15:37:281033 days ago1642347448IN
0xD278754c...3d26A6F51
0 ETH0.0197794499.54477637
Withdraw139586042022-01-07 13:25:371042 days ago1641561937IN
0xD278754c...3d26A6F51
0 ETH0.0072658183.09294361
Claim STACK138531402021-12-22 5:34:321058 days ago1640151272IN
0xD278754c...3d26A6F51
0 ETH0.0072963245.76394112
Withdraw138071862021-12-15 2:59:231065 days ago1639537163IN
0xD278754c...3d26A6F51
0 ETH0.0171441677.05969926
Withdraw138071702021-12-15 2:54:501065 days ago1639536890IN
0xD278754c...3d26A6F51
0 ETH0.01707476.74433656
Withdraw135376752021-11-02 13:06:191108 days ago1635858379IN
0xD278754c...3d26A6F51
0 ETH0.03403777147.03462029
Withdraw133967662021-10-11 10:30:561130 days ago1633948256IN
0xD278754c...3d26A6F51
0 ETH0.0130890556.53773135
Withdraw133220382021-09-29 17:35:111142 days ago1632936911IN
0xD278754c...3d26A6F51
0 ETH0.016545276.20444444
Withdraw133146662021-09-28 14:02:221143 days ago1632837742IN
0xD278754c...3d26A6F51
0 ETH0.0170012177.58579122
Withdraw133062052021-09-27 6:21:001144 days ago1632723660IN
0xD278754c...3d26A6F51
0 ETH0.0109038949.76037339
Withdraw132185782021-09-13 16:56:581158 days ago1631552218IN
0xD278754c...3d26A6F51
0 ETH0.0190972987.15611261
Withdraw131712052021-09-06 8:48:271165 days ago1630918107IN
0xD278754c...3d26A6F51
0 ETH0.0151777469.26429149
Claim STACK131252902021-08-30 6:35:581172 days ago1630305358IN
0xD278754c...3d26A6F51
0 ETH0.0106383763.90756945
Withdraw130498312021-08-18 14:44:031184 days ago1629297843IN
0xD278754c...3d26A6F51
0 ETH0.0072755133.20395796
Withdraw130399042021-08-17 1:56:021185 days ago1629165362IN
0xD278754c...3d26A6F51
0 ETH0.0123703256.45248741
Withdraw130356362021-08-16 10:10:311186 days ago1629108631IN
0xD278754c...3d26A6F51
0 ETH0.0094840443.28085327
Deposit130334592021-08-16 2:02:041186 days ago1629079324IN
0xD278754c...3d26A6F51
0 ETH0.007714962
Withdraw130334032021-08-16 1:50:261186 days ago1629078626IN
0xD278754c...3d26A6F51
0 ETH0.0116137853
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GaugeD2_ETH

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-04-13
*/

// SPDX-License-Identifier: MIT
/*
A simple gauge contract to measure the amount of tokens locked, and reward users in a different token.

This Gauge works for a "sharesOf" based rebalance token.
*/

pragma solidity ^0.6.11;

/*
 * @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;
    }
}

/**
 * @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);
            }
        }
    }
}

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

/**
 * @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;
    }
}

/**
 * @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);
}

/**
 * @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");
        }
    }
}

interface IFarmTokenV1 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function getSharesForUnderlying(uint256 _amountUnderlying) external view returns (uint256);
    function getUnderlyingForShares(uint256 _amountShares) external view returns (uint256);
}

contract GaugeD2_ETH is IERC20, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    address payable public governance = 0xdD7A75CC6c04031629f13848Bc0D07e89C3961Be; // STACK DAO Council Multisig
    address public constant acceptToken = 0x70e51DFc7A9FC391995C2B2f027BC49D4fe01577; // stackToken ETH rebase token

    address public constant STACK = 0xe0955F26515d22E347B17669993FCeFcc73c3a0a; // STACK DAO Token

    uint256 public emissionRate = 16806186020950591;

    uint256 public depositedShares;

    uint256 public constant startBlock = 12234861;
    uint256 public endBlock = startBlock + 1190038;

    uint256 public lastBlock; // last block the distribution has ran
    uint256 public tokensAccrued; // tokens to distribute per weight scaled by 1e18

    struct DepositState {
        uint256 userShares;
        uint256 tokensAccrued;
    }

    mapping(address => DepositState) public shares;

    event Deposit(address indexed from, uint256 amount);
    event Withdraw(address indexed to, uint256 amount);
    event STACKClaimed(address indexed to, uint256 amount);
    // emit mint/burn on deposit/withdraw
    event Transfer(address indexed from, address indexed to, uint256 value);
    // never emitted, only included here to align with ERC20 spec.
    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor() public {
    }

    function setGovernance(address payable _new) external {
        require(msg.sender == governance);
        governance = _new;
    }

    function setEmissionRate(uint256 _new) external {
        require(msg.sender == governance, "GAUGED2: !governance");
        _kick(); // catch up the contract to the current block for old rate
        emissionRate = _new;
    }

    function setEndBlock(uint256 _block) external {
        require(msg.sender == governance, "GAUGED2: !governance");
        require(block.number <= endBlock, "GAUGED2: distribution already done, must start another");
        require(block.number <= _block, "GAUGED2: can't set endBlock to past block");
        
        endBlock = _block;
    }

    /////////// NOTE: Our gauges now implement mock ERC20 functionality in order to interact nicer with block explorers...
    function name() external view returns (string memory){
        return string(abi.encodePacked("gauge-", IFarmTokenV1(acceptToken).name()));
    }
    
    function symbol() external view returns (string memory){
        return string(abi.encodePacked("gauge-", IFarmTokenV1(acceptToken).symbol()));
    }

    function decimals() external view returns (uint8){
        return IFarmTokenV1(acceptToken).decimals();
    }

    function totalSupply() external override view returns (uint256){
        return IFarmTokenV1(acceptToken).getUnderlyingForShares(depositedShares);
    }

    function balanceOf(address _account) public override view returns (uint256){
        return IFarmTokenV1(acceptToken).getUnderlyingForShares(shares[_account].userShares);
    }

    // transfer tokens, not shares
    function transfer(address _recipient, uint256 _amount) external override returns (bool){
        // to squelch
        _recipient;
        _amount;
        revert("transfer not implemented. please withdraw first.");
    }

    function transferFrom(address _sender, address _recipient, uint256 _amount) external override returns (bool){
        // to squelch
        _sender;
        _recipient;
        _amount;
        revert("transferFrom not implemented. please withdraw first.");
    }

    // allow tokens, not shares
    function allowance(address _owner, address _spender) external override view returns (uint256){
        // to squelch
        _owner;
        _spender;
        return 0;
    }

    // approve tokens, not shares
    function approve(address _spender, uint256 _amount) external override returns (bool){
        // to squelch
        _spender;
        _amount;
        revert("approve not implemented. please withdraw first.");
    }
    ////////// END MOCK ERC20 FUNCTIONALITY //////////

    function deposit(uint256 _amount) nonReentrant external {
        require(block.number <= endBlock, "GAUGED2: distribution over");

        _claimSTACK(msg.sender);

        // trusted contracts
        IERC20(acceptToken).safeTransferFrom(msg.sender, address(this), _amount);
        uint256 _sharesFor = IFarmTokenV1(acceptToken).getSharesForUnderlying(_amount);

        DepositState memory _state = shares[msg.sender];

        _state.userShares = _state.userShares.add(_sharesFor);
        depositedShares = depositedShares.add(_sharesFor);

        emit Deposit(msg.sender, _amount);
        emit Transfer(address(0), msg.sender, _amount);
        shares[msg.sender] = _state;
    }

    function withdraw(uint256 _amount) nonReentrant external {
        _claimSTACK(msg.sender);

        DepositState memory _state = shares[msg.sender];
        uint256 _sharesFor = IFarmTokenV1(acceptToken).getSharesForUnderlying(_amount);

        require(_sharesFor <= _state.userShares, "GAUGED2: insufficient balance");

        _state.userShares = _state.userShares.sub(_sharesFor);
        depositedShares = depositedShares.sub(_sharesFor);

        emit Withdraw(msg.sender, _amount);
        emit Transfer(msg.sender, address(0), _amount);
        shares[msg.sender] = _state;

        IERC20(acceptToken).safeTransfer(msg.sender, _amount);
    }

    function claimSTACK() nonReentrant external returns (uint256) {
        return _claimSTACK(msg.sender);
    }

    function _claimSTACK(address _user) internal returns (uint256) {
        _kick();

        DepositState memory _state = shares[_user];
        if (_state.tokensAccrued == tokensAccrued){ // user doesn't have any accrued tokens
            return 0;
        }
        else {
            uint256 _tokensAccruedDiff = tokensAccrued.sub(_state.tokensAccrued);
            uint256 _tokensGive = _tokensAccruedDiff.mul(_state.userShares).div(1e18);

            _state.tokensAccrued = tokensAccrued;
            shares[_user] = _state;

            // if the guage has enough tokens to grant the user, then send their tokens
            // otherwise, don't fail, just log STACK claimed, and a reimbursement can be done via chain events
            if (IERC20(STACK).balanceOf(address(this)) >= _tokensGive){
                IERC20(STACK).safeTransfer(_user, _tokensGive);
            }

            // log event
            emit STACKClaimed(_user, _tokensGive);

            return _tokensGive;
        }
    }

    function _kick() internal {
        uint256 _totalDeposited = depositedShares;
        // if there are no tokens committed, then don't kick.
        if (_totalDeposited == 0){
            return;
        }
        // already done for this block || already did all blocks || not started yet
        if (lastBlock == block.number || lastBlock >= endBlock || block.number < startBlock){
            return;
        }

        uint256 _deltaBlock;
        // edge case where kick was not called for entire period of blocks.
        if (lastBlock <= startBlock && block.number >= endBlock){
            _deltaBlock = endBlock.sub(startBlock);
        }
        // where block.number is past the endBlock
        else if (block.number >= endBlock){
            _deltaBlock = endBlock.sub(lastBlock);
        }
        // where last block is before start
        else if (lastBlock <= startBlock){
            _deltaBlock = block.number.sub(startBlock);
        }
        // normal case, where we are in the middle of the distribution
        else {
            _deltaBlock = block.number.sub(lastBlock);
        }

        uint256 _tokensToAccrue = _deltaBlock.mul(emissionRate);
        tokensAccrued = tokensAccrued.add(_tokensToAccrue.mul(1e18).div(_totalDeposited));

        // if not allowed to mint it's just like the emission rate = 0. So just update the lastBlock.
        // always update last block 
        lastBlock = block.number;
    }

    // decentralized rescue function for any stuck tokens, will return to governance
    function rescue(address _token, uint256 _amount) nonReentrant external {
        require(msg.sender == governance, "GAUGED2: !governance");

        if (_token != address(0)){
            IERC20(_token).safeTransfer(governance, _amount);
        }
        else { // if _tokenContract is 0x0, then escape ETH
            governance.transfer(_amount);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"STACKClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"STACK","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimSTACK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositedShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_block","type":"uint256"}],"name":"setEndBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_new","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"userShares","type":"uint256"},{"internalType":"uint256","name":"tokensAccrued","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensAccrued","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600180546001600160a01b03191673dd7a75cc6c04031629f13848bc0d07e89c3961be179055663bb5231bced23f60025562ccd90360045534801561004857600080fd5b506001600055611a478061005d6000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80637dc78d5d116100de578063ab033ea911610097578063c713aa9411610071578063c713aa9414610427578063ce7c2ac214610444578063dd62ed3e14610483578063ef6a0087146104b15761018e565b8063ab033ea9146103dc578063b6b55f2514610402578063ba4b6fdf1461041f5761018e565b80637dc78d5d14610373578063806b984f1461037b57806395d89b411461038357806396afc4501461038b578063a1bdb15e14610393578063a9059cbb146103b05761018e565b80632e1a7d4d1161014b5780635510f804116101255780635510f804146102f55780635aa6e6751461031957806370a08231146103215780637a4e4ecf146103475761018e565b80632e1a7d4d146102b0578063313ce567146102cf57806348cd4cb1146102ed5761018e565b806306fdde0314610193578063083c632314610210578063095ea7b31461022a57806318160ddd1461026a57806323b872dd146102725780632b4146fb146102a8575b600080fd5b61019b6104b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610218610671565b60408051918252519081900360200190f35b6102566004803603604081101561024057600080fd5b506001600160a01b038135169060200135610677565b604080519115158252519081900360200190f35b6102186106b0565b6102566004803603606081101561028857600080fd5b506001600160a01b0381358116916020810135909116906040013561073d565b610218610776565b6102cd600480360360208110156102c657600080fd5b503561077c565b005b6102d76109ab565b6040805160ff9092168252519081900360200190f35b6102186109fa565b6102fd610a01565b604080516001600160a01b039092168252519081900360200190f35b6102fd610a19565b6102186004803603602081101561033757600080fd5b50356001600160a01b0316610a28565b6102cd6004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610ac5565b610218610bd9565b610218610c39565b61019b610c3f565b610218610c8e565b6102cd600480360360208110156103a957600080fd5b5035610c94565b610256600480360360408110156103c657600080fd5b506001600160a01b038135169060200135610cf7565b6102cd600480360360208110156103f257600080fd5b50356001600160a01b0316610d30565b6102cd6004803603602081101561041857600080fd5b5035610d69565b610218610fa0565b6102cd6004803603602081101561043d57600080fd5b5035610fa6565b61046a6004803603602081101561045a57600080fd5b50356001600160a01b0316611081565b6040805192835260208301919091528051918290030190f35b6102186004803603604081101561049957600080fd5b506001600160a01b038135811691602001351661109a565b6102fd6110a3565b60607370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561050857600080fd5b505afa15801561051c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561054557600080fd5b810190808051604051939291908464010000000082111561056557600080fd5b90830190602082018581111561057a57600080fd5b825164010000000081118282018810171561059457600080fd5b82525081516020918201929091019080838360005b838110156105c15781810151838201526020016105a9565b50505050905090810190601f1680156105ee5780820380516001836020036101000a031916815260200191505b5060405250505060405160200180806567617567652d60d01b81525060060182805190602001908083835b602083106106385780518252601f199092019160209182019101610619565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052905090565b60045481565b600060405162461bcd60e51b815260040180806020018281038252602f815260200180611960602f913960400191505060405180910390fd5b60007370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b031663013a6edd6003546040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561070c57600080fd5b505afa158015610720573d6000803e3d6000fd5b505050506040513d602081101561073657600080fd5b5051905090565b600060405162461bcd60e51b815260040180806020018281038252603481526020018061188f6034913960400191505060405180910390fd5b60035481565b600260005414156107c2576040805162461bcd60e51b815260206004820152601f60248201526000805160206118c3833981519152604482015290519081900360640190fd5b60026000556107d0336110bb565b506107d9611874565b503360009081526007602090815260408083208151808301835281548152600190910154818401528151632708c4c160e11b81526004810186905291519093927370e51dfc7a9fc391995c2b2f027bc49d4fe0157792634e1189829260248083019392829003018186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d602081101561087a57600080fd5b505182519091508111156108d5576040805162461bcd60e51b815260206004820152601d60248201527f474155474544323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b81516108e19082611278565b82526003546108f09082611278565b60035560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a260408051848152905160009133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a333600081815260076020908152604090912084518155908401516001909101556109a1907370e51dfc7a9fc391995c2b2f027bc49d4fe0157790856112d5565b5050600160005550565b60007370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561070c57600080fd5b62bab06d81565b7370e51dfc7a9fc391995c2b2f027bc49d4fe0157781565b6001546001600160a01b031681565b6001600160a01b038116600090815260076020908152604080832054815163013a6edd60e01b8152600481019190915290517370e51dfc7a9fc391995c2b2f027bc49d4fe015779263013a6edd9260248082019391829003018186803b158015610a9157600080fd5b505afa158015610aa5573d6000803e3d6000fd5b505050506040513d6020811015610abb57600080fd5b505190505b919050565b60026000541415610b0b576040805162461bcd60e51b815260206004820152601f60248201526000805160206118c3833981519152604482015290519081900360640190fd5b60026000556001546001600160a01b03163314610b66576040805162461bcd60e51b8152602060048201526014602482015273474155474544323a2021676f7665726e616e636560601b604482015290519081900360640190fd5b6001600160a01b03821615610b9457600154610b8f906001600160a01b038481169116836112d5565b610bd0565b6001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610bce573d6000803e3d6000fd5b505b50506001600055565b600060026000541415610c21576040805162461bcd60e51b815260206004820152601f60248201526000805160206118c3833981519152604482015290519081900360640190fd5b6002600055610c2f336110bb565b9050600160005590565b60055481565b60607370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561050857600080fd5b60025481565b6001546001600160a01b03163314610cea576040805162461bcd60e51b8152602060048201526014602482015273474155474544323a2021676f7665726e616e636560601b604482015290519081900360640190fd5b610cf261132c565b600255565b600060405162461bcd60e51b81526004018080602001828103825260308152602001806119b86030913960400191505060405180910390fd5b6001546001600160a01b03163314610d4757600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60026000541415610daf576040805162461bcd60e51b815260206004820152601f60248201526000805160206118c3833981519152604482015290519081900360640190fd5b6002600055600454431115610e0b576040805162461bcd60e51b815260206004820152601a60248201527f474155474544323a20646973747269627574696f6e206f766572000000000000604482015290519081900360640190fd5b610e14336110bb565b50610e357370e51dfc7a9fc391995c2b2f027bc49d4fe01577333084611425565b60007370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b0316634e118982836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610e8f57600080fd5b505afa158015610ea3573d6000803e3d6000fd5b505050506040513d6020811015610eb957600080fd5b50519050610ec5611874565b50336000908152600760209081526040918290208251808401909352805480845260019091015491830191909152610efd9083611485565b8152600354610f0c9083611485565b60035560408051848152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a260408051848152905133916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3336000908152600760209081526040822083518155920151600192830155555050565b60065481565b6001546001600160a01b03163314610ffc576040805162461bcd60e51b8152602060048201526014602482015273474155474544323a2021676f7665726e616e636560601b604482015290519081900360640190fd5b60045443111561103d5760405162461bcd60e51b81526004018080602001828103825260368152602001806119096036913960400191505060405180910390fd5b8043111561107c5760405162461bcd60e51b815260040180806020018281038252602981526020018061198f6029913960400191505060405180910390fd5b600455565b6007602052600090815260409020805460019091015482565b60005b92915050565b73e0955f26515d22e347b17669993fcefcc73c3a0a81565b60006110c561132c565b6110cd611874565b506001600160a01b038216600090815260076020908152604091829020825180840190935280548352600101549082018190526006541415611113576000915050610ac0565b600061112e826020015160065461127890919063ffffffff16565b9050600061115b670de0b6b3a76400006111558560000151856114e690919063ffffffff16565b9061153f565b60065460208086019182526001600160a01b03881660009081526007825260409081902087518155925160019093019290925581516370a0823160e01b81523060048201529151929350839273e0955f26515d22e347b17669993fcefcc73c3a0a926370a08231926024808301939192829003018186803b1580156111df57600080fd5b505afa1580156111f3573d6000803e3d6000fd5b505050506040513d602081101561120957600080fd5b50511061122f5761122f73e0955f26515d22e347b17669993fcefcc73c3a0a86836112d5565b6040805182815290516001600160a01b038716917f37b8f39235d8f8e3b97c4bf027e858d6b0ef96fa7fb539484a495f68c0fbe18e919081900360200190a29250610ac0915050565b6000828211156112cf576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526113279084906115a6565b505050565b6003548061133a5750611423565b43600554148061134e575060045460055410155b8061135b575062bab06d43105b156113665750611423565b600062bab06d6005541115801561137f57506004544310155b1561139b576004546113949062bab06d611278565b90506113dd565b60045443106113b35760055460045461139491611278565b62bab06d600554116113cc576113944362bab06d611278565b6005546113da904390611278565b90505b60006113f4600254836114e690919063ffffffff16565b905061141861140f8461115584670de0b6b3a76400006114e6565b60065490611485565b600655505043600555505b565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261147f9085906115a6565b50505050565b6000828201838110156114df576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826114f55750600061109d565b8282028284828161150257fe5b04146114df5760405162461bcd60e51b815260040180806020018281038252602181526020018061193f6021913960400191505060405180910390fd5b6000808211611595576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161159e57fe5b049392505050565b60606115fb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116579092919063ffffffff16565b8051909150156113275780806020019051602081101561161a57600080fd5b50516113275760405162461bcd60e51b815260040180806020018281038252602a8152602001806119e8602a913960400191505060405180910390fd5b6060611666848460008561166e565b949350505050565b6060824710156116af5760405162461bcd60e51b81526004018080602001828103825260268152602001806118e36026913960400191505060405180910390fd5b6116b8856117ca565b611709576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117485780518252601f199092019160209182019101611729565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117aa576040519150601f19603f3d011682016040523d82523d6000602084013e6117af565b606091505b50915091506117bf8282866117d0565b979650505050505050565b3b151590565b606083156117df5750816114df565b8251156117ef5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611839578181015183820152602001611821565b50505050905090810190601f1680156118665780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180604001604052806000815260200160008152509056fe7472616e7366657246726f6d206e6f7420696d706c656d656e7465642e20706c656173652077697468647261772066697273742e5265656e7472616e637947756172643a207265656e7472616e742063616c6c00416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c474155474544323a20646973747269627574696f6e20616c726561647920646f6e652c206d75737420737461727420616e6f74686572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77617070726f7665206e6f7420696d706c656d656e7465642e20706c656173652077697468647261772066697273742e474155474544323a2063616e27742073657420656e64426c6f636b20746f207061737420626c6f636b7472616e73666572206e6f7420696d706c656d656e7465642e20706c656173652077697468647261772066697273742e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c215d387de0dcbfcf8c5f2afab609e160767339f96af04deadc965f68917b92164736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80637dc78d5d116100de578063ab033ea911610097578063c713aa9411610071578063c713aa9414610427578063ce7c2ac214610444578063dd62ed3e14610483578063ef6a0087146104b15761018e565b8063ab033ea9146103dc578063b6b55f2514610402578063ba4b6fdf1461041f5761018e565b80637dc78d5d14610373578063806b984f1461037b57806395d89b411461038357806396afc4501461038b578063a1bdb15e14610393578063a9059cbb146103b05761018e565b80632e1a7d4d1161014b5780635510f804116101255780635510f804146102f55780635aa6e6751461031957806370a08231146103215780637a4e4ecf146103475761018e565b80632e1a7d4d146102b0578063313ce567146102cf57806348cd4cb1146102ed5761018e565b806306fdde0314610193578063083c632314610210578063095ea7b31461022a57806318160ddd1461026a57806323b872dd146102725780632b4146fb146102a8575b600080fd5b61019b6104b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610218610671565b60408051918252519081900360200190f35b6102566004803603604081101561024057600080fd5b506001600160a01b038135169060200135610677565b604080519115158252519081900360200190f35b6102186106b0565b6102566004803603606081101561028857600080fd5b506001600160a01b0381358116916020810135909116906040013561073d565b610218610776565b6102cd600480360360208110156102c657600080fd5b503561077c565b005b6102d76109ab565b6040805160ff9092168252519081900360200190f35b6102186109fa565b6102fd610a01565b604080516001600160a01b039092168252519081900360200190f35b6102fd610a19565b6102186004803603602081101561033757600080fd5b50356001600160a01b0316610a28565b6102cd6004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610ac5565b610218610bd9565b610218610c39565b61019b610c3f565b610218610c8e565b6102cd600480360360208110156103a957600080fd5b5035610c94565b610256600480360360408110156103c657600080fd5b506001600160a01b038135169060200135610cf7565b6102cd600480360360208110156103f257600080fd5b50356001600160a01b0316610d30565b6102cd6004803603602081101561041857600080fd5b5035610d69565b610218610fa0565b6102cd6004803603602081101561043d57600080fd5b5035610fa6565b61046a6004803603602081101561045a57600080fd5b50356001600160a01b0316611081565b6040805192835260208301919091528051918290030190f35b6102186004803603604081101561049957600080fd5b506001600160a01b038135811691602001351661109a565b6102fd6110a3565b60607370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561050857600080fd5b505afa15801561051c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561054557600080fd5b810190808051604051939291908464010000000082111561056557600080fd5b90830190602082018581111561057a57600080fd5b825164010000000081118282018810171561059457600080fd5b82525081516020918201929091019080838360005b838110156105c15781810151838201526020016105a9565b50505050905090810190601f1680156105ee5780820380516001836020036101000a031916815260200191505b5060405250505060405160200180806567617567652d60d01b81525060060182805190602001908083835b602083106106385780518252601f199092019160209182019101610619565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052905090565b60045481565b600060405162461bcd60e51b815260040180806020018281038252602f815260200180611960602f913960400191505060405180910390fd5b60007370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b031663013a6edd6003546040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561070c57600080fd5b505afa158015610720573d6000803e3d6000fd5b505050506040513d602081101561073657600080fd5b5051905090565b600060405162461bcd60e51b815260040180806020018281038252603481526020018061188f6034913960400191505060405180910390fd5b60035481565b600260005414156107c2576040805162461bcd60e51b815260206004820152601f60248201526000805160206118c3833981519152604482015290519081900360640190fd5b60026000556107d0336110bb565b506107d9611874565b503360009081526007602090815260408083208151808301835281548152600190910154818401528151632708c4c160e11b81526004810186905291519093927370e51dfc7a9fc391995c2b2f027bc49d4fe0157792634e1189829260248083019392829003018186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d602081101561087a57600080fd5b505182519091508111156108d5576040805162461bcd60e51b815260206004820152601d60248201527f474155474544323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b81516108e19082611278565b82526003546108f09082611278565b60035560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a260408051848152905160009133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a333600081815260076020908152604090912084518155908401516001909101556109a1907370e51dfc7a9fc391995c2b2f027bc49d4fe0157790856112d5565b5050600160005550565b60007370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561070c57600080fd5b62bab06d81565b7370e51dfc7a9fc391995c2b2f027bc49d4fe0157781565b6001546001600160a01b031681565b6001600160a01b038116600090815260076020908152604080832054815163013a6edd60e01b8152600481019190915290517370e51dfc7a9fc391995c2b2f027bc49d4fe015779263013a6edd9260248082019391829003018186803b158015610a9157600080fd5b505afa158015610aa5573d6000803e3d6000fd5b505050506040513d6020811015610abb57600080fd5b505190505b919050565b60026000541415610b0b576040805162461bcd60e51b815260206004820152601f60248201526000805160206118c3833981519152604482015290519081900360640190fd5b60026000556001546001600160a01b03163314610b66576040805162461bcd60e51b8152602060048201526014602482015273474155474544323a2021676f7665726e616e636560601b604482015290519081900360640190fd5b6001600160a01b03821615610b9457600154610b8f906001600160a01b038481169116836112d5565b610bd0565b6001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610bce573d6000803e3d6000fd5b505b50506001600055565b600060026000541415610c21576040805162461bcd60e51b815260206004820152601f60248201526000805160206118c3833981519152604482015290519081900360640190fd5b6002600055610c2f336110bb565b9050600160005590565b60055481565b60607370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561050857600080fd5b60025481565b6001546001600160a01b03163314610cea576040805162461bcd60e51b8152602060048201526014602482015273474155474544323a2021676f7665726e616e636560601b604482015290519081900360640190fd5b610cf261132c565b600255565b600060405162461bcd60e51b81526004018080602001828103825260308152602001806119b86030913960400191505060405180910390fd5b6001546001600160a01b03163314610d4757600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60026000541415610daf576040805162461bcd60e51b815260206004820152601f60248201526000805160206118c3833981519152604482015290519081900360640190fd5b6002600055600454431115610e0b576040805162461bcd60e51b815260206004820152601a60248201527f474155474544323a20646973747269627574696f6e206f766572000000000000604482015290519081900360640190fd5b610e14336110bb565b50610e357370e51dfc7a9fc391995c2b2f027bc49d4fe01577333084611425565b60007370e51dfc7a9fc391995c2b2f027bc49d4fe015776001600160a01b0316634e118982836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610e8f57600080fd5b505afa158015610ea3573d6000803e3d6000fd5b505050506040513d6020811015610eb957600080fd5b50519050610ec5611874565b50336000908152600760209081526040918290208251808401909352805480845260019091015491830191909152610efd9083611485565b8152600354610f0c9083611485565b60035560408051848152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a260408051848152905133916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3336000908152600760209081526040822083518155920151600192830155555050565b60065481565b6001546001600160a01b03163314610ffc576040805162461bcd60e51b8152602060048201526014602482015273474155474544323a2021676f7665726e616e636560601b604482015290519081900360640190fd5b60045443111561103d5760405162461bcd60e51b81526004018080602001828103825260368152602001806119096036913960400191505060405180910390fd5b8043111561107c5760405162461bcd60e51b815260040180806020018281038252602981526020018061198f6029913960400191505060405180910390fd5b600455565b6007602052600090815260409020805460019091015482565b60005b92915050565b73e0955f26515d22e347b17669993fcefcc73c3a0a81565b60006110c561132c565b6110cd611874565b506001600160a01b038216600090815260076020908152604091829020825180840190935280548352600101549082018190526006541415611113576000915050610ac0565b600061112e826020015160065461127890919063ffffffff16565b9050600061115b670de0b6b3a76400006111558560000151856114e690919063ffffffff16565b9061153f565b60065460208086019182526001600160a01b03881660009081526007825260409081902087518155925160019093019290925581516370a0823160e01b81523060048201529151929350839273e0955f26515d22e347b17669993fcefcc73c3a0a926370a08231926024808301939192829003018186803b1580156111df57600080fd5b505afa1580156111f3573d6000803e3d6000fd5b505050506040513d602081101561120957600080fd5b50511061122f5761122f73e0955f26515d22e347b17669993fcefcc73c3a0a86836112d5565b6040805182815290516001600160a01b038716917f37b8f39235d8f8e3b97c4bf027e858d6b0ef96fa7fb539484a495f68c0fbe18e919081900360200190a29250610ac0915050565b6000828211156112cf576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526113279084906115a6565b505050565b6003548061133a5750611423565b43600554148061134e575060045460055410155b8061135b575062bab06d43105b156113665750611423565b600062bab06d6005541115801561137f57506004544310155b1561139b576004546113949062bab06d611278565b90506113dd565b60045443106113b35760055460045461139491611278565b62bab06d600554116113cc576113944362bab06d611278565b6005546113da904390611278565b90505b60006113f4600254836114e690919063ffffffff16565b905061141861140f8461115584670de0b6b3a76400006114e6565b60065490611485565b600655505043600555505b565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261147f9085906115a6565b50505050565b6000828201838110156114df576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826114f55750600061109d565b8282028284828161150257fe5b04146114df5760405162461bcd60e51b815260040180806020018281038252602181526020018061193f6021913960400191505060405180910390fd5b6000808211611595576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161159e57fe5b049392505050565b60606115fb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116579092919063ffffffff16565b8051909150156113275780806020019051602081101561161a57600080fd5b50516113275760405162461bcd60e51b815260040180806020018281038252602a8152602001806119e8602a913960400191505060405180910390fd5b6060611666848460008561166e565b949350505050565b6060824710156116af5760405162461bcd60e51b81526004018080602001828103825260268152602001806118e36026913960400191505060405180910390fd5b6116b8856117ca565b611709576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117485780518252601f199092019160209182019101611729565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117aa576040519150601f19603f3d011682016040523d82523d6000602084013e6117af565b606091505b50915091506117bf8282866117d0565b979650505050505050565b3b151590565b606083156117df5750816114df565b8251156117ef5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611839578181015183820152602001611821565b50505050905090810190601f1680156118665780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180604001604052806000815260200160008152509056fe7472616e7366657246726f6d206e6f7420696d706c656d656e7465642e20706c656173652077697468647261772066697273742e5265656e7472616e637947756172643a207265656e7472616e742063616c6c00416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c474155474544323a20646973747269627574696f6e20616c726561647920646f6e652c206d75737420737461727420616e6f74686572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77617070726f7665206e6f7420696d706c656d656e7465642e20706c656173652077697468647261772066697273742e474155474544323a2063616e27742073657420656e64426c6f636b20746f207061737420626c6f636b7472616e73666572206e6f7420696d706c656d656e7465642e20706c656173652077697468647261772066697273742e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c215d387de0dcbfcf8c5f2afab609e160767339f96af04deadc965f68917b92164736f6c634300060c0033

Deployed Bytecode Sourcemap

25793:8720:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28146:147;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26432:46;;;:::i;:::-;;;;;;;;;;;;;;;;29733:220;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29733:220:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;28583:154;;;:::i;29201:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29201:269:0;;;;;;;;;;;;;;;;;:::i;26341:30::-;;;:::i;30730:668::-;;;;;;;;;;;;;;;;-1:-1:-1;30730:668:0;;:::i;:::-;;28464:111;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26380:45;;;:::i;26063:80::-;;;:::i;:::-;;;;-1:-1:-1;;;;;26063:80:0;;;;;;;;;;;;;;25948:78;;;:::i;28745:178::-;;;;;;;;;;;;;;;;-1:-1:-1;28745:178:0;-1:-1:-1;;;;;28745:178:0;;:::i;34136:374::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34136:374:0;;;;;;;;:::i;31406:111::-;;;:::i;26487:24::-;;;:::i;28305:151::-;;;:::i;26285:47::-;;;:::i;27426:231::-;;;;;;;;;;;;;;;;-1:-1:-1;27426:231:0;;:::i;28967:226::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28967:226:0;;;;;;;;:::i;27284:134::-;;;;;;;;;;;;;;;;-1:-1:-1;27284:134:0;-1:-1:-1;;;;;27284:134:0;;:::i;30017:705::-;;;;;;;;;;;;;;;;-1:-1:-1;30017:705:0;;:::i;26557:28::-;;;:::i;27665:349::-;;;;;;;;;;;;;;;;-1:-1:-1;27665:349:0;;:::i;26741:46::-;;;;;;;;;;;;;;;;-1:-1:-1;26741:46:0;-1:-1:-1;;;;;26741:46:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;29511:179;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29511:179:0;;;;;;;;;;:::i;26183:74::-;;;:::i;28146:147::-;28185:13;26101:42;-1:-1:-1;;;;;28251:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;28251:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28251:32:0;;;;;;;;;;-1:-1:-1;28251:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28224:60;;;;;;-1:-1:-1;;;28224:60:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;28224:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28210:75;;28146:147;:::o;26432:46::-;;;;:::o;29733:220::-;29812:4;29888:57;;-1:-1:-1;;;29888:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28583:154;28638:7;26101:42;-1:-1:-1;;;;;28664:48:0;;28713:15;;28664:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28664:65:0;;-1:-1:-1;28583:154:0;:::o;29201:269::-;29304:4;29400:62;;-1:-1:-1;;;29400:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26341:30;;;;:::o;30730:668::-;10723:1;11329:7;;:19;;11321:63;;;;;-1:-1:-1;;;11321:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11321:63:0;;;;;;;;;;;;;;;10723:1;11462:7;:18;30798:23:::1;30810:10;30798:11;:23::i;:::-;;30834:26;;:::i;:::-;-1:-1:-1::0;30870:10:0::1;30863:18;::::0;;;:6:::1;:18;::::0;;;;;;;30834:47;;;;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;30913:57;;-1:-1:-1;;;30913:57:0;;::::1;::::0;::::1;::::0;;;;;30834:47;;30863:18;26101:42:::1;::::0;30913:48:::1;::::0;:57;;;;;30863:18;30913:57;;;;;26101:42;30913:57;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;30913:57:0;31005:17;;30913:57;;-1:-1:-1;30991:31:0;::::1;;30983:73;;;::::0;;-1:-1:-1;;;30983:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;31089:17:::0;;:33:::1;::::0;31111:10;31089:21:::1;:33::i;:::-;31069:53:::0;;31151:15:::1;::::0;:31:::1;::::0;31171:10;31151:19:::1;:31::i;:::-;31133:15;:49:::0;31200:29:::1;::::0;;;;;;;31209:10:::1;::::0;31200:29:::1;::::0;;;;;::::1;::::0;;::::1;31245:41;::::0;;;;;;;31274:1:::1;::::0;31254:10:::1;::::0;31245:41:::1;::::0;;;;::::1;::::0;;::::1;31304:10;31297:18;::::0;;;:6:::1;:18;::::0;;;;;;;:27;;;;;;::::1;::::0;::::1;::::0;;::::1;::::0;31337:53:::1;::::0;26101:42:::1;::::0;31382:7;31337:32:::1;:53::i;:::-;-1:-1:-1::0;;10679:1:0;11641:7;:22;-1:-1:-1;30730:668:0:o;28464:111::-;28507:5;26101:42;-1:-1:-1;;;;;28531:34:0;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26380:45;26417:8;26380:45;:::o;26063:80::-;26101:42;26063:80;:::o;25948:78::-;;;-1:-1:-1;;;;;25948:78:0;;:::o;28745:178::-;-1:-1:-1;;;;;28887:16:0;;28812:7;28887:16;;;:6;:16;;;;;;;;:27;28838:77;;-1:-1:-1;;;28838:77:0;;;;;;;;;;;26101:42;;28838:48;;:77;;;;;;;;;;;26101:42;28838:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28838:77:0;;-1:-1:-1;28745:178:0;;;;:::o;34136:374::-;10723:1;11329:7;;:19;;11321:63;;;;;-1:-1:-1;;;11321:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11321:63:0;;;;;;;;;;;;;;;10723:1;11462:7;:18;34240:10:::1;::::0;-1:-1:-1;;;;;34240:10:0::1;34226;:24;34218:57;;;::::0;;-1:-1:-1;;;34218:57:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;34218:57:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;34292:20:0;::::1;::::0;34288:215:::1;;34356:10;::::0;34328:48:::1;::::0;-1:-1:-1;;;;;34328:27:0;;::::1;::::0;34356:10:::1;34368:7:::0;34328:27:::1;:48::i;:::-;34288:215;;;34463:10;::::0;:28:::1;::::0;-1:-1:-1;;;;;34463:10:0;;::::1;::::0;:28;::::1;;;::::0;34483:7;;34463:10:::1;:28:::0;:10;:28;34483:7;34463:10;:28;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;34288:215;-1:-1:-1::0;;10679:1:0;11641:7;:22;34136:374::o;31406:111::-;31459:7;10723:1;11329:7;;:19;;11321:63;;;;;-1:-1:-1;;;11321:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11321:63:0;;;;;;;;;;;;;;;10723:1;11462:7;:18;31486:23:::1;31498:10;31486:11;:23::i;:::-;31479:30;;10679:1:::0;11641:7;:22;31406:111;:::o;26487:24::-;;;;:::o;28305:151::-;28346:13;26101:42;-1:-1:-1;;;;;28412:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26285:47;;;;:::o;27426:231::-;27507:10;;-1:-1:-1;;;;;27507:10:0;27493;:24;27485:57;;;;;-1:-1:-1;;;27485:57:0;;;;;;;;;;;;-1:-1:-1;;;27485:57:0;;;;;;;;;;;;;;;27553:7;:5;:7::i;:::-;27630:12;:19;27426:231::o;28967:226::-;29049:4;29127:58;;-1:-1:-1;;;29127:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27284:134;27371:10;;-1:-1:-1;;;;;27371:10:0;27357;:24;27349:33;;;;;;27393:10;:17;;-1:-1:-1;;;;;;27393:17:0;-1:-1:-1;;;;;27393:17:0;;;;;;;;;;27284:134::o;30017:705::-;10723:1;11329:7;;:19;;11321:63;;;;;-1:-1:-1;;;11321:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11321:63:0;;;;;;;;;;;;;;;10723:1;11462:7;:18;30108:8:::1;::::0;30092:12:::1;:24;;30084:63;;;::::0;;-1:-1:-1;;;30084:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;30160:23;30172:10;30160:11;:23::i;:::-;-1:-1:-1::0;30226:72:0::1;26101:42;30263:10;30283:4;30290:7:::0;30226:36:::1;:72::i;:::-;30309:18;26101:42;-1:-1:-1::0;;;;;30330:48:0::1;;30379:7;30330:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;30330:57:0;;-1:-1:-1;30400:26:0::1;;:::i;:::-;-1:-1:-1::0;30436:10:0::1;30429:18;::::0;;;:6:::1;:18;::::0;;;;;;;;30400:47;;;;::::1;::::0;;;;;;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;;30480:33:::1;::::0;30502:10;30480:21:::1;:33::i;:::-;30460:53:::0;;30542:15:::1;::::0;:31:::1;::::0;30562:10;30542:19:::1;:31::i;:::-;30524:15;:49:::0;30591:28:::1;::::0;;;;;;;30599:10:::1;::::0;30591:28:::1;::::0;;;;;::::1;::::0;;::::1;30635:41;::::0;;;;;;;30656:10:::1;::::0;30652:1:::1;::::0;30635:41:::1;::::0;;;;::::1;::::0;;::::1;30694:10;30687:18;::::0;;;:6:::1;:18;::::0;;;;;;:27;;;;;::::1;::::0;::::1;::::0;;::::1;::::0;11641:22;-1:-1:-1;;30017:705:0:o;26557:28::-;;;;:::o;27665:349::-;27744:10;;-1:-1:-1;;;;;27744:10:0;27730;:24;27722:57;;;;;-1:-1:-1;;;27722:57:0;;;;;;;;;;;;-1:-1:-1;;;27722:57:0;;;;;;;;;;;;;;;27814:8;;27798:12;:24;;27790:91;;;;-1:-1:-1;;;27790:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27916:6;27900:12;:22;;27892:76;;;;-1:-1:-1;;;27892:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27989:8;:17;27665:349::o;26741:46::-;;;;;;;;;;;;;;;;;;;:::o;29511:179::-;29596:7;29511:179;;;;;:::o;26183:74::-;26215:42;26183:74;:::o;31525:1030::-;31579:7;31599;:5;:7::i;:::-;31619:26;;:::i;:::-;-1:-1:-1;;;;;;31648:13:0;;;;;;:6;:13;;;;;;;;;31619:42;;;;;;;;;;;;;;;;;;;;;31700:13;;31676:37;31672:876;;;31776:1;31769:8;;;;;31672:876;31819:26;31848:39;31866:6;:20;;;31848:13;;:17;;:39;;;;:::i;:::-;31819:68;;31902:19;31924:51;31970:4;31924:41;31947:6;:17;;;31924:18;:22;;:41;;;;:::i;:::-;:45;;:51::i;:::-;32015:13;;31992:20;;;;:36;;;-1:-1:-1;;;;;32043:13:0;;;;;;:6;:13;;;;;;;:22;;;;;;;;;;;;;;32287:38;;-1:-1:-1;;;32287:38:0;;32319:4;32287:38;;;;;;31902:73;;-1:-1:-1;31902:73:0;;26215:42;;32287:23;;:38;;;;;31992:20;;32287:38;;;;;26215:42;32287:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32287:38:0;:53;32283:139;;32360:46;26215:42;32387:5;32394:11;32360:26;:46::i;:::-;32469:32;;;;;;;;-1:-1:-1;;;;;32469:32:0;;;;;;;;;;;;;32525:11;-1:-1:-1;32518:18:0;;-1:-1:-1;;32518:18:0;14844:158;14902:7;14935:1;14930;:6;;14922:49;;;;;-1:-1:-1;;;14922:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14989:5:0;;;14844:158::o;22321:177::-;22431:58;;;-1:-1:-1;;;;;22431:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22431:58:0;-1:-1:-1;;;22431:58:0;;;22404:86;;22424:5;;22404:19;:86::i;:::-;22321:177;;;:::o;32563:1479::-;32626:15;;32719:20;32715:58;;32755:7;;;32715:58;32885:12;32872:9;;:25;:50;;;;32914:8;;32901:9;;:21;;32872:50;:79;;;;26417:8;32926:12;:25;32872:79;32868:117;;;32967:7;;;32868:117;32997:19;26417:8;33108:9;;:23;;:51;;;;;33151:8;;33135:12;:24;;33108:51;33104:593;;;33189:8;;:24;;26417:8;33189:12;:24::i;:::-;33175:38;;33104:593;;;33312:8;;33296:12;:24;33292:405;;33363:9;;33350:8;;:23;;:12;:23::i;33292:405::-;26417:8;33449:9;;:23;33445:252;;33502:28;:12;26417:8;33502:16;:28::i;33445:252::-;33675:9;;33658:27;;:12;;:16;:27::i;:::-;33644:41;;33445:252;33709:23;33735:29;33751:12;;33735:11;:15;;:29;;;;:::i;:::-;33709:55;-1:-1:-1;33791:65:0;33809:46;33839:15;33809:25;33709:55;33829:4;33809:19;:25::i;:46::-;33791:13;;;:17;:65::i;:::-;33775:13;:81;-1:-1:-1;;34022:12:0;34010:9;:24;-1:-1:-1;32563:1479:0;:::o;22506:205::-;22634:68;;;-1:-1:-1;;;;;22634:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22634:68:0;-1:-1:-1;;;22634:68:0;;;22607:96;;22627:5;;22607:19;:96::i;:::-;22506:205;;;;:::o;14382:179::-;14440:7;14472:5;;;14496:6;;;;14488:46;;;;;-1:-1:-1;;;14488:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14552:1;14382:179;-1:-1:-1;;;14382:179:0:o;15261:220::-;15319:7;15343:6;15339:20;;-1:-1:-1;15358:1:0;15351:8;;15339:20;15382:5;;;15386:1;15382;:5;:1;15406:5;;;;;:10;15398:56;;;;-1:-1:-1;;;15398:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15959:153;16017:7;16049:1;16045;:5;16037:44;;;;;-1:-1:-1;;;16037:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16103:1;16099;:5;;;;;;;15959:153;-1:-1:-1;;;15959:153:0:o;24626:761::-;25050:23;25076:69;25104:4;25076:69;;;;;;;;;;;;;;;;;25084:5;-1:-1:-1;;;;;25076:27:0;;;:69;;;;;:::i;:::-;25160:17;;25050:95;;-1:-1:-1;25160:21:0;25156:224;;25302:10;25291:30;;;;;;;;;;;;;;;-1:-1:-1;25291:30:0;25283:85;;;;-1:-1:-1;;;25283:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4731:195;4834:12;4866:52;4888:6;4896:4;4902:1;4905:12;4866:21;:52::i;:::-;4859:59;4731:195;-1:-1:-1;;;;4731:195:0:o;5783:530::-;5910:12;5968:5;5943:21;:30;;5935:81;;;;-1:-1:-1;;;5935:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6035:18;6046:6;6035:10;:18::i;:::-;6027:60;;;;;-1:-1:-1;;;6027:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6161:12;6175:23;6202:6;-1:-1:-1;;;;;6202:11:0;6222:5;6230:4;6202:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6202:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6160:75;;;;6253:52;6271:7;6280:10;6292:12;6253:17;:52::i;:::-;6246:59;5783:530;-1:-1:-1;;;;;;;5783:530:0:o;1813:422::-;2180:20;2219:8;;;1813:422::o;8323:742::-;8438:12;8467:7;8463:595;;;-1:-1:-1;8498:10:0;8491:17;;8463:595;8612:17;;:21;8608:439;;8875:10;8869:17;8936:15;8923:10;8919:2;8915:19;8908:44;8823:148;9018:12;9011:20;;-1:-1:-1;;;9011:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://c215d387de0dcbfcf8c5f2afab609e160767339f96af04deadc965f68917b921

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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