Contract 0xb770Ea0F1762D73c8719B52eF981f7F1D824d9a7

Contract Overview

Balance:
0 Ether

Token:
Txn Hash
Method
Block
From
To
Value
0x4f23dfb061e4312b2ff6d63a7e99c788ca7ae6a7ab7de128f57cdcb05f57d21eApprove113397522022-09-07 16:55:1023 days 6 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00003947 1.50000001
0xc4d02ff9b6492793af3776f90eef57f36af2fc408ed9e724c1af9285cc8245efApprove113397182022-09-07 16:46:3823 days 6 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00003947 1.5
0xd827bb3d74b408cab2f3466f384f4a82a83e08e018c83924b2ed0531a73f5f0dApprove113397122022-09-07 16:45:0823 days 6 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00004367 1.5
0xf6eb24383345757a5830fb99808ca7ce5abc7f932747113de7b178cb9ffd20d0Approve113396722022-09-07 16:35:0823 days 7 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00004414 1.50000001
0x9d63ef81b82d00e6e6b61b28fcc41c6e8cf0a136fac928ae7a8ee16ca1d1531bApprove113396622022-09-07 16:32:3823 days 7 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00003947 1.50000001
0x70597e277e3f3411c50b231ddb5a6ea69c55085d2cd8ac0ed5ca03d8a3ce703fApprove113396572022-09-07 16:28:5423 days 7 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00003947 1.5
0x09f2fafa1501f2aa11fad076579e166f86edabb5c6cdd7e2f442ffb2c39d4f07Approve113396492022-09-07 16:23:5623 days 7 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00003947 1.5
0xadea8d78783d9e2480e6830b12bd4d2e549cfc6246b1dec0accea31ebff67819Approve113396332022-09-07 16:19:5323 days 7 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00004367 1.50000001
0x975673f0b4257e618ca0b8f0af875795e180fb86ee050844739bb514c5e1b37fApprove110918282022-07-26 12:13:0966 days 11 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00010297 2.21323203
0x109a31bfbaf2b9bfc266acd457fce4897764a22c0dbfb1d1cd5b7a413a4b8bafApprove110659252022-07-22 0:06:3470 days 23 hrs ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00006932 1.5
0x8f4b583fc5b33b3cbade6e343cf5e888f3c45a89a594d29a90a3bf4958a3453eWrap110598682022-07-20 22:49:3372 days 50 mins ago0xe8b2097674daf8fc3dccddf05a2cbef8253a4bab IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00008634 1
0x931b4c82fa22791c1136ace902313cd4220cfeff9073319045ff760d8c78d304Transfer109095052022-06-24 18:48:3298 days 4 hrs ago0x6bffb3075f80bf4987ac923487596f637ca1050c IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70.008 Ether0.0019449220.00000009
0x2297379833278f947a4e7a11a4ce416d6996609aa5c7e934e737d2fea54149c5Transfer*109094852022-06-24 18:43:3198 days 4 hrs ago0x6bffb3075f80bf4987ac923487596f637ca1050c IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70.008 Ether0.0004213220.00000009
0x53a638d4ac55da0aca156ffac4db2e5e40b6e69e09933eae15d852949908e950Transfer*109094682022-06-24 18:39:1498 days 5 hrs ago0x6bffb3075f80bf4987ac923487596f637ca1050c IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70.0000008 Ether0.0004213220.00000009
0x1ea199fc9209101666aa8805b69a2be142d05b9ef9a78fc1b21323197c3ec9edUnwrap108932712022-06-21 22:43:04101 days 57 mins ago0x630a5fa5ea0b94daae707fe105404749d52909b9 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00010057 1.5
0xdcc95c818fb7deda49b15f1b87331289cbfe89542f9a0969de8e087cb2f2c277Wrap108932432022-06-21 22:36:03101 days 1 hr ago0x630a5fa5ea0b94daae707fe105404749d52909b9 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00013672 1.5
0x9c79c425921fc976e8f1c9d90b2edbe0ba972b0fa3a02527ea9ac2be5c4a4b6aWrap108932342022-06-21 22:33:47101 days 1 hr ago0x630a5fa5ea0b94daae707fe105404749d52909b9 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00010869 1.5
0x5660749f47e9cdb44bdcc89f6b699e4c26ce9e6179bc2abfbf899f677279a0d8Wrap108932032022-06-21 22:26:02101 days 1 hr ago0x630a5fa5ea0b94daae707fe105404749d52909b9 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00010869 1.50000001
0xd1bcb91452863a7a5f774ca3823ee38c019bbb99b27abcb0134c2af07a711b89Wrap108932002022-06-21 22:25:17101 days 1 hr ago0x630a5fa5ea0b94daae707fe105404749d52909b9 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00010869 1.5
0x33ccc99c5fc50e36a96475f4e03de13a365e73ac675e8f1b9a9bef44a88f5febWrap106056632022-05-02 11:09:37151 days 12 hrs ago0x02139137fdd974181a49268d7b0ae888634e5469 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00044839 6.18814856
0xf9822f5609522a69f4a494bf92fb5d918faa4e1e035608bc9c23691c91ddd16aApprove92681822021-09-10 12:33:31385 days 11 hrs ago0x4d91838268f6d6d4e590e8fd2a001cd91c32e7a4 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00006979 1.50000001
0xae94daed16d33dfec6a1ed0369dee3def8de2db358f15cf23fc2451ba034ae1dWrap92681772021-09-10 12:32:16385 days 11 hrs ago0x4d91838268f6d6d4e590e8fd2a001cd91c32e7a4 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00007407 1.00000001
0xc91fc03ed4846cd2502ef6e833e10f17875946031ab7bdd9c8308c007f102a1aWrap92681422021-09-10 12:23:31385 days 11 hrs ago0x4d91838268f6d6d4e590e8fd2a001cd91c32e7a4 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.00009588 1.00000001
0xa5658321a13df141bc45717c31514493f06cb5efbf04c5dcfd0810022acd241eWrap92452652021-09-06 12:54:18389 days 10 hrs ago0x9b6a6eaf87f6639716be3108a86012d3c7b3d0a3 IN  0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether0.000125341.00000001
0xe10a0c93e86bff17c426ef98670de91f70bcd7c68aa5fe4aee6a5d783acdc7750x6101406092450252021-09-06 11:54:17389 days 11 hrs ago0xada83afc0380a63f6b6d1bf6576c2da5fb954b6f IN  Create: WstETH0 Ether0.001554361
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xb0008caaf198e8c5d6de5029f3cb13120278f7b2bb7fb69efa28909734ccd2c3113397562022-09-07 16:56:1023 days 6 hrs ago 0xb167ccff4870dcf4a2bc472ce60795fc435d80ac 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xe91ff8318cf0cfdf4a796da0cfe07d8d1573d820706b386b99fcd85f8c701d9a113396742022-09-07 16:35:3823 days 7 hrs ago 0xb167ccff4870dcf4a2bc472ce60795fc435d80ac 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x2c4c697d44f646c5661f9126f366c21a98e3996615d2042b6a0d5557811519a3111860492022-08-11 21:59:1050 days 1 hr ago 0xb167ccff4870dcf4a2bc472ce60795fc435d80ac 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x4a3651d2f8f69e8f310fff8811aca1430c021a7a035b291b413017e414901545111344732022-08-02 22:20:0359 days 1 hr ago 0xb167ccff4870dcf4a2bc472ce60795fc435d80ac 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x6f1b861d1b3df794ce768bea9f3a1d8356497b136c72e136a2356bed96b282f0110984162022-07-27 15:43:1665 days 7 hrs ago 0xb167ccff4870dcf4a2bc472ce60795fc435d80ac 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xe25305a4ba6d20f48343049881f43f83f18a059f4a0cab37706c28766853baea110943882022-07-26 22:54:2066 days 46 mins ago 0xb167ccff4870dcf4a2bc472ce60795fc435d80ac 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xfbb75db6f07928202a2c3128869b368a91ea62800377170933abc998092c0128110918302022-07-26 12:13:3966 days 11 hrs ago 0xb167ccff4870dcf4a2bc472ce60795fc435d80ac 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x77f6461769420e17feb3070e0f2448ff49337563c13ea1ffa5a35823b9fbe2d1110659272022-07-22 0:07:1270 days 23 hrs ago 0xb167ccff4870dcf4a2bc472ce60795fc435d80ac 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x8f4b583fc5b33b3cbade6e343cf5e888f3c45a89a594d29a90a3bf4958a3453e110598682022-07-20 22:49:3372 days 50 mins ago 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a7 0xf4242f9d78db7218ad72ee3ae14469dbde8731ed0 Ether
0x8f4b583fc5b33b3cbade6e343cf5e888f3c45a89a594d29a90a3bf4958a3453e110598682022-07-20 22:49:3372 days 50 mins ago 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a7 0xf4242f9d78db7218ad72ee3ae14469dbde8731ed0 Ether
0x18e46958530e52d588ceaa1d20cf50e40b33a9cf2b32410a48932b054084338f109331432022-06-28 21:54:2894 days 1 hr ago 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a7 0xf4242f9d78db7218ad72ee3ae14469dbde8731ed0 Ether
0x18e46958530e52d588ceaa1d20cf50e40b33a9cf2b32410a48932b054084338f109331432022-06-28 21:54:2894 days 1 hr ago 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a7 0xf4242f9d78db7218ad72ee3ae14469dbde8731ed0 Ether
0x18e46958530e52d588ceaa1d20cf50e40b33a9cf2b32410a48932b054084338f109331432022-06-28 21:54:2894 days 1 hr ago 0xe8992f8848097550f0fd1ec7f7a343b711ae10d2 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x18e46958530e52d588ceaa1d20cf50e40b33a9cf2b32410a48932b054084338f109331432022-06-28 21:54:2894 days 1 hr ago 0x82f67958a5474e40e1485742d648c0b0686b6e5d 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x18e46958530e52d588ceaa1d20cf50e40b33a9cf2b32410a48932b054084338f109331432022-06-28 21:54:2894 days 1 hr ago 0x82f67958a5474e40e1485742d648c0b0686b6e5d 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x18e46958530e52d588ceaa1d20cf50e40b33a9cf2b32410a48932b054084338f109331432022-06-28 21:54:2894 days 1 hr ago 0x82f67958a5474e40e1485742d648c0b0686b6e5d 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xf06531daa2a3ac3a02bd6ab4e07dd55851f0b0cc6a9885c36bedad4dc0591301109326322022-06-28 19:46:3094 days 3 hrs ago 0x82f67958a5474e40e1485742d648c0b0686b6e5d 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xf06531daa2a3ac3a02bd6ab4e07dd55851f0b0cc6a9885c36bedad4dc0591301109326322022-06-28 19:46:3094 days 3 hrs ago 0x82f67958a5474e40e1485742d648c0b0686b6e5d 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xf06531daa2a3ac3a02bd6ab4e07dd55851f0b0cc6a9885c36bedad4dc0591301109326322022-06-28 19:46:3094 days 3 hrs ago 0x82f67958a5474e40e1485742d648c0b0686b6e5d 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xf06531daa2a3ac3a02bd6ab4e07dd55851f0b0cc6a9885c36bedad4dc0591301109326322022-06-28 19:46:3094 days 3 hrs ago 0xe8992f8848097550f0fd1ec7f7a343b711ae10d2 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xf06531daa2a3ac3a02bd6ab4e07dd55851f0b0cc6a9885c36bedad4dc0591301109326322022-06-28 19:46:3094 days 3 hrs ago 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a7 0xf4242f9d78db7218ad72ee3ae14469dbde8731ed0 Ether
0xf06531daa2a3ac3a02bd6ab4e07dd55851f0b0cc6a9885c36bedad4dc0591301109326322022-06-28 19:46:3094 days 3 hrs ago 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a7 0xf4242f9d78db7218ad72ee3ae14469dbde8731ed0 Ether
0xf06531daa2a3ac3a02bd6ab4e07dd55851f0b0cc6a9885c36bedad4dc0591301109326322022-06-28 19:46:3094 days 3 hrs ago 0xe8992f8848097550f0fd1ec7f7a343b711ae10d2 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0x1f70638497335de577e0a6ae712d29040e453acdd0d7d70fe6aa1070aea09006109306122022-06-28 11:20:3194 days 12 hrs ago 0xe8992f8848097550f0fd1ec7f7a343b711ae10d2 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
0xbadbbfd8818bfab9ecdfdaae72c7df2da872663e9775d40c0300311d8c535190109301272022-06-28 9:18:5594 days 14 hrs ago 0x928e075ab06454740b0cb47887d212c583a0de31 0xb770ea0f1762d73c8719b52ef981f7f1d824d9a70 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WstETH

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-09-06
*/

