Contract 0xb55ec0208a7c1727544852ebfe34bff34b5fe6e4 9
Contract Overview
Balance:
0 ETH
ETH Value:
$0.00
My Name Tag:
Not Available
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x71984f80d9ec2a825160c59592835a45df6c2a016558bce327c9d37625c26c5c | 0x60a06040 | 17473385 | 626 days 1 hr ago | 0x2e7f4b84c5f072edc52a64b945b51ae961f822a3 | IN | Create: WNativeUnwrapper | 0 ETH | 0.000537983637 ETH |
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
WNativeUnwrapper
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/IWETH.sol"; contract WNativeUnwrapper { address public immutable wNative; constructor(address _wNative) { wNative = _wNative; } receive() external payable {} /** * @notice Convert WFTM to FTM and transfer to msg.sender * @dev msg.sender needs to send WFTM before calling this withdraw * @param _amount amount to withdraw. */ function withdraw(uint256 _amount) external { IWETH(wNative).withdraw(_amount); (bool sent, ) = msg.sender.call{ value: _amount }(""); require(sent, "Failed to send native"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IWETH { function approve(address, uint256) external; function deposit() external payable; function withdraw(uint256) external; }
{ "optimizer": { "enabled": true, "runs": 500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_wNative","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"wNative","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405234801561001057600080fd5b506040516102c23803806102c283398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c61022d61009560003960008181604b015260ce015261022d6000f3fe60806040526004361061002d5760003560e01c80632d68efc9146100395780632e1a7d4d1461009657600080fd5b3661003457005b600080fd5b34801561004557600080fd5b5061006d7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100a257600080fd5b506100b66100b13660046101df565b6100b8565b005b604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b15801561012757600080fd5b505af115801561013b573d6000803e3d6000fd5b50506040516000925033915083908381818185875af1925050503d8060008114610181576040519150601f19603f3d011682016040523d82523d6000602084013e610186565b606091505b50509050806101db5760405162461bcd60e51b815260206004820152601560248201527f4661696c656420746f2073656e64206e61746976650000000000000000000000604482015260640160405180910390fd5b5050565b6000602082840312156101f0578081fd5b503591905056fea2646970667358221220c10a93f32da61090e46755743ba5ae3cfe59fbbb101765ba20d2b013440a320864736f6c6343000804003300000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1
Deployed Bytecode
0x60806040526004361061002d5760003560e01c80632d68efc9146100395780632e1a7d4d1461009657600080fd5b3661003457005b600080fd5b34801561004557600080fd5b5061006d7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab181565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100a257600080fd5b506100b66100b13660046101df565b6100b8565b005b604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab173ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b15801561012757600080fd5b505af115801561013b573d6000803e3d6000fd5b50506040516000925033915083908381818185875af1925050503d8060008114610181576040519150601f19603f3d011682016040523d82523d6000602084013e610186565b606091505b50509050806101db5760405162461bcd60e51b815260206004820152601560248201527f4661696c656420746f2073656e64206e61746976650000000000000000000000604482015260640160405180910390fd5b5050565b6000602082840312156101f0578081fd5b503591905056fea2646970667358221220c10a93f32da61090e46755743ba5ae3cfe59fbbb101765ba20d2b013440a320864736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1
-----Decoded View---------------
Arg [0] : _wNative (address): 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.