ETH Price: $3,552.52 (+7.74%)

Contract

0xC8e9EfeCef247E6C4a338551AA864571Daf50e89
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw148039162022-05-19 8:21:27923 days ago1652948487IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0010327915.98414224
Stake144213862022-03-20 5:37:07983 days ago1647754627IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0017231531.19564151
Withdraw143720852022-03-12 12:58:35991 days ago1647089915IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0008472917.83254623
Stake143525052022-03-09 12:16:27994 days ago1646828187IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0011021819.95802157
Stake142419992022-02-20 9:01:041011 days ago1645347664IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0033314160.32443528
Stake141508892022-02-06 6:36:191025 days ago1644129379IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0026835544.73404414
Stake140805212022-01-26 9:48:101036 days ago1643190490IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0053193596.32150723
Withdraw140551332022-01-22 11:25:431040 days ago1642850743IN
0xC8e9EfeC...1Daf50e89
0 ETH0.00544259114.54716342
Stake140423442022-01-20 12:12:471042 days ago1642680767IN
0xC8e9EfeC...1Daf50e89
0 ETH0.00658359119.21398106
Stake139961842022-01-13 8:49:531049 days ago1642063793IN
0xC8e9EfeC...1Daf50e89
0 ETH0.00721063130.56836873
Stake139689602022-01-09 3:43:351053 days ago1641699815IN
0xC8e9EfeC...1Daf50e89
0 ETH0.00666041120.63127994
Withdraw139565852022-01-07 6:07:101055 days ago1641535630IN
0xC8e9EfeC...1Daf50e89
0 ETH0.00483831101.82919081
Stake139372192022-01-04 5:57:081058 days ago1641275828IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0048902888.5712432
Withdraw139320192022-01-03 10:48:511059 days ago1641206931IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0048395269.74381485
Withdraw139255612022-01-02 10:51:361060 days ago1641120696IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0029996963.1488195
Withdraw139238052022-01-02 4:13:361060 days ago1641096816IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0042446589.33483523
Stake139138452021-12-31 15:12:411062 days ago1640963561IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0047269685.59467809
Withdraw139125132021-12-31 10:08:581062 days ago1640945338IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0053162382.30737678
Stake138993512021-12-29 9:18:561064 days ago1640769536IN
0xC8e9EfeC...1Daf50e89
0 ETH0.00809197146.55921188
Stake138809052021-12-26 12:46:341067 days ago1640522794IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0028004550.70993506
Stake138804052021-12-26 11:01:551067 days ago1640516515IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0018667333.80964332
Stake138771992021-12-25 23:04:461067 days ago1640473486IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0027206249.26428846
Stake138680832021-12-24 13:09:411069 days ago1640351381IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0020378936.90969005
Stake138616562021-12-23 13:23:291070 days ago1640265809IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0040042172.50720441
Stake138605022021-12-23 9:06:351070 days ago1640250395IN
0xC8e9EfeC...1Daf50e89
0 ETH0.0038178663.63005505
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:
Pool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-11-20
*/

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



pragma solidity >=0.6.0 <0.8.0;

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

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

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



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @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/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/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/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/Pool.sol

interface ISLM {
         function mint(address _account, uint256 _amount) external ;
}