/**
 *Submitted for verification at Etherscan.io on 2021-08-14
*/

// SPDX-License-Identifier: MIT AND GPL-3.0
// 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/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/token/ERC20/ERC20.sol


pragma solidity >=0.6.0 <0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

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

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/drafts/IERC20Permit.sol


pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over `owner`'s tokens,
     * given `owner`'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for `permit`, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// File: @openzeppelin/contracts/cryptography/ECDSA.sol


pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

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


pragma solidity >=0.6.0 <0.8.0;


/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

// File: @openzeppelin/contracts/drafts/EIP712.sol


pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;
    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) internal {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = _getChainId();
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view virtual returns (bytes32) {
        if (_getChainId() == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
        return keccak256(
            abi.encode(
                typeHash,
                name,
                version,
                _getChainId(),
                address(this)
            )
        );
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", _domainSeparatorV4(), structHash));
    }

    function _getChainId() private view returns (uint256 chainId) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        // solhint-disable-next-line no-inline-assembly
        assembly {
            chainId := chainid()
        }
    }
}

// File: @openzeppelin/contracts/drafts/ERC20Permit.sol


pragma solidity >=0.6.5 <0.8.0;






/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping (address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) internal EIP712(name, "1") {
    }

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override {
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(
            abi.encode(
                _PERMIT_TYPEHASH,
                owner,
                spender,
                value,
                _nonces[owner].current(),
                deadline
            )
        );

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _nonces[owner].increment();
        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }
}

