Overview ERC20
PRICE
$4,146.43 @ 1.183 ETH (4.52%)

ON-CHAIN MARKET CAP $14,517,980,457.60

Total Supply:
3,501,295.08 wstETH

Holders:
15,345
Profile Summary
Blockchain:
Ethereum (1)


Decimals:
18
Contract Source Code Verified (Partial Match)
Contract Name:
WstETH

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Created At:
Fri, 19 Feb 2021 16:37:20 GMT
WstETH.sol
WstETH.sol
WstETH.sol


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"
  }
]


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

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

----Encoded View------------Arg [0] : 0x000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84