Token
ERC-20: Wrapped Ether v10 (WETH10)
ERC-20
Overview
Max Total Supply
39,906.510370227262911001 WETH10
Holders
121,096
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.02 WETH10Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WETH10
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later // Copyright (C) 2015, 2016, 2017 Dapphub // Adapted by Ethereum Community 2021 pragma solidity 0.7.6; import "./interfaces/IWETH10.sol"; import "./interfaces/IERC3156FlashBorrower.sol"; interface ITransferReceiver { function onTokenTransfer(address, uint, bytes calldata) external returns (bool); } interface IApprovalReceiver { function onTokenApproval(address, uint, bytes calldata) external returns (bool); } /// @dev Wrapped Ether v10 (WETH10) is an Ether (ETH) ERC-20 wrapper. You can `deposit` ETH and obtain a WETH10 balance which can then be operated as an ERC-20 token. You can /// `withdraw` ETH from WETH10, which will then burn WETH10 token in your wallet. The amount of WETH10 token in any wallet is always identical to the /// balance of ETH deposited minus the ETH withdrawn with that specific wallet. contract WETH10 is IWETH10 { string public constant name = "Wrapped Ether v10"; string public constant symbol = "WETH10"; uint8 public constant decimals = 18; bytes32 public immutable CALLBACK_SUCCESS = keccak256("ERC3156FlashBorrower.onFlashLoan"); bytes32 public immutable PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); uint256 public immutable deploymentChainId; bytes32 private immutable _DOMAIN_SEPARATOR; /// @dev Records amount of WETH10 token owned by account. mapping (address => uint256) public override balanceOf; /// @dev Records current ERC2612 nonce for account. This value must be included whenever signature is generated for {permit}. /// Every successful call to {permit} increases account's nonce by one. This prevents signature from being used multiple times. mapping (address => uint256) public override nonces; /// @dev Records number of WETH10 token that account (second) will be allowed to spend on behalf of another account (first) through {transferFrom}. mapping (address => mapping (address => uint256)) public override allowance; /// @dev Current amount of flash-minted WETH10 token. uint256 public override flashMinted; constructor() { uint256 chainId; assembly {chainId := chainid()} deploymentChainId = chainId; _DOMAIN_SEPARATOR = _calculateDomainSeparator(chainId); } /// @dev Calculate the DOMAIN_SEPARATOR. function _calculateDomainSeparator(uint256 chainId) private view returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256(bytes("1")), chainId, address(this) ) ); } /// @dev Return the DOMAIN_SEPARATOR. function DOMAIN_SEPARATOR() external view override returns (bytes32) { uint256 chainId; assembly {chainId := chainid()} return chainId == deploymentChainId ? _DOMAIN_SEPARATOR : _calculateDomainSeparator(chainId); } /// @dev Returns the total supply of WETH10 token as the ETH held in this contract. function totalSupply() external view override returns (uint256) { return address(this).balance + flashMinted; } /// @dev Fallback, `msg.value` of ETH sent to this contract grants caller account a matching increase in WETH10 token balance. /// Emits {Transfer} event to reflect WETH10 token mint of `msg.value` from `address(0)` to caller account. receive() external payable { // _mintTo(msg.sender, msg.value); balanceOf[msg.sender] += msg.value; emit Transfer(address(0), msg.sender, msg.value); } /// @dev `msg.value` of ETH sent to this contract grants caller account a matching increase in WETH10 token balance. /// Emits {Transfer} event to reflect WETH10 token mint of `msg.value` from `address(0)` to caller account. function deposit() external override payable { // _mintTo(msg.sender, msg.value); balanceOf[msg.sender] += msg.value; emit Transfer(address(0), msg.sender, msg.value); } /// @dev `msg.value` of ETH sent to this contract grants `to` account a matching increase in WETH10 token balance. /// Emits {Transfer} event to reflect WETH10 token mint of `msg.value` from `address(0)` to `to` account. function depositTo(address to) external override payable { // _mintTo(to, msg.value); balanceOf[to] += msg.value; emit Transfer(address(0), to, msg.value); } /// @dev `msg.value` of ETH sent to this contract grants `to` account a matching increase in WETH10 token balance, /// after which a call is executed to an ERC677-compliant contract with the `data` parameter. /// Emits {Transfer} event. /// Returns boolean value indicating whether operation succeeded. /// For more information on {transferAndCall} format, see https://github.com/ethereum/EIPs/issues/677. function depositToAndCall(address to, bytes calldata data) external override payable returns (bool success) { // _mintTo(to, msg.value); balanceOf[to] += msg.value; emit Transfer(address(0), to, msg.value); return ITransferReceiver(to).onTokenTransfer(msg.sender, msg.value, data); } /// @dev Return the amount of WETH10 token that can be flash-lent. function maxFlashLoan(address token) external view override returns (uint256) { return token == address(this) ? type(uint112).max - flashMinted : 0; // Can't underflow } /// @dev Return the fee (zero) for flash lending an amount of WETH10 token. function flashFee(address token, uint256) external view override returns (uint256) { require(token == address(this), "WETH: flash mint only WETH10"); return 0; } /// @dev Flash lends `value` WETH10 token to the receiver address. /// By the end of the transaction, `value` WETH10 token will be burned from the receiver. /// The flash-minted WETH10 token is not backed by real ETH, but can be withdrawn as such up to the ETH balance of this contract. /// Arbitrary data can be passed as a bytes calldata parameter. /// Emits {Approval} event to reflect reduced allowance `value` for this contract to spend from receiver account (`receiver`), /// unless allowance is set to `type(uint256).max` /// Emits two {Transfer} events for minting and burning of the flash-minted amount. /// Returns boolean value indicating whether operation succeeded. /// Requirements: /// - `value` must be less or equal to type(uint112).max. /// - The total of all flash loans in a tx must be less or equal to type(uint112).max. function flashLoan(IERC3156FlashBorrower receiver, address token, uint256 value, bytes calldata data) external override returns (bool) { require(token == address(this), "WETH: flash mint only WETH10"); require(value <= type(uint112).max, "WETH: individual loan limit exceeded"); flashMinted = flashMinted + value; require(flashMinted <= type(uint112).max, "WETH: total loan limit exceeded"); // _mintTo(address(receiver), value); balanceOf[address(receiver)] += value; emit Transfer(address(0), address(receiver), value); require( receiver.onFlashLoan(msg.sender, address(this), value, 0, data) == CALLBACK_SUCCESS, "WETH: flash loan failed" ); // _decreaseAllowance(address(receiver), address(this), value); uint256 allowed = allowance[address(receiver)][address(this)]; if (allowed != type(uint256).max) { require(allowed >= value, "WETH: request exceeds allowance"); uint256 reduced = allowed - value; allowance[address(receiver)][address(this)] = reduced; emit Approval(address(receiver), address(this), reduced); } // _burnFrom(address(receiver), value); uint256 balance = balanceOf[address(receiver)]; require(balance >= value, "WETH: burn amount exceeds balance"); balanceOf[address(receiver)] = balance - value; emit Transfer(address(receiver), address(0), value); flashMinted = flashMinted - value; return true; } /// @dev Burn `value` WETH10 token from caller account and withdraw matching ETH to the same. /// Emits {Transfer} event to reflect WETH10 token burn of `value` to `address(0)` from caller account. /// Requirements: /// - caller account must have at least `value` balance of WETH10 token. function withdraw(uint256 value) external override { // _burnFrom(msg.sender, value); uint256 balance = balanceOf[msg.sender]; require(balance >= value, "WETH: burn amount exceeds balance"); balanceOf[msg.sender] = balance - value; emit Transfer(msg.sender, address(0), value); // _transferEther(msg.sender, value); (bool success, ) = msg.sender.call{value: value}(""); require(success, "WETH: ETH transfer failed"); } /// @dev Burn `value` WETH10 token from caller account and withdraw matching ETH to account (`to`). /// Emits {Transfer} event to reflect WETH10 token burn of `value` to `address(0)` from caller account. /// Requirements: /// - caller account must have at least `value` balance of WETH10 token. function withdrawTo(address payable to, uint256 value) external override { // _burnFrom(msg.sender, value); uint256 balance = balanceOf[msg.sender]; require(balance >= value, "WETH: burn amount exceeds balance"); balanceOf[msg.sender] = balance - value; emit Transfer(msg.sender, address(0), value); // _transferEther(to, value); (bool success, ) = to.call{value: value}(""); require(success, "WETH: ETH transfer failed"); } /// @dev Burn `value` WETH10 token from account (`from`) and withdraw matching ETH to account (`to`). /// Emits {Approval} event to reflect reduced allowance `value` for caller account to spend from account (`from`), /// unless allowance is set to `type(uint256).max` /// Emits {Transfer} event to reflect WETH10 token burn of `value` to `address(0)` from account (`from`). /// Requirements: /// - `from` account must have at least `value` balance of WETH10 token. /// - `from` account must have approved caller to spend at least `value` of WETH10 token, unless `from` and caller are the same account. function withdrawFrom(address from, address payable to, uint256 value) external override { if (from != msg.sender) { // _decreaseAllowance(from, msg.sender, value); uint256 allowed = allowance[from][msg.sender]; if (allowed != type(uint256).max) { require(allowed >= value, "WETH: request exceeds allowance"); uint256 reduced = allowed - value; allowance[from][msg.sender] = reduced; emit Approval(from, msg.sender, reduced); } } // _burnFrom(from, value); uint256 balance = balanceOf[from]; require(balance >= value, "WETH: burn amount exceeds balance"); balanceOf[from] = balance - value; emit Transfer(from, address(0), value); // _transferEther(to, value); (bool success, ) = to.call{value: value}(""); require(success, "WETH: Ether transfer failed"); } /// @dev Sets `value` as allowance of `spender` account over caller account's WETH10 token. /// Emits {Approval} event. /// Returns boolean value indicating whether operation succeeded. function approve(address spender, uint256 value) external override returns (bool) { // _approve(msg.sender, spender, value); allowance[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } /// @dev Sets `value` as allowance of `spender` account over caller account's WETH10 token, /// after which a call is executed to an ERC677-compliant contract with the `data` parameter. /// Emits {Approval} event. /// Returns boolean value indicating whether operation succeeded. /// For more information on {approveAndCall} format, see https://github.com/ethereum/EIPs/issues/677. function approveAndCall(address spender, uint256 value, bytes calldata data) external override returns (bool) { // _approve(msg.sender, spender, value); allowance[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return IApprovalReceiver(spender).onTokenApproval(msg.sender, value, data); } /// @dev Sets `value` as allowance of `spender` account over `owner` account's WETH10 token, given `owner` account's signed approval. /// Emits {Approval} event. /// Requirements: /// - `deadline` must be timestamp in future. /// - `v`, `r` and `s` must be valid `secp256k1` signature from `owner` account over EIP712-formatted function arguments. /// - the signature must use `owner` account's current nonce (see {nonces}). /// - the signer cannot be `address(0)` and must be `owner` account. /// For more information on signature format, see https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. /// WETH10 token implementation adapted from https://github.com/albertocuestacanada/ERC20Permit/blob/master/contracts/ERC20Permit.sol. function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external override { require(block.timestamp <= deadline, "WETH: Expired permit"); uint256 chainId; assembly {chainId := chainid()} bytes32 hashStruct = keccak256( abi.encode( PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline)); bytes32 hash = keccak256( abi.encodePacked( "\x19\x01", chainId == deploymentChainId ? _DOMAIN_SEPARATOR : _calculateDomainSeparator(chainId), hashStruct)); address signer = ecrecover(hash, v, r, s); require(signer != address(0) && signer == owner, "WETH: invalid permit"); // _approve(owner, spender, value); allowance[owner][spender] = value; emit Approval(owner, spender, value); } /// @dev Moves `value` WETH10 token from caller's account to account (`to`). /// A transfer to `address(0)` triggers an ETH withdraw matching the sent WETH10 token in favor of caller. /// Emits {Transfer} event. /// Returns boolean value indicating whether operation succeeded. /// Requirements: /// - caller account must have at least `value` WETH10 token. function transfer(address to, uint256 value) external override returns (bool) { // _transferFrom(msg.sender, to, value); if (to != address(0) && to != address(this)) { // Transfer uint256 balance = balanceOf[msg.sender]; require(balance >= value, "WETH: transfer amount exceeds balance"); balanceOf[msg.sender] = balance - value; balanceOf[to] += value; emit Transfer(msg.sender, to, value); } else { // Withdraw uint256 balance = balanceOf[msg.sender]; require(balance >= value, "WETH: burn amount exceeds balance"); balanceOf[msg.sender] = balance - value; emit Transfer(msg.sender, address(0), value); (bool success, ) = msg.sender.call{value: value}(""); require(success, "WETH: ETH transfer failed"); } return true; } /// @dev Moves `value` WETH10 token from account (`from`) to account (`to`) using allowance mechanism. /// `value` is then deducted from caller account's allowance, unless set to `type(uint256).max`. /// A transfer to `address(0)` triggers an ETH withdraw matching the sent WETH10 token in favor of caller. /// Emits {Approval} event to reflect reduced allowance `value` for caller account to spend from account (`from`), /// unless allowance is set to `type(uint256).max` /// Emits {Transfer} event. /// Returns boolean value indicating whether operation succeeded. /// Requirements: /// - `from` account must have at least `value` balance of WETH10 token. /// - `from` account must have approved caller to spend at least `value` of WETH10 token, unless `from` and caller are the same account. function transferFrom(address from, address to, uint256 value) external override returns (bool) { if (from != msg.sender) { // _decreaseAllowance(from, msg.sender, value); uint256 allowed = allowance[from][msg.sender]; if (allowed != type(uint256).max) { require(allowed >= value, "WETH: request exceeds allowance"); uint256 reduced = allowed - value; allowance[from][msg.sender] = reduced; emit Approval(from, msg.sender, reduced); } } // _transferFrom(from, to, value); if (to != address(0) && to != address(this)) { // Transfer uint256 balance = balanceOf[from]; require(balance >= value, "WETH: transfer amount exceeds balance"); balanceOf[from] = balance - value; balanceOf[to] += value; emit Transfer(from, to, value); } else { // Withdraw uint256 balance = balanceOf[from]; require(balance >= value, "WETH: burn amount exceeds balance"); balanceOf[from] = balance - value; emit Transfer(from, address(0), value); (bool success, ) = msg.sender.call{value: value}(""); require(success, "WETH: ETH transfer failed"); } return true; } /// @dev Moves `value` WETH10 token from caller's account to account (`to`), /// after which a call is executed to an ERC677-compliant contract with the `data` parameter. /// A transfer to `address(0)` triggers an ETH withdraw matching the sent WETH10 token in favor of caller. /// Emits {Transfer} event. /// Returns boolean value indicating whether operation succeeded. /// Requirements: /// - caller account must have at least `value` WETH10 token. /// For more information on {transferAndCall} format, see https://github.com/ethereum/EIPs/issues/677. function transferAndCall(address to, uint value, bytes calldata data) external override returns (bool) { // _transferFrom(msg.sender, to, value); if (to != address(0)) { // Transfer uint256 balance = balanceOf[msg.sender]; require(balance >= value, "WETH: transfer amount exceeds balance"); balanceOf[msg.sender] = balance - value; balanceOf[to] += value; emit Transfer(msg.sender, to, value); } else { // Withdraw uint256 balance = balanceOf[msg.sender]; require(balance >= value, "WETH: burn amount exceeds balance"); balanceOf[msg.sender] = balance - value; emit Transfer(msg.sender, address(0), value); (bool success, ) = msg.sender.call{value: value}(""); require(success, "WETH: ETH transfer failed"); } return ITransferReceiver(to).onTokenTransfer(msg.sender, value, data); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; /** * @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); }
// SPDX-License-Identifier: GPL-3.0-or-later // Code adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2237/ pragma solidity ^0.7.6; /** * @dev Interface of the ERC2612 standard as defined in the EIP. * * Adds the {permit} method, which can be used to change one's * {IERC20-allowance} without having to send a transaction, by signing a * message. This allows users to spend tokens without having to hold Ether. * * See https://eips.ethereum.org/EIPS/eip-2612. */ interface IERC2612 { /** * @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: * * - `owner` cannot be `address(0)`. * - `spender` cannot be `address(0)`. * - `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 ERC2612 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. */ function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <=0.8.0; interface IERC3156FlashBorrower { /** * @dev Receive a flash loan. * @param initiator The initiator of the loan. * @param token The loan currency. * @param amount The amount of tokens lent. * @param fee The additional amount of tokens to repay. * @param data Arbitrary data structure, intended to contain user-defined parameters. * @return The keccak256 hash of "ERC3156FlashBorrower.onFlashLoan" */ function onFlashLoan( address initiator, address token, uint256 amount, uint256 fee, bytes calldata data ) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <=0.8.0; import "./IERC3156FlashBorrower.sol"; interface IERC3156FlashLender { /** * @dev The amount of currency available to be lended. * @param token The loan currency. * @return The amount of `token` that can be borrowed. */ function maxFlashLoan( address token ) external view returns (uint256); /** * @dev The fee to be charged for a given loan. * @param token The loan currency. * @param amount The amount of tokens lent. * @return The amount of `token` to be charged for the loan, on top of the returned principal. */ function flashFee( address token, uint256 amount ) external view returns (uint256); /** * @dev Initiate a flash loan. * @param receiver The receiver of the tokens in the loan, and the receiver of the callback. * @param token The loan currency. * @param amount The amount of tokens lent. * @param data Arbitrary data structure, intended to contain user-defined parameters. */ function flashLoan( IERC3156FlashBorrower receiver, address token, uint256 amount, bytes calldata data ) external returns (bool); }
// SPDX-License-Identifier: GPL-3.0-or-later // Copyright (C) 2015, 2016, 2017 Dapphub // Adapted by Ethereum Community 2021 pragma solidity 0.7.6; import "./IERC20.sol"; import "./IERC2612.sol"; import "./IERC3156FlashLender.sol"; /// @dev Wrapped Ether v10 (WETH10) is an Ether (ETH) ERC-20 wrapper. You can `deposit` ETH and obtain a WETH10 balance which can then be operated as an ERC-20 token. You can /// `withdraw` ETH from WETH10, which will then burn WETH10 token in your wallet. The amount of WETH10 token in any wallet is always identical to the /// balance of ETH deposited minus the ETH withdrawn with that specific wallet. interface IWETH10 is IERC20, IERC2612, IERC3156FlashLender { /// @dev Returns current amount of flash-minted WETH10 token. function flashMinted() external view returns(uint256); /// @dev `msg.value` of ETH sent to this contract grants caller account a matching increase in WETH10 token balance. /// Emits {Transfer} event to reflect WETH10 token mint of `msg.value` from `address(0)` to caller account. function deposit() external payable; /// @dev `msg.value` of ETH sent to this contract grants `to` account a matching increase in WETH10 token balance. /// Emits {Transfer} event to reflect WETH10 token mint of `msg.value` from `address(0)` to `to` account. function depositTo(address to) external payable; /// @dev Burn `value` WETH10 token from caller account and withdraw matching ETH to the same. /// Emits {Transfer} event to reflect WETH10 token burn of `value` to `address(0)` from caller account. /// Requirements: /// - caller account must have at least `value` balance of WETH10 token. function withdraw(uint256 value) external; /// @dev Burn `value` WETH10 token from caller account and withdraw matching ETH to account (`to`). /// Emits {Transfer} event to reflect WETH10 token burn of `value` to `address(0)` from caller account. /// Requirements: /// - caller account must have at least `value` balance of WETH10 token. function withdrawTo(address payable to, uint256 value) external; /// @dev Burn `value` WETH10 token from account (`from`) and withdraw matching ETH to account (`to`). /// Emits {Approval} event to reflect reduced allowance `value` for caller account to spend from account (`from`), /// unless allowance is set to `type(uint256).max` /// Emits {Transfer} event to reflect WETH10 token burn of `value` to `address(0)` from account (`from`). /// Requirements: /// - `from` account must have at least `value` balance of WETH10 token. /// - `from` account must have approved caller to spend at least `value` of WETH10 token, unless `from` and caller are the same account. function withdrawFrom(address from, address payable to, uint256 value) external; /// @dev `msg.value` of ETH sent to this contract grants `to` account a matching increase in WETH10 token balance, /// after which a call is executed to an ERC677-compliant contract with the `data` parameter. /// Emits {Transfer} event. /// Returns boolean value indicating whether operation succeeded. /// For more information on {transferAndCall} format, see https://github.com/ethereum/EIPs/issues/677. function depositToAndCall(address to, bytes calldata data) external payable returns (bool); /// @dev Sets `value` as allowance of `spender` account over caller account's WETH10 token, /// after which a call is executed to an ERC677-compliant contract with the `data` parameter. /// Emits {Approval} event. /// Returns boolean value indicating whether operation succeeded. /// For more information on {approveAndCall} format, see https://github.com/ethereum/EIPs/issues/677. function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); /// @dev Moves `value` WETH10 token from caller's account to account (`to`), /// after which a call is executed to an ERC677-compliant contract with the `data` parameter. /// A transfer to `address(0)` triggers an ETH withdraw matching the sent WETH10 token in favor of caller. /// Emits {Transfer} event. /// Returns boolean value indicating whether operation succeeded. /// Requirements: /// - caller account must have at least `value` WETH10 token. /// For more information on {transferAndCall} format, see https://github.com/ethereum/EIPs/issues/677. function transferAndCall(address to, uint value, bytes calldata data) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CALLBACK_SUCCESS","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"approveAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","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":[],"name":"deploymentChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"depositTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"depositToAndCall","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrower","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flashMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"withdrawFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101006040527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd96080527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960a05234801561005957600080fd5b504660c081905261006981610072565b60e0525061014c565b60408051808201825260118152700577261707065642045746865722076313607c1b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f5afefa023603a382ac22bd36644e004cefabbfaf61d4180000d8dc2b10c168b8818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101939093523060a0808501919091528251808503909101815260c0909301909152815191012090565b60805160a05160c05160e05161216f61019a60003980610e915280611d81525080610e5c5280611c165280611d4c525080610e305280611ce652508061128c528061169d525061216f6000f3fe6080604052600436106101a05760003560e01c806370a08231116100ec578063b760faf91161008a578063d0e30db011610064578063d0e30db0146107a8578063d505accf146107b0578063d9d98ce41461080e578063dd62ed3e14610847576101e0565b8063b760faf9146106dd578063cae9ca5114610703578063cd0d009614610793576101e0565b80638b28d32f116100c65780638b28d32f146106375780639555a9421461064c57806395d89b411461068f578063a9059cbb146106a4576101e0565b806370a08231146105bc5780637ecebe00146105ef5780638237e53814610622576101e0565b806330adf81f116101595780634000aea0116101335780634000aea0146103e05780635cffe9de146104705780635ddb7d7e1461050b578063613255ab14610589576101e0565b806330adf81f1461038b578063313ce567146103a05780633644e515146103cb576101e0565b806306fdde03146101e5578063095ea7b31461026f57806318160ddd146102bc578063205c2878146102e357806323b872dd1461031e5780632e1a7d4d14610361576101e0565b366101e05733600081815260208181526040808320805434908101909155815190815290516000805160206120d9833981519152929181900390910190a3005b600080fd5b3480156101f157600080fd5b506101fa610882565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023457818101518382015260200161021c565b50505050905090810190601f1680156102615780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027b57600080fd5b506102a86004803603604081101561029257600080fd5b506001600160a01b0381351690602001356108af565b604080519115158252519081900360200190f35b3480156102c857600080fd5b506102d1610903565b60408051918252519081900360200190f35b3480156102ef57600080fd5b5061031c6004803603604081101561030657600080fd5b506001600160a01b03813516906020013561090b565b005b34801561032a57600080fd5b506102a86004803603606081101561034157600080fd5b506001600160a01b03813581169160208101359091169060400135610a2c565b34801561036d57600080fd5b5061031c6004803603602081101561038457600080fd5b5035610d17565b34801561039757600080fd5b506102d1610e2e565b3480156103ac57600080fd5b506103b5610e52565b6040805160ff9092168252519081900360200190f35b3480156103d757600080fd5b506102d1610e57565b3480156103ec57600080fd5b506102a86004803603606081101561040357600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561043257600080fd5b82018360208201111561044457600080fd5b803590602001918460018302840111600160201b8311171561046557600080fd5b509092509050610eb7565b34801561047c57600080fd5b506102a86004803603608081101561049357600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156104cd57600080fd5b8201836020820111156104df57600080fd5b803590602001918460018302840111600160201b8311171561050057600080fd5b509092509050611141565b6102a86004803603604081101561052157600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561054b57600080fd5b82018360208201111561055d57600080fd5b803590602001918460018302840111600160201b8311171561057e57600080fd5b50909250905061154f565b34801561059557600080fd5b506102d1600480360360208110156105ac57600080fd5b50356001600160a01b031661164b565b3480156105c857600080fd5b506102d1600480360360208110156105df57600080fd5b50356001600160a01b0316611677565b3480156105fb57600080fd5b506102d16004803603602081101561061257600080fd5b50356001600160a01b0316611689565b34801561062e57600080fd5b506102d161169b565b34801561064357600080fd5b506102d16116bf565b34801561065857600080fd5b5061031c6004803603606081101561066f57600080fd5b506001600160a01b038135811691602081013590911690604001356116c5565b34801561069b57600080fd5b506101fa6118ee565b3480156106b057600080fd5b506102a8600480360360408110156106c757600080fd5b506001600160a01b038135169060200135611910565b61031c600480360360208110156106f357600080fd5b50356001600160a01b0316611afa565b34801561070f57600080fd5b506102a86004803603606081101561072657600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561075557600080fd5b82018360208201111561076757600080fd5b803590602001918460018302840111600160201b8311171561078857600080fd5b509092509050611b3f565b34801561079f57600080fd5b506102d1611c14565b61031c611c38565b3480156107bc57600080fd5b5061031c600480360360e08110156107d357600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611c73565b34801561081a57600080fd5b506102d16004803603604081101561083157600080fd5b506001600160a01b038135169060200135611f10565b34801561085357600080fd5b506102d16004803603604081101561086a57600080fd5b506001600160a01b0381358116916020013516611f78565b604051806040016040528060118152602001700577261707065642045746865722076313607c1b81525081565b3360008181526002602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390926000805160206120f9833981519152928290030190a350600192915050565b600354470190565b336000908152602081905260409020548181101561095a5760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b336000818152602081815260408083208686039055805186815290519293926000805160206120d9833981519152929181900390910190a36040516000906001600160a01b0385169084908381818185875af1925050503d80600081146109dd576040519150601f19603f3d011682016040523d82523d6000602084013e6109e2565b606091505b5050905080610a26576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b50505050565b60006001600160a01b0384163314610b11576001600160a01b03841660009081526002602090815260408083203384529091529020546000198114610b0f5782811015610ac0576040805162461bcd60e51b815260206004820152601f60248201527f574554483a2072657175657374206578636565647320616c6c6f77616e636500604482015290519081900360640190fd5b6001600160a01b0385166000818152600260209081526040808320338085529083529281902087860390819055815181815291519094926000805160206120f9833981519152928290030190a3505b505b6001600160a01b03831615801590610b3257506001600160a01b0383163014155b15610be6576001600160a01b03841660009081526020819052604090205482811015610b8f5760405162461bcd60e51b81526004018080602001828103825260258152602001806120706025913960400191505060405180910390fd5b6001600160a01b038086166000818152602081815260408083208887039055938816808352918490208054880190558351878152935191936000805160206120d9833981519152929081900390910190a350610d0d565b6001600160a01b03841660009081526020819052604090205482811015610c3e5760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b6001600160a01b0385166000818152602081815260408083208786039055805187815290519293926000805160206120d9833981519152929181900390910190a3604051600090339085908381818185875af1925050503d8060008114610cc1576040519150601f19603f3d011682016040523d82523d6000602084013e610cc6565b606091505b5050905080610d0a576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b50505b5060019392505050565b3360009081526020819052604090205481811015610d665760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b336000818152602081815260408083208686039055805186815290519293926000805160206120d9833981519152929181900390910190a3604051600090339084908381818185875af1925050503d8060008114610de0576040519150601f19603f3d011682016040523d82523d6000602084013e610de5565b606091505b5050905080610e29576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b601281565b6000467f00000000000000000000000000000000000000000000000000000000000000008114610e8f57610e8a81611f95565b610eb1565b7f00000000000000000000000000000000000000000000000000000000000000005b91505090565b60006001600160a01b03851615610f6c573360009081526020819052604090205484811015610f175760405162461bcd60e51b81526004018080602001828103825260258152602001806120706025913960400191505060405180910390fd5b3360008181526020818152604080832089860390556001600160a01b038a168084529281902080548a019055805189815290519293926000805160206120d9833981519152929181900390910190a350611081565b3360009081526020819052604090205484811015610fbb5760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b336000818152602081815260408083208986039055805189815290519293926000805160206120d9833981519152929181900390910190a3604051600090339087908381818185875af1925050503d8060008114611035576040519150601f19603f3d011682016040523d82523d6000602084013e61103a565b606091505b505090508061107e576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b50505b846001600160a01b031663a4c0ed36338686866040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050602060405180830381600087803b15801561110c57600080fd5b505af1158015611120573d6000803e3d6000fd5b505050506040513d602081101561113657600080fd5b505195945050505050565b60006001600160a01b03851630146111a0576040805162461bcd60e51b815260206004820152601c60248201527f574554483a20666c617368206d696e74206f6e6c792057455448313000000000604482015290519081900360640190fd5b6001600160701b038411156111e65760405162461bcd60e51b81526004018080602001828103825260248152602001806120b56024913960400191505060405180910390fd5b600380548501908190556001600160701b03101561124b576040805162461bcd60e51b815260206004820152601f60248201527f574554483a20746f74616c206c6f616e206c696d697420657863656564656400604482015290519081900360640190fd5b6001600160a01b038616600081815260208181526040808320805489019055805188815290516000805160206120d9833981519152929181900390910190a37f0000000000000000000000000000000000000000000000000000000000000000866001600160a01b03166323e30c8b333088600089896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050975050505050505050602060405180830381600087803b15801561135057600080fd5b505af1158015611364573d6000803e3d6000fd5b505050506040513d602081101561137a57600080fd5b5051146113ce576040805162461bcd60e51b815260206004820152601760248201527f574554483a20666c617368206c6f616e206661696c6564000000000000000000604482015290519081900360640190fd5b6001600160a01b0386166000908152600260209081526040808320308452909152902054600019811461149f5784811015611450576040805162461bcd60e51b815260206004820152601f60248201527f574554483a2072657175657374206578636565647320616c6c6f77616e636500604482015290519081900360640190fd5b6001600160a01b0387166000818152600260209081526040808320308085529083529281902089860390819055815181815291519094926000805160206120f9833981519152928290030190a3505b6001600160a01b038716600090815260208190526040902054858110156114f75760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b6001600160a01b0388166000818152602081815260408083208a8603905580518a815290519293926000805160206120d9833981519152929181900390910190a3505060038054859003905550600195945050505050565b6001600160a01b0383166000818152602081815260408083208054349081019091558151908152905192939284926000805160206120d9833981519152928290030190a3604051635260769b60e11b815233600482018181523460248401819052606060448501908152606485018790526001600160a01b0389169463a4c0ed36949389928992608401848480828437600081840152601f19601f82011690508083019250505095505050505050602060405180830381600087803b15801561161757600080fd5b505af115801561162b573d6000803e3d6000fd5b505050506040513d602081101561164157600080fd5b5051949350505050565b60006001600160a01b0382163014611664576000611671565b6003546001600160701b03035b92915050565b60006020819052908152604090205481565b60016020526000908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60035481565b6001600160a01b03831633146117a8576001600160a01b038316600090815260026020908152604080832033845290915290205460001981146117a65781811015611757576040805162461bcd60e51b815260206004820152601f60248201527f574554483a2072657175657374206578636565647320616c6c6f77616e636500604482015290519081900360640190fd5b6001600160a01b0384166000818152600260209081526040808320338085529083529281902086860390819055815181815291519094926000805160206120f9833981519152928290030190a3505b505b6001600160a01b038316600090815260208190526040902054818110156118005760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b6001600160a01b0384166000818152602081815260408083208686039055805186815290519293926000805160206120d9833981519152929181900390910190a36040516000906001600160a01b0385169084908381818185875af1925050503d806000811461188c576040519150601f19603f3d011682016040523d82523d6000602084013e611891565b606091505b50509050806118e7576040805162461bcd60e51b815260206004820152601b60248201527f574554483a204574686572207472616e73666572206661696c65640000000000604482015290519081900360640190fd5b5050505050565b6040518060400160405280600681526020016505745544831360d41b81525081565b60006001600160a01b0383161580159061193357506001600160a01b0383163014155b156119dc5733600090815260208190526040902054828110156119875760405162461bcd60e51b81526004018080602001828103825260258152602001806120706025913960400191505060405180910390fd5b3360008181526020818152604080832087860390556001600160a01b03881680845292819020805488019055805187815290519293926000805160206120d9833981519152929181900390910190a350611af1565b3360009081526020819052604090205482811015611a2b5760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b336000818152602081815260408083208786039055805187815290519293926000805160206120d9833981519152929181900390910190a3604051600090339085908381818185875af1925050503d8060008114611aa5576040519150601f19603f3d011682016040523d82523d6000602084013e611aaa565b606091505b5050905080611aee576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b50505b50600192915050565b6001600160a01b038116600081815260208181526040808320805434908101909155815190815290516000805160206120d9833981519152929181900390910190a350565b3360008181526002602090815260408083206001600160a01b038916808552908352818420889055815188815291519394909390926000805160206120f9833981519152928290030190a3846001600160a01b031662ba451f338686866040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050602060405180830381600087803b15801561110c57600080fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b33600081815260208181526040808320805434908101909155815190815290516000805160206120d9833981519152929181900390910190a3565b83421115611cbf576040805162461bcd60e51b815260206004820152601460248201527315d155120e88115e1c1a5c9959081c195c9b5a5d60621b604482015290519081900360640190fd5b6001600160a01b0380881660008181526001602081815260408084208054938401905580517f00000000000000000000000000000000000000000000000000000000000000008184015280820195909552948b166060850152608084018a905260a084019190915260c08084018990528451808503909101815260e09093019093528151919092012046917f00000000000000000000000000000000000000000000000000000000000000008314611d7f57611d7a83611f95565b611da1565b7f00000000000000000000000000000000000000000000000000000000000000005b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611e3a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590611e7057508a6001600160a01b0316816001600160a01b0316145b611eb8576040805162461bcd60e51b815260206004820152601460248201527315d155120e881a5b9d985b1a59081c195c9b5a5d60621b604482015290519081900360640190fd5b6001600160a01b03808c166000818152600260209081526040808320948f16808452948252918290208d905581518d815291516000805160206120f98339815191529281900390910190a35050505050505050505050565b60006001600160a01b0383163014611f6f576040805162461bcd60e51b815260206004820152601c60248201527f574554483a20666c617368206d696e74206f6e6c792057455448313000000000604482015290519081900360640190fd5b50600092915050565b600260209081526000928352604080842090915290825290205481565b60408051808201825260118152700577261707065642045746865722076313607c1b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f5afefa023603a382ac22bd36644e004cefabbfaf61d4180000d8dc2b10c168b8818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101939093523060a0808501919091528251808503909101815260c090930190915281519101209056fe574554483a207472616e7366657220616d6f756e7420657863656564732062616c616e6365574554483a20455448207472616e73666572206661696c656400000000000000574554483a20696e646976696475616c206c6f616e206c696d6974206578636565646564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925574554483a206275726e20616d6f756e7420657863656564732062616c616e6365a26469706673582212207ff4c636ab79949b1a2fd5774687da5c638d24ead0108b2255c3330ca9dcdc0b64736f6c63430007060033
Deployed Bytecode
0x6080604052600436106101a05760003560e01c806370a08231116100ec578063b760faf91161008a578063d0e30db011610064578063d0e30db0146107a8578063d505accf146107b0578063d9d98ce41461080e578063dd62ed3e14610847576101e0565b8063b760faf9146106dd578063cae9ca5114610703578063cd0d009614610793576101e0565b80638b28d32f116100c65780638b28d32f146106375780639555a9421461064c57806395d89b411461068f578063a9059cbb146106a4576101e0565b806370a08231146105bc5780637ecebe00146105ef5780638237e53814610622576101e0565b806330adf81f116101595780634000aea0116101335780634000aea0146103e05780635cffe9de146104705780635ddb7d7e1461050b578063613255ab14610589576101e0565b806330adf81f1461038b578063313ce567146103a05780633644e515146103cb576101e0565b806306fdde03146101e5578063095ea7b31461026f57806318160ddd146102bc578063205c2878146102e357806323b872dd1461031e5780632e1a7d4d14610361576101e0565b366101e05733600081815260208181526040808320805434908101909155815190815290516000805160206120d9833981519152929181900390910190a3005b600080fd5b3480156101f157600080fd5b506101fa610882565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023457818101518382015260200161021c565b50505050905090810190601f1680156102615780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027b57600080fd5b506102a86004803603604081101561029257600080fd5b506001600160a01b0381351690602001356108af565b604080519115158252519081900360200190f35b3480156102c857600080fd5b506102d1610903565b60408051918252519081900360200190f35b3480156102ef57600080fd5b5061031c6004803603604081101561030657600080fd5b506001600160a01b03813516906020013561090b565b005b34801561032a57600080fd5b506102a86004803603606081101561034157600080fd5b506001600160a01b03813581169160208101359091169060400135610a2c565b34801561036d57600080fd5b5061031c6004803603602081101561038457600080fd5b5035610d17565b34801561039757600080fd5b506102d1610e2e565b3480156103ac57600080fd5b506103b5610e52565b6040805160ff9092168252519081900360200190f35b3480156103d757600080fd5b506102d1610e57565b3480156103ec57600080fd5b506102a86004803603606081101561040357600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561043257600080fd5b82018360208201111561044457600080fd5b803590602001918460018302840111600160201b8311171561046557600080fd5b509092509050610eb7565b34801561047c57600080fd5b506102a86004803603608081101561049357600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156104cd57600080fd5b8201836020820111156104df57600080fd5b803590602001918460018302840111600160201b8311171561050057600080fd5b509092509050611141565b6102a86004803603604081101561052157600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561054b57600080fd5b82018360208201111561055d57600080fd5b803590602001918460018302840111600160201b8311171561057e57600080fd5b50909250905061154f565b34801561059557600080fd5b506102d1600480360360208110156105ac57600080fd5b50356001600160a01b031661164b565b3480156105c857600080fd5b506102d1600480360360208110156105df57600080fd5b50356001600160a01b0316611677565b3480156105fb57600080fd5b506102d16004803603602081101561061257600080fd5b50356001600160a01b0316611689565b34801561062e57600080fd5b506102d161169b565b34801561064357600080fd5b506102d16116bf565b34801561065857600080fd5b5061031c6004803603606081101561066f57600080fd5b506001600160a01b038135811691602081013590911690604001356116c5565b34801561069b57600080fd5b506101fa6118ee565b3480156106b057600080fd5b506102a8600480360360408110156106c757600080fd5b506001600160a01b038135169060200135611910565b61031c600480360360208110156106f357600080fd5b50356001600160a01b0316611afa565b34801561070f57600080fd5b506102a86004803603606081101561072657600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561075557600080fd5b82018360208201111561076757600080fd5b803590602001918460018302840111600160201b8311171561078857600080fd5b509092509050611b3f565b34801561079f57600080fd5b506102d1611c14565b61031c611c38565b3480156107bc57600080fd5b5061031c600480360360e08110156107d357600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611c73565b34801561081a57600080fd5b506102d16004803603604081101561083157600080fd5b506001600160a01b038135169060200135611f10565b34801561085357600080fd5b506102d16004803603604081101561086a57600080fd5b506001600160a01b0381358116916020013516611f78565b604051806040016040528060118152602001700577261707065642045746865722076313607c1b81525081565b3360008181526002602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390926000805160206120f9833981519152928290030190a350600192915050565b600354470190565b336000908152602081905260409020548181101561095a5760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b336000818152602081815260408083208686039055805186815290519293926000805160206120d9833981519152929181900390910190a36040516000906001600160a01b0385169084908381818185875af1925050503d80600081146109dd576040519150601f19603f3d011682016040523d82523d6000602084013e6109e2565b606091505b5050905080610a26576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b50505050565b60006001600160a01b0384163314610b11576001600160a01b03841660009081526002602090815260408083203384529091529020546000198114610b0f5782811015610ac0576040805162461bcd60e51b815260206004820152601f60248201527f574554483a2072657175657374206578636565647320616c6c6f77616e636500604482015290519081900360640190fd5b6001600160a01b0385166000818152600260209081526040808320338085529083529281902087860390819055815181815291519094926000805160206120f9833981519152928290030190a3505b505b6001600160a01b03831615801590610b3257506001600160a01b0383163014155b15610be6576001600160a01b03841660009081526020819052604090205482811015610b8f5760405162461bcd60e51b81526004018080602001828103825260258152602001806120706025913960400191505060405180910390fd5b6001600160a01b038086166000818152602081815260408083208887039055938816808352918490208054880190558351878152935191936000805160206120d9833981519152929081900390910190a350610d0d565b6001600160a01b03841660009081526020819052604090205482811015610c3e5760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b6001600160a01b0385166000818152602081815260408083208786039055805187815290519293926000805160206120d9833981519152929181900390910190a3604051600090339085908381818185875af1925050503d8060008114610cc1576040519150601f19603f3d011682016040523d82523d6000602084013e610cc6565b606091505b5050905080610d0a576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b50505b5060019392505050565b3360009081526020819052604090205481811015610d665760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b336000818152602081815260408083208686039055805186815290519293926000805160206120d9833981519152929181900390910190a3604051600090339084908381818185875af1925050503d8060008114610de0576040519150601f19603f3d011682016040523d82523d6000602084013e610de5565b606091505b5050905080610e29576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b6000467f0000000000000000000000000000000000000000000000000000000000aa36a78114610e8f57610e8a81611f95565b610eb1565b7fb7629dc93956c35faa522c443457b881c42fd9b795b243f1ae0072cf064a0e555b91505090565b60006001600160a01b03851615610f6c573360009081526020819052604090205484811015610f175760405162461bcd60e51b81526004018080602001828103825260258152602001806120706025913960400191505060405180910390fd5b3360008181526020818152604080832089860390556001600160a01b038a168084529281902080548a019055805189815290519293926000805160206120d9833981519152929181900390910190a350611081565b3360009081526020819052604090205484811015610fbb5760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b336000818152602081815260408083208986039055805189815290519293926000805160206120d9833981519152929181900390910190a3604051600090339087908381818185875af1925050503d8060008114611035576040519150601f19603f3d011682016040523d82523d6000602084013e61103a565b606091505b505090508061107e576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b50505b846001600160a01b031663a4c0ed36338686866040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050602060405180830381600087803b15801561110c57600080fd5b505af1158015611120573d6000803e3d6000fd5b505050506040513d602081101561113657600080fd5b505195945050505050565b60006001600160a01b03851630146111a0576040805162461bcd60e51b815260206004820152601c60248201527f574554483a20666c617368206d696e74206f6e6c792057455448313000000000604482015290519081900360640190fd5b6001600160701b038411156111e65760405162461bcd60e51b81526004018080602001828103825260248152602001806120b56024913960400191505060405180910390fd5b600380548501908190556001600160701b03101561124b576040805162461bcd60e51b815260206004820152601f60248201527f574554483a20746f74616c206c6f616e206c696d697420657863656564656400604482015290519081900360640190fd5b6001600160a01b038616600081815260208181526040808320805489019055805188815290516000805160206120d9833981519152929181900390910190a37f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9866001600160a01b03166323e30c8b333088600089896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050975050505050505050602060405180830381600087803b15801561135057600080fd5b505af1158015611364573d6000803e3d6000fd5b505050506040513d602081101561137a57600080fd5b5051146113ce576040805162461bcd60e51b815260206004820152601760248201527f574554483a20666c617368206c6f616e206661696c6564000000000000000000604482015290519081900360640190fd5b6001600160a01b0386166000908152600260209081526040808320308452909152902054600019811461149f5784811015611450576040805162461bcd60e51b815260206004820152601f60248201527f574554483a2072657175657374206578636565647320616c6c6f77616e636500604482015290519081900360640190fd5b6001600160a01b0387166000818152600260209081526040808320308085529083529281902089860390819055815181815291519094926000805160206120f9833981519152928290030190a3505b6001600160a01b038716600090815260208190526040902054858110156114f75760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b6001600160a01b0388166000818152602081815260408083208a8603905580518a815290519293926000805160206120d9833981519152929181900390910190a3505060038054859003905550600195945050505050565b6001600160a01b0383166000818152602081815260408083208054349081019091558151908152905192939284926000805160206120d9833981519152928290030190a3604051635260769b60e11b815233600482018181523460248401819052606060448501908152606485018790526001600160a01b0389169463a4c0ed36949389928992608401848480828437600081840152601f19601f82011690508083019250505095505050505050602060405180830381600087803b15801561161757600080fd5b505af115801561162b573d6000803e3d6000fd5b505050506040513d602081101561164157600080fd5b5051949350505050565b60006001600160a01b0382163014611664576000611671565b6003546001600160701b03035b92915050565b60006020819052908152604090205481565b60016020526000908152604090205481565b7f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd981565b60035481565b6001600160a01b03831633146117a8576001600160a01b038316600090815260026020908152604080832033845290915290205460001981146117a65781811015611757576040805162461bcd60e51b815260206004820152601f60248201527f574554483a2072657175657374206578636565647320616c6c6f77616e636500604482015290519081900360640190fd5b6001600160a01b0384166000818152600260209081526040808320338085529083529281902086860390819055815181815291519094926000805160206120f9833981519152928290030190a3505b505b6001600160a01b038316600090815260208190526040902054818110156118005760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b6001600160a01b0384166000818152602081815260408083208686039055805186815290519293926000805160206120d9833981519152929181900390910190a36040516000906001600160a01b0385169084908381818185875af1925050503d806000811461188c576040519150601f19603f3d011682016040523d82523d6000602084013e611891565b606091505b50509050806118e7576040805162461bcd60e51b815260206004820152601b60248201527f574554483a204574686572207472616e73666572206661696c65640000000000604482015290519081900360640190fd5b5050505050565b6040518060400160405280600681526020016505745544831360d41b81525081565b60006001600160a01b0383161580159061193357506001600160a01b0383163014155b156119dc5733600090815260208190526040902054828110156119875760405162461bcd60e51b81526004018080602001828103825260258152602001806120706025913960400191505060405180910390fd5b3360008181526020818152604080832087860390556001600160a01b03881680845292819020805488019055805187815290519293926000805160206120d9833981519152929181900390910190a350611af1565b3360009081526020819052604090205482811015611a2b5760405162461bcd60e51b81526004018080602001828103825260218152602001806121196021913960400191505060405180910390fd5b336000818152602081815260408083208786039055805187815290519293926000805160206120d9833981519152929181900390910190a3604051600090339085908381818185875af1925050503d8060008114611aa5576040519150601f19603f3d011682016040523d82523d6000602084013e611aaa565b606091505b5050905080611aee576040805162461bcd60e51b81526020600482015260196024820152600080516020612095833981519152604482015290519081900360640190fd5b50505b50600192915050565b6001600160a01b038116600081815260208181526040808320805434908101909155815190815290516000805160206120d9833981519152929181900390910190a350565b3360008181526002602090815260408083206001600160a01b038916808552908352818420889055815188815291519394909390926000805160206120f9833981519152928290030190a3846001600160a01b031662ba451f338686866040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050602060405180830381600087803b15801561110c57600080fd5b7f0000000000000000000000000000000000000000000000000000000000aa36a781565b33600081815260208181526040808320805434908101909155815190815290516000805160206120d9833981519152929181900390910190a3565b83421115611cbf576040805162461bcd60e51b815260206004820152601460248201527315d155120e88115e1c1a5c9959081c195c9b5a5d60621b604482015290519081900360640190fd5b6001600160a01b0380881660008181526001602081815260408084208054938401905580517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280820195909552948b166060850152608084018a905260a084019190915260c08084018990528451808503909101815260e09093019093528151919092012046917f0000000000000000000000000000000000000000000000000000000000aa36a78314611d7f57611d7a83611f95565b611da1565b7fb7629dc93956c35faa522c443457b881c42fd9b795b243f1ae0072cf064a0e555b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611e3a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590611e7057508a6001600160a01b0316816001600160a01b0316145b611eb8576040805162461bcd60e51b815260206004820152601460248201527315d155120e881a5b9d985b1a59081c195c9b5a5d60621b604482015290519081900360640190fd5b6001600160a01b03808c166000818152600260209081526040808320948f16808452948252918290208d905581518d815291516000805160206120f98339815191529281900390910190a35050505050505050505050565b60006001600160a01b0383163014611f6f576040805162461bcd60e51b815260206004820152601c60248201527f574554483a20666c617368206d696e74206f6e6c792057455448313000000000604482015290519081900360640190fd5b50600092915050565b600260209081526000928352604080842090915290825290205481565b60408051808201825260118152700577261707065642045746865722076313607c1b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f5afefa023603a382ac22bd36644e004cefabbfaf61d4180000d8dc2b10c168b8818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101939093523060a0808501919091528251808503909101815260c090930190915281519101209056fe574554483a207472616e7366657220616d6f756e7420657863656564732062616c616e6365574554483a20455448207472616e73666572206661696c656400000000000000574554483a20696e646976696475616c206c6f616e206c696d6974206578636565646564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925574554483a206275726e20616d6f756e7420657863656564732062616c616e6365a26469706673582212207ff4c636ab79949b1a2fd5774687da5c638d24ead0108b2255c3330ca9dcdc0b64736f6c63430007060033
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.