// File: contracts/0.6.12/interfaces/IStETH.sol

// SPDX-FileCopyrightText: 2021 Lido <[email protected]>


pragma solidity 0.6.12; // latest available for using OZ



interface IStETH is IERC20 {
    function getPooledEthByShares(uint256 _sharesAmount) external view returns (uint256);

    function getSharesByPooledEth(uint256 _pooledEthAmount) external view returns (uint256);

    function submit(address _referral) external payable returns (uint256);
}

// File: contracts/0.6.12/WstETH.sol

// SPDX-FileCopyrightText: 2021 Lido <[email protected]>


/* See contracts/COMPILERS.md */
pragma solidity 0.6.12;



/**
 * @title StETH token wrapper with static balances.
 * @dev It's an ERC20 token that represents the account's share of the total
 * supply of stETH tokens. WstETH token's balance only changes on transfers,
 * unlike StETH that is also changed when oracles report staking rewards and
 * penalties. It's a "power user" token for DeFi protocols which don't
 * support rebasable tokens.
 *
 * The contract is also a trustless wrapper that accepts stETH tokens and mints
 * wstETH in return. Then the user unwraps, the contract burns user's wstETH
 * and sends user locked stETH in return.
 *
 * The contract provides the staking shortcut: user can send ETH with regular
 * transfer and get wstETH in return. The contract will send ETH to Lido submit
 * method, staking it and wrapping the received stETH.
 *
 */