pragma solidity ^0.6.0;
contract Pool is Ownable
{
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public y ;
    address public slm ;
    address public signer;
    string public constant name = "PoolClaim";
    string public constant version = "1";
    mapping(address => uint256) public nonces;
    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event Claim(address indexed user,uint256 amount1,uint256 amount2,uint256 nonce);

    bytes32 public constant DOMAIN_TYPEHASH =
        keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
    );

    bytes32 public constant CLAIM_TYPEHASH =
        keccak256(
            "Claim(address account,uint256 amount1,uint256 amount2,uint256 nonce,uint256 deadline)"
    );


    constructor(address _y, address _slm,address _signer) public {
        y = IERC20(_y);
        slm = _slm;
        signer = _signer;
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function stake(uint256 amount) public   { 
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        y.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public   {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        y.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function claim(
            uint256 _amount1,
            uint256 _amount2,
            uint8 v,
            bytes32 r,
            bytes32 s,
            uint256 deadline
            ) external   {

        require(block.timestamp <= deadline, "signature expired");
    
        bytes32 domainSeparator =
            keccak256(
                abi.encode(
                    DOMAIN_TYPEHASH,
                    keccak256(bytes(name)),
                    keccak256(bytes(version)),
                    getChainId(),
                    address(this)
                )
            );
        bytes32 structHash =
            keccak256(
                abi.encode(
                    CLAIM_TYPEHASH,
                    address(msg.sender),
                    _amount1,
                    _amount2,
                    nonces[msg.sender]++,
                    deadline
                )
            );
        bytes32 digest =
            keccak256(
                abi.encodePacked("\x19\x01", domainSeparator, structHash)
            );
            
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "invalid signature");
        require(signatory == signer, "unauthorized");
        
        ISLM(slm).mint(msg.sender,_amount1.add(_amount2));
        emit Claim(msg.sender,_amount1,_amount2,nonces[msg.sender] -1 );
    }

    function  setSigner(address _signer) external onlyOwner {
        require(_signer != address(0),"zero address");
        signer = _signer;
    }

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_y","type":"address"},{"internalType":"address","name":"_slm","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount2","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"CLAIM_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount1","type":"uint256"},{"internalType":"uint256","name":"_amount2","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slm","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"y","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161123f38038061123f8339818101604052606081101561003357600080fd5b5080516020820151604090920151909190600061004e6100da565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039485166001600160a01b0319918216179091556002805493851693821693909317909255600380549190931691161790556100de565b3390565b611152806100ed6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a257806393501144116100715780639350114414610284578063a56dfe4a1461028c578063a694fc3a14610294578063e3b24504146102b1578063f2fde38b146102ef5761010b565b806370a0823114610228578063715018a61461024e5780637ecebe00146102565780638da5cb5b1461027c5761010b565b80632e1a7d4d116100de5780632e1a7d4d146101d357806354fd4d50146101f25780636b0509b1146101fa5780636c19e783146102025761010b565b806306fdde031461011057806318160ddd1461018d57806320606b70146101a7578063238ac933146101af575b600080fd5b610118610315565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015257818101518382015260200161013a565b50505050905090810190601f16801561017f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61019561033a565b60408051918252519081900360200190f35b610195610340565b6101b7610364565b604080516001600160a01b039092168252519081900360200190f35b6101f0600480360360208110156101e957600080fd5b5035610373565b005b61011861044b565b610195610468565b6101f06004803603602081101561021857600080fd5b50356001600160a01b031661048c565b6101956004803603602081101561023e57600080fd5b50356001600160a01b031661056c565b6101f0610587565b6101956004803603602081101561026c57600080fd5b50356001600160a01b0316610645565b6101b7610657565b6101b7610666565b6101b7610675565b6101f0600480360360208110156102aa57600080fd5b5035610684565b6101f0600480360360c08110156102c757600080fd5b5080359060208101359060ff6040820135169060608101359060808101359060a0013561075a565b6101f06004803603602081101561030557600080fd5b50356001600160a01b0316610b47565b60405180604001604052806009815260200168506f6f6c436c61696d60b81b81525081565b60055490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6003546001600160a01b031681565b600081116103bc576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6005546103c99082610c5b565b600555336000908152600660205260409020546103e69082610c5b565b33600081815260066020526040902091909155600154610412916001600160a01b039091169083610cb8565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250565b604051806040016040528060018152602001603160f81b81525081565b7f1265f04ef2b731dd7194293930ea59001eaa201aefbf2ab1e0576d7d649b0a7881565b610494610d0f565b6001600160a01b03166104a5610657565b6001600160a01b031614610500576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661054a576040805162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526006602052604090205490565b61058f610d0f565b6001600160a01b03166105a0610657565b6001600160a01b0316146105fb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60046020526000908152604090205481565b6000546001600160a01b031690565b6002546001600160a01b031681565b6001546001600160a01b031681565b600081116106ca576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b6005546106d79082610d13565b600555336000908152600660205260409020546106f49082610d13565b33600081815260066020526040902091909155600154610721916001600160a01b03909116903084610d74565b60408051828152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250565b804211156107a3576040805162461bcd60e51b81526020600482015260116024820152701cda59db985d1d5c9948195e1c1a5c9959607a1b604482015290519081900360640190fd5b6040805180820182526009815268506f6f6c436c61696d60b81b602091820152815180830190925260018252603160f81b91015260007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f09e4255b8045c1bd9e6912d2fef94a769219425c2e70dcb0aa5312f4e0c91e527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6610844610dd4565b6040805160208082019690965280820194909452606084019290925260808301523060a0808401919091528151808403909101815260c08301825280519084012033600081815260048652838120805460018082019092557f1265f04ef2b731dd7194293930ea59001eaa201aefbf2ab1e0576d7d649b0a7860e088015261010087019390935261012086018e905261014086018d9052610160860192909252610180808601899052845180870390910181526101a08601855280519087012061190160f01b6101c08701526101c286018490526101e280870182905285518088039091018152610202870180875281519189019190912090839052610222870180875281905260ff8d1661024288015261026287018c905261028287018b90529451939750959394909391926102a28083019392601f198301929081900390910190855afa15801561099b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166109f7576040805162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b604482015290519081900360640190fd5b6003546001600160a01b03828116911614610a48576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6002546001600160a01b03166340c10f1933610a648d8d610d13565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610aaa57600080fd5b505af1158015610abe573d6000803e3d6000fd5b50505050336001600160a01b03167f45c072aa05b9853b5a993de7a28bc332ee01404a628cec1a23ce0f659f842ef18b8b600160046000336001600160a01b03166001600160a01b03168152602001908152602001600020540360405180848152602001838152602001828152602001935050505060405180910390a250505050505050505050565b610b4f610d0f565b6001600160a01b0316610b60610657565b6001600160a01b031614610bbb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610c005760405162461bcd60e51b81526004018080602001828103825260268152602001806110a76026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115610cb2576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d0a908490610dd8565b505050565b3390565b600082820183811015610d6d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610dce908590610dd8565b50505050565b4690565b6060610e2d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e899092919063ffffffff16565b805190915015610d0a57808060200190516020811015610e4c57600080fd5b5051610d0a5760405162461bcd60e51b815260040180806020018281038252602a8152602001806110f3602a913960400191505060405180910390fd5b6060610e988484600085610ea0565b949350505050565b606082471015610ee15760405162461bcd60e51b81526004018080602001828103825260268152602001806110cd6026913960400191505060405180910390fd5b610eea85610ffc565b610f3b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610f7a5780518252601f199092019160209182019101610f5b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610fdc576040519150601f19603f3d011682016040523d82523d6000602084013e610fe1565b606091505b5091509150610ff1828286611002565b979650505050505050565b3b151590565b60608315611011575081610d6d565b8251156110215782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561106b578181015183820152602001611053565b50505050905090810190601f1680156110985780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c770bbc39c1c51b2272a06ce16bc9370b0e97b0c5189ce4de7b9d1edef87901e64736f6c634300060c00330000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf0000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf0000000000000000000000003bf07f5c239217bdf9165d114036ae5788ff8e5e

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a257806393501144116100715780639350114414610284578063a56dfe4a1461028c578063a694fc3a14610294578063e3b24504146102b1578063f2fde38b146102ef5761010b565b806370a0823114610228578063715018a61461024e5780637ecebe00146102565780638da5cb5b1461027c5761010b565b80632e1a7d4d116100de5780632e1a7d4d146101d357806354fd4d50146101f25780636b0509b1146101fa5780636c19e783146102025761010b565b806306fdde031461011057806318160ddd1461018d57806320606b70146101a7578063238ac933146101af575b600080fd5b610118610315565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015257818101518382015260200161013a565b50505050905090810190601f16801561017f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61019561033a565b60408051918252519081900360200190f35b610195610340565b6101b7610364565b604080516001600160a01b039092168252519081900360200190f35b6101f0600480360360208110156101e957600080fd5b5035610373565b005b61011861044b565b610195610468565b6101f06004803603602081101561021857600080fd5b50356001600160a01b031661048c565b6101956004803603602081101561023e57600080fd5b50356001600160a01b031661056c565b6101f0610587565b6101956004803603602081101561026c57600080fd5b50356001600160a01b0316610645565b6101b7610657565b6101b7610666565b6101b7610675565b6101f0600480360360208110156102aa57600080fd5b5035610684565b6101f0600480360360c08110156102c757600080fd5b5080359060208101359060ff6040820135169060608101359060808101359060a0013561075a565b6101f06004803603602081101561030557600080fd5b50356001600160a01b0316610b47565b60405180604001604052806009815260200168506f6f6c436c61696d60b81b81525081565b60055490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6003546001600160a01b031681565b600081116103bc576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6005546103c99082610c5b565b600555336000908152600660205260409020546103e69082610c5b565b33600081815260066020526040902091909155600154610412916001600160a01b039091169083610cb8565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250565b604051806040016040528060018152602001603160f81b81525081565b7f1265f04ef2b731dd7194293930ea59001eaa201aefbf2ab1e0576d7d649b0a7881565b610494610d0f565b6001600160a01b03166104a5610657565b6001600160a01b031614610500576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661054a576040805162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526006602052604090205490565b61058f610d0f565b6001600160a01b03166105a0610657565b6001600160a01b0316146105fb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60046020526000908152604090205481565b6000546001600160a01b031690565b6002546001600160a01b031681565b6001546001600160a01b031681565b600081116106ca576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b6005546106d79082610d13565b600555336000908152600660205260409020546106f49082610d13565b33600081815260066020526040902091909155600154610721916001600160a01b03909116903084610d74565b60408051828152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250565b804211156107a3576040805162461bcd60e51b81526020600482015260116024820152701cda59db985d1d5c9948195e1c1a5c9959607a1b604482015290519081900360640190fd5b6040805180820182526009815268506f6f6c436c61696d60b81b602091820152815180830190925260018252603160f81b91015260007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f09e4255b8045c1bd9e6912d2fef94a769219425c2e70dcb0aa5312f4e0c91e527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6610844610dd4565b6040805160208082019690965280820194909452606084019290925260808301523060a0808401919091528151808403909101815260c08301825280519084012033600081815260048652838120805460018082019092557f1265f04ef2b731dd7194293930ea59001eaa201aefbf2ab1e0576d7d649b0a7860e088015261010087019390935261012086018e905261014086018d9052610160860192909252610180808601899052845180870390910181526101a08601855280519087012061190160f01b6101c08701526101c286018490526101e280870182905285518088039091018152610202870180875281519189019190912090839052610222870180875281905260ff8d1661024288015261026287018c905261028287018b90529451939750959394909391926102a28083019392601f198301929081900390910190855afa15801561099b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166109f7576040805162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b604482015290519081900360640190fd5b6003546001600160a01b03828116911614610a48576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6002546001600160a01b03166340c10f1933610a648d8d610d13565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610aaa57600080fd5b505af1158015610abe573d6000803e3d6000fd5b50505050336001600160a01b03167f45c072aa05b9853b5a993de7a28bc332ee01404a628cec1a23ce0f659f842ef18b8b600160046000336001600160a01b03166001600160a01b03168152602001908152602001600020540360405180848152602001838152602001828152602001935050505060405180910390a250505050505050505050565b610b4f610d0f565b6001600160a01b0316610b60610657565b6001600160a01b031614610bbb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610c005760405162461bcd60e51b81526004018080602001828103825260268152602001806110a76026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115610cb2576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d0a908490610dd8565b505050565b3390565b600082820183811015610d6d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610dce908590610dd8565b50505050565b4690565b6060610e2d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e899092919063ffffffff16565b805190915015610d0a57808060200190516020811015610e4c57600080fd5b5051610d0a5760405162461bcd60e51b815260040180806020018281038252602a8152602001806110f3602a913960400191505060405180910390fd5b6060610e988484600085610ea0565b949350505050565b606082471015610ee15760405162461bcd60e51b81526004018080602001828103825260268152602001806110cd6026913960400191505060405180910390fd5b610eea85610ffc565b610f3b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610f7a5780518252601f199092019160209182019101610f5b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610fdc576040519150601f19603f3d011682016040523d82523d6000602084013e610fe1565b606091505b5091509150610ff1828286611002565b979650505050505050565b3b151590565b60608315611011575081610d6d565b8251156110215782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561106b578181015183820152602001611053565b50505050905090810190601f1680156110985780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c770bbc39c1c51b2272a06ce16bc9370b0e97b0c5189ce4de7b9d1edef87901e64736f6c634300060c0033

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

0000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf0000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf0000000000000000000000003bf07f5c239217bdf9165d114036ae5788ff8e5e

-----Decoded View---------------
Arg [0] : _y (address): 0x2Ba7529009487d4752C78Ca4dCF0B7C14ae0fcDf
Arg [1] : _slm (address): 0x2Ba7529009487d4752C78Ca4dCF0B7C14ae0fcDf
Arg [2] : _signer (address): 0x3Bf07f5C239217bdf9165d114036AE5788ff8e5e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf
Arg [1] : 0000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf
Arg [2] : 0000000000000000000000003bf07f5c239217bdf9165d114036ae5788ff8e5e


Deployed Bytecode Sourcemap

25502:3743:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25680:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26617:91;;;:::i;:::-;;;;;;;;;;;;;;;;26113:166;;;:::i;25652:21::-;;;:::i;:::-;;;;-1:-1:-1;;;;;25652:21:0;;;;;;;;;;;;;;27163:310;;;;;;;;;;;;;;;;-1:-1:-1;27163:310:0;;:::i;:::-;;25728:36;;;:::i;26288:168::-;;;:::i;28908:147::-;;;;;;;;;;;;;;;;-1:-1:-1;28908:147:0;-1:-1:-1;;;;;28908:147:0;;:::i;26716:110::-;;;;;;;;;;;;;;;;-1:-1:-1;26716:110:0;-1:-1:-1;;;;;26716:110:0;;:::i;2752:148::-;;;:::i;25771:41::-;;;;;;;;;;;;;;;;-1:-1:-1;25771:41:0;-1:-1:-1;;;;;25771:41:0;;:::i;2101:87::-;;;:::i;25626:18::-;;;:::i;25603:15::-;;;:::i;26834:321::-;;;;;;;;;;;;;;;;-1:-1:-1;26834:321:0;;:::i;27481:1419::-;;;;;;;;;;;;;;;;-1:-1:-1;27481:1419:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;3055:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3055:244:0;-1:-1:-1;;;;;3055:244:0;;:::i;25680:41::-;;;;;;;;;;;;;;-1:-1:-1;;;25680:41:0;;;;:::o;26617:91::-;26688:12;;26617:91;:::o;26113:166::-;26164:115;26113:166;:::o;25652:21::-;;;-1:-1:-1;;;;;25652:21:0;;:::o;27163:310::-;27234:1;27225:6;:10;27217:40;;;;;-1:-1:-1;;;27217:40:0;;;;;;;;;;;;-1:-1:-1;;;27217:40:0;;;;;;;;;;;;;;;27283:12;;:24;;27300:6;27283:16;:24::i;:::-;27268:12;:39;27352:10;27342:21;;;;:9;:21;;;;;;:33;;27368:6;27342:25;:33::i;:::-;27328:10;27318:21;;;;:9;:21;;;;;:57;;;;27386:1;;:34;;-1:-1:-1;;;;;27386:1:0;;;;27413:6;27386:14;:34::i;:::-;27436:29;;;;;;;;27446:10;;27436:29;;;;;;;;;;27163:310;:::o;25728:36::-;;;;;;;;;;;;;;-1:-1:-1;;;25728:36:0;;;;:::o;26288:168::-;26338:118;26288:168;:::o;28908:147::-;2332:12;:10;:12::i;:::-;-1:-1:-1;;;;;2321:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2321:23:0;;2313:68;;;;;-1:-1:-1;;;2313:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28983:21:0;::::1;28975:45;;;::::0;;-1:-1:-1;;;28975:45:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28975:45:0;;;;;;;;;;;;;::::1;;29031:6;:16:::0;;-1:-1:-1;;;;;;29031:16:0::1;-1:-1:-1::0;;;;;29031:16:0;;;::::1;::::0;;;::::1;::::0;;28908:147::o;26716:110::-;-1:-1:-1;;;;;26800:18:0;26773:7;26800:18;;;:9;:18;;;;;;;26716:110::o;2752:148::-;2332:12;:10;:12::i;:::-;-1:-1:-1;;;;;2321:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2321:23:0;;2313:68;;;;;-1:-1:-1;;;2313:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2859:1:::1;2843:6:::0;;2822:40:::1;::::0;-1:-1:-1;;;;;2843:6:0;;::::1;::::0;2822:40:::1;::::0;2859:1;;2822:40:::1;2890:1;2873:19:::0;;-1:-1:-1;;;;;;2873:19:0::1;::::0;;2752:148::o;25771:41::-;;;;;;;;;;;;;:::o;2101:87::-;2147:7;2174:6;-1:-1:-1;;;;;2174:6:0;2101:87;:::o;25626:18::-;;;-1:-1:-1;;;;;25626:18:0;;:::o;25603:15::-;;;-1:-1:-1;;;;;25603:15:0;;:::o;26834:321::-;26903:1;26894:6;:10;26886:37;;;;;-1:-1:-1;;;26886:37:0;;;;;;;;;;;;-1:-1:-1;;;26886:37:0;;;;;;;;;;;;;;;26949:12;;:24;;26966:6;26949:16;:24::i;:::-;26934:12;:39;27018:10;27008:21;;;;:9;:21;;;;;;:33;;27034:6;27008:25;:33::i;:::-;26994:10;26984:21;;;;:9;:21;;;;;:57;;;;27052:1;;:53;;-1:-1:-1;;;;;27052:1:0;;;;27091:4;27098:6;27052:18;:53::i;:::-;27121:26;;;;;;;;27128:10;;27121:26;;;;;;;;;;26834:321;:::o;27481:1419::-;27725:8;27706:15;:27;;27698:57;;;;;-1:-1:-1;;;27698:57:0;;;;;;;;;;;;-1:-1:-1;;;27698:57:0;;;;;;;;;;;;;;;27926:4;;;;;;;;;;;-1:-1:-1;;;27926:4:0;;;;;27971:7;;;;;;;;;;;-1:-1:-1;;;27971:7:0;;;27772:23;26164:115;27910:22;27955:25;28003:12;:10;:12::i;:::-;27839:231;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28046:4;27839:231;;;;;;;;;;;;;;;;;;;;;;;27811:274;;;;;;28236:10;-1:-1:-1;28332:18:0;;;:6;:18;;;;;:20;;;;;;;;;26338:118;28158:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28130:287;;;;;;-1:-1:-1;;;28486:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28458:100;;;;;;;;;28603:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27811:274;;-1:-1:-1;28130:287:0;28458:100;;-1:-1:-1;;28332:20:0;;28603:26;;;;;27839:231;-1:-1:-1;;28603:26:0;;;;;;;;;;;28332:20;28603:26;;;;;;;;;;;;;;;-1:-1:-1;;28603:26:0;;-1:-1:-1;;28603:26:0;;;-1:-1:-1;;;;;;;28648:23:0;;28640:53;;;;;-1:-1:-1;;;28640:53:0;;;;;;;;;;;;-1:-1:-1;;;28640:53:0;;;;;;;;;;;;;;;28725:6;;-1:-1:-1;;;;;28712:19:0;;;28725:6;;28712:19;28704:44;;;;;-1:-1:-1;;;28704:44:0;;;;;;;;;;;;-1:-1:-1;;;28704:44:0;;;;;;;;;;;;;;;28774:3;;-1:-1:-1;;;;;28774:3:0;28769:14;28784:10;28795:22;:8;28808;28795:12;:22::i;:::-;28769:49;;;;;;;;;;;;;-1:-1:-1;;;;;28769:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28840:10;-1:-1:-1;;;;;28834:58:0;;28851:8;28860;28889:1;28869:6;:18;28876:10;-1:-1:-1;;;;;28869:18:0;-1:-1:-1;;;;;28869:18:0;;;;;;;;;;;;;:21;28834:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27481:1419;;;;;;;;;;:::o;3055:244::-;2332:12;:10;:12::i;:::-;-1:-1:-1;;;;;2321:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2321:23:0;;2313:68;;;;;-1:-1:-1;;;2313:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3144:22:0;::::1;3136:73;;;;-1:-1:-1::0;;;3136:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3246:6;::::0;;3225:38:::1;::::0;-1:-1:-1;;;;;3225:38:0;;::::1;::::0;3246:6;::::1;::::0;3225:38:::1;::::0;::::1;3274:6;:17:::0;;-1:-1:-1;;;;;;3274:17:0::1;-1:-1:-1::0;;;;;3274:17:0;;;::::1;::::0;;;::::1;::::0;;3055:244::o;9376:158::-;9434:7;9467:1;9462;:6;;9454:49;;;;;-1:-1:-1;;;9454:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9521:5:0;;;9376:158::o;22280:177::-;22390:58;;;-1:-1:-1;;;;;22390:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22390:58:0;-1:-1:-1;;;22390:58:0;;;22363:86;;22383:5;;22363:19;:86::i;:::-;22280:177;;;:::o;636:106::-;724:10;636:106;:::o;8914:179::-;8972:7;9004:5;;;9028:6;;;;9020:46;;;;;-1:-1:-1;;;9020:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;9084:1;8914:179;-1:-1:-1;;;8914:179:0:o;22465:205::-;22593:68;;;-1:-1:-1;;;;;22593:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22593:68:0;-1:-1:-1;;;22593:68:0;;;22566:96;;22586:5;;22566:19;:96::i;:::-;22465:205;;;;:::o;29064:178::-;29190:9;29064:178;:::o;24585:761::-;25009:23;25035:69;25063:4;25035:69;;;;;;;;;;;;;;;;;25043:5;-1:-1:-1;;;;;25035:27:0;;;:69;;;;;:::i;:::-;25119:17;;25009:95;;-1:-1:-1;25119:21:0;25115:224;;25261:10;25250:30;;;;;;;;;;;;;;;-1:-1:-1;25250:30:0;25242:85;;;;-1:-1:-1;;;25242:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17273:195;17376:12;17408:52;17430:6;17438:4;17444:1;17447:12;17408:21;:52::i;:::-;17401:59;17273:195;-1:-1:-1;;;;17273:195:0:o;18325:530::-;18452:12;18510:5;18485:21;:30;;18477:81;;;;-1:-1:-1;;;18477:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18577:18;18588:6;18577:10;:18::i;:::-;18569:60;;;;;-1:-1:-1;;;18569:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18703:12;18717:23;18744:6;-1:-1:-1;;;;;18744:11:0;18764:5;18772:4;18744:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;18744:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18702:75;;;;18795:52;18813:7;18822:10;18834:12;18795:17;:52::i;:::-;18788:59;18325:530;-1:-1:-1;;;;;;;18325:530:0:o;14355:422::-;14722:20;14761:8;;;14355:422::o;20865:742::-;20980:12;21009:7;21005:595;;;-1:-1:-1;21040:10:0;21033:17;;21005:595;21154:17;;:21;21150:439;;21417:10;21411:17;21478:15;21465:10;21461:2;21457:19;21450:44;21365:148;21560:12;21553:20;;-1:-1:-1;;;21553:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://c770bbc39c1c51b2272a06ce16bc9370b0e97b0c5189ce4de7b9d1edef87901e

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.