contract WstETH is ERC20Permit {
    IStETH public stETH;

    /**
     * @param _stETH address of the StETH token to wrap
     */
    constructor(IStETH _stETH)
        public
        ERC20Permit("Wrapped liquid staked Ether 2.0")
        ERC20("Wrapped liquid staked Ether 2.0", "wstETH")
    {
        stETH = _stETH;
    }

    /**
     * @notice Exchanges stETH to wstETH
     * @param _stETHAmount amount of stETH to wrap in exchange for wstETH
     * @dev Requirements:
     *  - `_stETHAmount` must be non-zero
     *  - msg.sender must approve at least `_stETHAmount` stETH to this
     *    contract.
     *  - msg.sender must have at least `_stETHAmount` of stETH.
     * User should first approve _stETHAmount to the WstETH contract
     * @return Amount of wstETH user receives after wrap
     */
    function wrap(uint256 _stETHAmount) external returns (uint256) {
        require(_stETHAmount > 0, "wstETH: can't wrap zero stETH");
        uint256 wstETHAmount = stETH.getSharesByPooledEth(_stETHAmount);
        _mint(msg.sender, wstETHAmount);
        stETH.transferFrom(msg.sender, address(this), _stETHAmount);
        return wstETHAmount;
    }

    /**
     * @notice Exchanges wstETH to stETH
     * @param _wstETHAmount amount of wstETH to uwrap in exchange for stETH
     * @dev Requirements:
     *  - `_wstETHAmount` must be non-zero
     *  - msg.sender must have at least `_wstETHAmount` wstETH.
     * @return Amount of stETH user receives after unwrap
     */
    function unwrap(uint256 _wstETHAmount) external returns (uint256) {
        require(_wstETHAmount > 0, "wstETH: zero amount unwrap not allowed");
        uint256 stETHAmount = stETH.getPooledEthByShares(_wstETHAmount);
        _burn(msg.sender, _wstETHAmount);
        stETH.transfer(msg.sender, stETHAmount);
        return stETHAmount;
    }

    /**
    * @notice Shortcut to stake ETH and auto-wrap returned stETH
    */
    receive() external payable {
        uint256 shares = stETH.submit{value: msg.value}(address(0));
        _mint(msg.sender, shares);
    }

    /**
     * @notice Get amount of wstETH for a given amount of stETH
     * @param _stETHAmount amount of stETH
     * @return Amount of wstETH for a given stETH amount
     */
    function getWstETHByStETH(uint256 _stETHAmount) external view returns (uint256) {
        return stETH.getSharesByPooledEth(_stETHAmount);
    }

    /**
     * @notice Get amount of stETH for a given amount of wstETH
     * @param _wstETHAmount amount of wstETH
     * @return Amount of stETH for a given wstETH amount
     */
    function getStETHByWstETH(uint256 _wstETHAmount) external view returns (uint256) {
        return stETH.getPooledEthByShares(_wstETHAmount);
    }

    /**
     * @notice Get amount of stETH for a one wstETH
     * @return Amount of stETH for 1 wstETH
     */
    function stEthPerToken() external view returns (uint256) {
        return stETH.getPooledEthByShares(1 ether);
    }

    /**
     * @notice Get amount of wstETH for a one stETH
     * @return Amount of wstETH for a 1 stETH
     */
    function tokensPerStEth() external view returns (uint256) {
        return stETH.getSharesByPooledEth(1 ether);
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract IStETH","name":"_stETH","type":"address"}],"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":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wstETHAmount","type":"uint256"}],"name":"getStETHByWstETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stETHAmount","type":"uint256"}],"name":"getWstETHByStETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stETH","outputs":[{"internalType":"contract IStETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stEthPerToken","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":"tokensPerStEth","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":"_wstETHAmount","type":"uint256"}],"name":"unwrap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stETHAmount","type":"uint256"}],"name":"wrap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101406040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120523480156200003757600080fd5b5060405162001c4d38038062001c4d833981810160405260208110156200005d57600080fd5b5051604080518082018252601f8082527f57726170706564206c6971756964207374616b656420457468657220322e300060208381018290528451808601865260018152603160f81b8183015285518087018752938452838201928352855180870190965260068652650eee6e88aa8960d31b918601919091528251939485949193929091620000f0916003916200020b565b508051620001069060049060208401906200020b565b50506005805460ff1916601217905550815160208084019190912082519183019190912060c082905260e08190527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200015f620001a3565b60a0526200016f818484620001a7565b608052610100525050600780546001600160a01b0319166001600160a01b03959095169490941790935550620002a7915050565b4690565b6000838383620001b6620001a3565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b03168152602001955050505050506040516020818303038152906040528051906020012090509392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200024e57805160ff19168380011785556200027e565b828001600101855582156200027e579182015b828111156200027e57825182559160200191906001019062000261565b506200028c92915062000290565b5090565b5b808211156200028c576000815560010162000291565b60805160a05160c05160e051610100516101205161195c620002f160003980610bde5250806113755250806113b752508061139652508061131c52508061134c525061195c6000f3fe60806040526004361061012e5760003560e01c80639576a0c8116100ab578063bb2952fc1161006f578063bb2952fc146104bf578063c1fe3e48146104e9578063d505accf1461051a578063dd62ed3e1461057a578063de0e9a3e146105b5578063ea598cb0146105df576101bf565b80639576a0c8146103f957806395d89b411461040e578063a457c2d714610423578063a9059cbb1461045c578063b0e3890014610495576101bf565b8063313ce567116100f2578063313ce5671461031a5780633644e51514610345578063395093511461035a57806370a08231146103935780637ecebe00146103c6576101bf565b8063035faf82146101c457806306fdde03146101eb578063095ea7b31461027557806318160ddd146102c257806323b872dd146102d7576101bf565b366101bf576007546040805163a1903eab60e01b8152600060048201819052915191926001600160a01b03169163a1903eab913491602480830192602092919082900301818588803b15801561018357600080fd5b505af1158015610197573d6000803e3d6000fd5b50505050506040513d60208110156101ae57600080fd5b505190506101bc3382610609565b50005b600080fd5b3480156101d057600080fd5b506101d96106f9565b60408051918252519081900360200190f35b3480156101f757600080fd5b5061020061077e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023a578181015183820152602001610222565b50505050905090810190601f1680156102675780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028157600080fd5b506102ae6004803603604081101561029857600080fd5b506001600160a01b038135169060200135610814565b604080519115158252519081900360200190f35b3480156102ce57600080fd5b506101d9610831565b3480156102e357600080fd5b506102ae600480360360608110156102fa57600080fd5b506001600160a01b03813581169160208101359091169060400135610837565b34801561032657600080fd5b5061032f6108be565b6040805160ff9092168252519081900360200190f35b34801561035157600080fd5b506101d96108c7565b34801561036657600080fd5b506102ae6004803603604081101561037d57600080fd5b506001600160a01b0381351690602001356108d6565b34801561039f57600080fd5b506101d9600480360360208110156103b657600080fd5b50356001600160a01b0316610924565b3480156103d257600080fd5b506101d9600480360360208110156103e957600080fd5b50356001600160a01b031661093f565b34801561040557600080fd5b506101d9610966565b34801561041a57600080fd5b506102006109b9565b34801561042f57600080fd5b506102ae6004803603604081101561044657600080fd5b506001600160a01b038135169060200135610a1a565b34801561046857600080fd5b506102ae6004803603604081101561047f57600080fd5b506001600160a01b038135169060200135610a82565b3480156104a157600080fd5b506101d9600480360360208110156104b857600080fd5b5035610a96565b3480156104cb57600080fd5b506101d9600480360360208110156104e257600080fd5b5035610b14565b3480156104f557600080fd5b506104fe610b60565b604080516001600160a01b039092168252519081900360200190f35b34801561052657600080fd5b50610578600480360360e081101561053d57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610b6f565b005b34801561058657600080fd5b506101d96004803603604081101561059d57600080fd5b506001600160a01b0381358116916020013516610d26565b3480156105c157600080fd5b506101d9600480360360208110156105d857600080fd5b5035610d51565b3480156105eb57600080fd5b506101d96004803603602081101561060257600080fd5b5035610e9c565b6001600160a01b038216610664576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61067060008383610fd0565b60025461067d9082610fd5565b6002556001600160a01b0382166000908152602081905260409020546106a39082610fd5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60075460408051630f451f7160e31b8152670de0b6b3a7640000600482015290516000926001600160a01b031691637a28fb88916024808301926020929190829003018186803b15801561074c57600080fd5b505afa158015610760573d6000803e3d6000fd5b505050506040513d602081101561077657600080fd5b505190505b90565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561080a5780601f106107df5761010080835404028352916020019161080a565b820191906000526020600020905b8154815290600101906020018083116107ed57829003601f168201915b5050505050905090565b6000610828610821611036565b848461103a565b50600192915050565b60025490565b6000610844848484611126565b6108b484610850611036565b6108af85604051806060016040528060288152602001611870602891396001600160a01b038a1660009081526001602052604081209061088e611036565b6001600160a01b031681526020810191909152604001600020549190611281565b61103a565b5060019392505050565b60055460ff1690565b60006108d1611318565b905090565b60006108286108e3611036565b846108af85600160006108f4611036565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610fd5565b6001600160a01b031660009081526020819052604090205490565b6001600160a01b0381166000908152600660205260408120610960906113e2565b92915050565b60075460408051631920845160e01b8152670de0b6b3a7640000600482015290516000926001600160a01b0316916319208451916024808301926020929190829003018186803b15801561074c57600080fd5b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561080a5780601f106107df5761010080835404028352916020019161080a565b6000610828610a27611036565b846108af856040518060600160405280602581526020016119026025913960016000610a51611036565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611281565b6000610828610a8f611036565b8484611126565b60075460408051631920845160e01b81526004810184905290516000926001600160a01b0316916319208451916024808301926020929190829003018186803b158015610ae257600080fd5b505afa158015610af6573d6000803e3d6000fd5b505050506040513d6020811015610b0c57600080fd5b505192915050565b60075460408051630f451f7160e31b81526004810184905290516000926001600160a01b031691637a28fb88916024808301926020929190829003018186803b158015610ae257600080fd5b6007546001600160a01b031681565b83421115610bc4576040805162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015290519081900360640190fd5b6001600160a01b03871660009081526006602052604081207f000000000000000000000000000000000000000000000000000000000000000090899089908990610c0d906113e2565b8960405160200180878152602001866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200182815260200196505050505050506040516020818303038152906040528051906020012090506000610c76826113e6565b90506000610c8682878787611432565b9050896001600160a01b0316816001600160a01b031614610cee576040805162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b6001600160a01b038a166000908152600660205260409020610d0f906115b0565b610d1a8a8a8a61103a565b50505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000808211610d915760405162461bcd60e51b81526004018080602001828103825260268152602001806117be6026913960400191505060405180910390fd5b60075460408051630f451f7160e31b81526004810185905290516000926001600160a01b031691637a28fb88916024808301926020929190829003018186803b158015610ddd57600080fd5b505afa158015610df1573d6000803e3d6000fd5b505050506040513d6020811015610e0757600080fd5b50519050610e1533846115b9565b6007546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b158015610e6957600080fd5b505af1158015610e7d573d6000803e3d6000fd5b505050506040513d6020811015610e9357600080fd5b50909392505050565b6000808211610ef2576040805162461bcd60e51b815260206004820152601d60248201527f7773744554483a2063616e27742077726170207a65726f207374455448000000604482015290519081900360640190fd5b60075460408051631920845160e01b81526004810185905290516000926001600160a01b0316916319208451916024808301926020929190829003018186803b158015610f3e57600080fd5b505afa158015610f52573d6000803e3d6000fd5b505050506040513d6020811015610f6857600080fd5b50519050610f763382610609565b600754604080516323b872dd60e01b81523360048201523060248201526044810186905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610e6957600080fd5b505050565b60008282018381101561102f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b03831661107f5760405162461bcd60e51b81526004018080602001828103825260248152602001806118de6024913960400191505060405180910390fd5b6001600160a01b0382166110c45760405162461bcd60e51b81526004018080602001828103825260228152602001806117e46022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661116b5760405162461bcd60e51b81526004018080602001828103825260258152602001806118b96025913960400191505060405180910390fd5b6001600160a01b0382166111b05760405162461bcd60e51b81526004018080602001828103825260238152602001806117796023913960400191505060405180910390fd5b6111bb838383610fd0565b6111f881604051806060016040528060268152602001611806602691396001600160a01b0386166000908152602081905260409020549190611281565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546112279082610fd5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156113105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112d55781810151838201526020016112bd565b50505050905090810190601f1680156113025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60007f00000000000000000000000000000000000000000000000000000000000000006113436116b5565b141561137057507f000000000000000000000000000000000000000000000000000000000000000061077b565b6113db7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006116b9565b905061077b565b5490565b60006113f0611318565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156114935760405162461bcd60e51b815260040180806020018281038252602281526020018061182c6022913960400191505060405180910390fd5b8360ff16601b14806114a857508360ff16601c145b6114e35760405162461bcd60e51b815260040180806020018281038252602281526020018061184e6022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561153f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166115a7576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b80546001019055565b6001600160a01b0382166115fe5760405162461bcd60e51b81526004018080602001828103825260218152602001806118986021913960400191505060405180910390fd5b61160a82600083610fd0565b6116478160405180606001604052806022815260200161179c602291396001600160a01b0385166000908152602081905260409020549190611281565b6001600160a01b03831660009081526020819052604090205560025461166d908261171b565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b4690565b60008383836116c66116b5565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b03168152602001955050505050506040516020818303038152906040528051906020012090509392505050565b600082821115611772576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63657773744554483a207a65726f20616d6f756e7420756e77726170206e6f7420616c6c6f77656445524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220467320c715236294ae2d0749c6aebd39d5b0a846476e2be2796c6f393df5cf9264736f6c634300060c0033000000000000000000000000f4242f9d78db7218ad72ee3ae14469dbde8731ed

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

000000000000000000000000f4242f9d78db7218ad72ee3ae14469dbde8731ed

-----Decoded View---------------
Arg [0] : _stETH (address): 0xF4242f9d78DB7218Ad72Ee3aE14469DBDE8731eD

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4242f9d78db7218ad72ee3ae14469dbde8731ed


Deployed ByteCode Sourcemap

39115:3288:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41145:5;;:42;;;-1:-1:-1;;;41145:42:0;;41128:14;41145:42;;;;;;;;41128:14;;-1:-1:-1;;;;;41145:5:0;;:12;;41165:9;;41145:42;;;;;;;;;;;;;;41165:9;41145:5;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41145:42:0;;-1:-1:-1;41198:25:0;41204:10;41145:42;41198:5;:25::i;:::-;41090:141;39115:3288;;;;;42037:118;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;13541:91;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15687:169;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15687:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;14640:108;;;;;;;;;;;;;:::i;16338:321::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16338:321:0;;;;;;;;;;;;;;;;;:::i;14484:91::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;37530:115;;;;;;;;;;;;;:::i;17068:218::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17068:218:0;;;;;;;;:::i;14811:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14811:127:0;-1:-1:-1;;;;;14811:127:0;;:::i;37280:120::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37280:120:0;-1:-1:-1;;;;;37280:120:0;;:::i;42281:119::-;;;;;;;;;;;;;:::i;13751:95::-;;;;;;;;;;;;;:::i;17789:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17789:269:0;;;;;;;;:::i;15151:175::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15151:175:0;;;;;;;;:::i;41424:146::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41424:146:0;;:::i;41765:148::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41765:148:0;;:::i;39153:19::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;39153:19:0;;;;;;;;;;;;;;36398:816;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;36398:816:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;15389:151;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15389:151:0;;;;;;;;;;:::i;40650:349::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40650:349:0;;:::i;39954:356::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39954:356:0;;:::i;19369:378::-;-1:-1:-1;;;;;19453:21:0;;19445:65;;;;;-1:-1:-1;;;19445:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19523:49;19552:1;19556:7;19565:6;19523:20;:49::i;:::-;19600:12;;:24;;19617:6;19600:16;:24::i;:::-;19585:12;:39;-1:-1:-1;;;;;19656:18:0;;:9;:18;;;;;;;;;;;:30;;19679:6;19656:22;:30::i;:::-;-1:-1:-1;;;;;19635:18:0;;:9;:18;;;;;;;;;;;:51;;;;19702:37;;;;;;;19635:18;;:9;;19702:37;;;;;;;;;;19369:378;;:::o;42037:118::-;42112:5;;:35;;;-1:-1:-1;;;42112:35:0;;42139:7;42112:35;;;;;;42085:7;;-1:-1:-1;;;;;42112:5:0;;:26;;:35;;;;;;;;;;;;;;:5;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42112:35:0;;-1:-1:-1;42037:118:0;;:::o;13541:91::-;13619:5;13612:12;;;;;;;;-1:-1:-1;;13612:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13586:13;;13612:12;;13619:5;;13612:12;;13619:5;13612:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13541:91;:::o;15687:169::-;15770:4;15787:39;15796:12;:10;:12::i;:::-;15810:7;15819:6;15787:8;:39::i;:::-;-1:-1:-1;15844:4:0;15687:169;;;;:::o;14640:108::-;14728:12;;14640:108;:::o;16338:321::-;16444:4;16461:36;16471:6;16479:9;16490:6;16461:9;:36::i;:::-;16508:121;16517:6;16525:12;:10;:12::i;:::-;16539:89;16577:6;16539:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16539:19:0;;;;;;:11;:19;;;;;;16559:12;:10;:12::i;:::-;-1:-1:-1;;;;;16539:33:0;;;;;;;;;;;;-1:-1:-1;16539:33:0;;;:89;:37;:89::i;:::-;16508:8;:121::i;:::-;-1:-1:-1;16647:4:0;16338:321;;;;;:::o;14484:91::-;14558:9;;;;14484:91;:::o;37530:115::-;37590:7;37617:20;:18;:20::i;:::-;37610:27;;37530:115;:::o;17068:218::-;17156:4;17173:83;17182:12;:10;:12::i;:::-;17196:7;17205:50;17244:10;17205:11;:25;17217:12;:10;:12::i;:::-;-1:-1:-1;;;;;17205:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17205:25:0;;;:34;;;;;;;;;;;:38;:50::i;14811:127::-;-1:-1:-1;;;;;14912:18:0;14885:7;14912:18;;;;;;;;;;;;14811:127::o;37280:120::-;-1:-1:-1;;;;;37368:14:0;;37341:7;37368:14;;;:7;:14;;;;;:24;;:22;:24::i;:::-;37361:31;37280:120;-1:-1:-1;;37280:120:0:o;42281:119::-;42357:5;;:35;;;-1:-1:-1;;;42357:35:0;;42384:7;42357:35;;;;;;42330:7;;-1:-1:-1;;;;;42357:5:0;;:26;;:35;;;;;;;;;;;;;;:5;:35;;;;;;;;;;13751:95;13831:7;13824:14;;;;;;;;-1:-1:-1;;13824:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13798:13;;13824:14;;13831:7;;13824:14;;13831:7;13824:14;;;;;;;;;;;;;;;;;;;;;;;;17789:269;17882:4;17899:129;17908:12;:10;:12::i;:::-;17922:7;17931:96;17970:15;17931:96;;;;;;;;;;;;;;;;;:11;:25;17943:12;:10;:12::i;:::-;-1:-1:-1;;;;;17931:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17931:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;15151:175::-;15237:4;15254:42;15264:12;:10;:12::i;:::-;15278:9;15289:6;15254:9;:42::i;41424:146::-;41522:5;;:40;;;-1:-1:-1;;;41522:40:0;;;;;;;;;;41495:7;;-1:-1:-1;;;;;41522:5:0;;:26;;:40;;;;;;;;;;;;;;:5;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41522:40:0;;41424:146;-1:-1:-1;;41424:146:0:o;41765:148::-;41864:5;;:41;;;-1:-1:-1;;;41864:41:0;;;;;;;;;;41837:7;;-1:-1:-1;;;;;41864:5:0;;:26;;:41;;;;;;;;;;;;;;:5;:41;;;;;;;;;;39153:19;;;-1:-1:-1;;;;;39153:19:0;;:::o;36398:816::-;36627:8;36608:15;:27;;36600:69;;;;;-1:-1:-1;;;36600:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36865:14:0;;36682:18;36865:14;;;:7;:14;;;;;36756:16;;36791:5;;36815:7;;36841:5;;36865:24;;:22;:24::i;:::-;36908:8;36727:204;;;;;;;;;;;-1:-1:-1;;;;;36727:204:0;;;;;;-1:-1:-1;;;;;36727:204:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36703:239;;;;;;36682:260;;36955:12;36970:28;36987:10;36970:16;:28::i;:::-;36955:43;;37011:14;37028:28;37042:4;37048:1;37051;37054;37028:13;:28::i;:::-;37011:45;;37085:5;-1:-1:-1;;;;;37075:15:0;:6;-1:-1:-1;;;;;37075:15:0;;37067:58;;;;;-1:-1:-1;;;37067:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37138:14:0;;;;;;:7;:14;;;;;:26;;:24;:26::i;:::-;37175:31;37184:5;37191:7;37200:5;37175:8;:31::i;:::-;36398:816;;;;;;;;;;:::o;15389:151::-;-1:-1:-1;;;;;15505:18:0;;;15478:7;15505:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15389:151::o;40650:349::-;40707:7;40751:1;40735:13;:17;40727:68;;;;-1:-1:-1;;;40727:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40828:5;;:41;;;-1:-1:-1;;;40828:41:0;;;;;;;;;;40806:19;;-1:-1:-1;;;;;40828:5:0;;:26;;:41;;;;;;;;;;;;;;:5;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40828:41:0;;-1:-1:-1;40880:32:0;40886:10;40898:13;40880:5;:32::i;:::-;40923:5;;:39;;;-1:-1:-1;;;40923:39:0;;40938:10;40923:39;;;;;;;;;;;;-1:-1:-1;;;;;40923:5:0;;;;:14;;:39;;;;;;;;;;;;;;;:5;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40980:11:0;;40650:349;-1:-1:-1;;;40650:349:0:o;39954:356::-;40008:7;40051:1;40036:12;:16;40028:58;;;;;-1:-1:-1;;;40028:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;40120:5;;:40;;;-1:-1:-1;;;40120:40:0;;;;;;;;;;40097:20;;-1:-1:-1;;;;;40120:5:0;;:26;;:40;;;;;;;;;;;;;;:5;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40120:40:0;;-1:-1:-1;40171:31:0;40177:10;40120:40;40171:5;:31::i;:::-;40213:5;;:59;;;-1:-1:-1;;;40213:59:0;;40232:10;40213:59;;;;40252:4;40213:59;;;;;;;;;;;;-1:-1:-1;;;;;40213:5:0;;;;:18;;:59;;;;;;;;;;;;;;;:5;;:59;;;;;;;;;;22315:92;;;;:::o;6708:179::-;6766:7;6798:5;;;6822:6;;;;6814:46;;;;;-1:-1:-1;;;6814:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6878:1;6708:179;-1:-1:-1;;;6708:179:0:o;750:106::-;838:10;750:106;:::o;20936:346::-;-1:-1:-1;;;;;21038:19:0;;21030:68;;;;-1:-1:-1;;;21030:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21117:21:0;;21109:68;;;;-1:-1:-1;;;21109:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21190:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21242:32;;;;;;;;;;;;;;;;;20936:346;;;:::o;18548:539::-;-1:-1:-1;;;;;18654:20:0;;18646:70;;;;-1:-1:-1;;;18646:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18735:23:0;;18727:71;;;;-1:-1:-1;;;18727:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18811:47;18832:6;18840:9;18851:6;18811:20;:47::i;:::-;18891:71;18913:6;18891:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18891:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;18871:17:0;;;:9;:17;;;;;;;;;;;:91;;;;18996:20;;;;;;;:32;;19021:6;18996:24;:32::i;:::-;-1:-1:-1;;;;;18973:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;19044:35;;;;;;;18973:20;;19044:35;;;;;;;;;;;;;18548:539;;;:::o;9535:166::-;9621:7;9657:12;9649:6;;;;9641:29;;;;-1:-1:-1;;;9641:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9688:5:0;;;9535:166::o;33223:289::-;33284:7;33325:16;33308:13;:11;:13::i;:::-;:33;33304:201;;;-1:-1:-1;33365:24:0;33358:31;;33304:201;33429:64;33451:10;33463:12;33477:15;33429:21;:64::i;:::-;33422:71;;;;29752:114;29844:14;;29752:114::o;34499:185::-;34576:7;34642:20;:18;:20::i;:::-;34664:10;34613:62;;;;;;-1:-1:-1;;;34613:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34603:73;;;;;;34596:80;;34499:185;;;:::o;26647:1432::-;26732:7;27657:66;27643:80;;;27635:127;;;;-1:-1:-1;;;27635:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27781:1;:7;;27786:2;27781:7;:18;;;;27792:1;:7;;27797:2;27792:7;27781:18;27773:65;;;;-1:-1:-1;;;27773:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27936:14;27953:24;27963:4;27969:1;27972;27975;27953:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;27953:24:0;;-1:-1:-1;;27953:24:0;;;-1:-1:-1;;;;;;;27996:20:0;;27988:57;;;;;-1:-1:-1;;;27988:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28065:6;26647:1432;-1:-1:-1;;;;;26647:1432:0:o;29874:181::-;30028:19;;30046:1;30028:19;;;29874:181::o;20080:418::-;-1:-1:-1;;;;;20164:21:0;;20156:67;;;;-1:-1:-1;;;20156:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20236:49;20257:7;20274:1;20278:6;20236:20;:49::i;:::-;20319:68;20342:6;20319:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20319:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;20298:18:0;;:9;:18;;;;;;;;;;:89;20413:12;;:24;;20430:6;20413:16;:24::i;:::-;20398:12;:39;20453:37;;;;;;;;20479:1;;-1:-1:-1;;;;;20453:37:0;;;;;;;;;;;;20080:418;;:::o;34692:326::-;34991:9;;34965:46::o;33520:337::-;33622:7;33702:8;33729:4;33752:7;33778:13;:11;:13::i;:::-;33818:4;33673:165;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33673:165:0;;;;;;;;;;;;;;;;;;;;;;;;33649:200;;;;;;33642:207;;33520:337;;;;;:::o;7170:158::-;7228:7;7261:1;7256;:6;;7248:49;;;;;-1:-1:-1;;;7248:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7315:5:0;;;7170:158::o

Swarm Source

ipfs://467320c715236294ae2d0749c6aebd39d5b0a846476e2be2796c6f393df5cf92
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

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.