Contract 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b1 7

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x0da398e8de1140aba4813d0b34a3a45e0eb4a3cda1d48221c54d2e2b390df02f0x60c06040342445232022-10-12 8:47:17228 days 8 hrs ago0x11799622f4d98a24514011e8527b969f7488ef47 IN  Create: WethUnwrapper0 MATIC0.00624860613530.06999998
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x53c6eaa52050c2b569de208981139cd9dfe6b23a56cbce3e1eeaf63d1bbf15c7432545072023-05-28 15:50:131 hr 41 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10x410edcc17ce2ce957a891b38b2ffc561bbbe73122.020189891412398411 MATIC
0x53c6eaa52050c2b569de208981139cd9dfe6b23a56cbce3e1eeaf63d1bbf15c7432545072023-05-28 15:50:131 hr 41 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b12.020189891412398411 MATIC
0x14858e0be76840c43d15d72f1e0e6693255270156a5d4a0d754538fadc6fbed6432533772023-05-28 15:09:452 hrs 21 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10x5bf3654abe779ce2357315914a3e98afba6f60114.083517367116315126 MATIC
0x14858e0be76840c43d15d72f1e0e6693255270156a5d4a0d754538fadc6fbed6432533772023-05-28 15:09:452 hrs 21 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b14.083517367116315126 MATIC
0x2b2308f0a3d84e7eedee7ef64ae969bfafbba27487f46f1d01af8e6b602286b8432514392023-05-28 14:01:053 hrs 30 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10x21b7762b1d68507952505c65961e3ada0077b00044.328273899972028775 MATIC
0x2b2308f0a3d84e7eedee7ef64ae969bfafbba27487f46f1d01af8e6b602286b8432514392023-05-28 14:01:053 hrs 30 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b144.328273899972028775 MATIC
0x6a85e90a04b9b0335c4ef0da33807aba0dcd43c2ae06869cd22ded9a99e724e9432463282023-05-28 10:53:546 hrs 37 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10xaeb4f419e1b1cf00323553a3d6e30616575a1b635.306504687722676059 MATIC
0x6a85e90a04b9b0335c4ef0da33807aba0dcd43c2ae06869cd22ded9a99e724e9432463282023-05-28 10:53:546 hrs 37 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b15.306504687722676059 MATIC
0x93f659a7fcb5359edd7ec14ff5925e1bee0ce8168e5d0bf7d8cc147c82d99b71432456462023-05-28 10:29:127 hrs 2 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10xb36f1795f1869b37b7ffdd86a57f90e10b5fe48f8.601700420171631175 MATIC
0x93f659a7fcb5359edd7ec14ff5925e1bee0ce8168e5d0bf7d8cc147c82d99b71432456462023-05-28 10:29:127 hrs 2 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b18.601700420171631175 MATIC
0x67e140ce941dead03dc65fd2f3630b229d90d4c3cd9dc7ca89ac52e42afe1ea8432449652023-05-28 10:04:437 hrs 26 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10x690ff89c26f7b99ef3f6450bad1fdce708370ce249.792002088564232937 MATIC
0x67e140ce941dead03dc65fd2f3630b229d90d4c3cd9dc7ca89ac52e42afe1ea8432449652023-05-28 10:04:437 hrs 26 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b149.792002088564232937 MATIC
0xd46776e9d20ab0ee0a8a1678fd4564970d0192493b392044a7435ed746ccabcf432447282023-05-28 9:56:187 hrs 35 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10x690ff89c26f7b99ef3f6450bad1fdce708370ce253.051598707659977054 MATIC
0xd46776e9d20ab0ee0a8a1678fd4564970d0192493b392044a7435ed746ccabcf432447282023-05-28 9:56:187 hrs 35 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b153.051598707659977054 MATIC
0x069d1578fdb7fa0756824cc05fcd9d215c6b8e3718b6cff4e8f937fdf1048aee432380422023-05-28 5:58:2811 hrs 32 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10x5bf3654abe779ce2357315914a3e98afba6f60115.321204782978459581 MATIC
0x069d1578fdb7fa0756824cc05fcd9d215c6b8e3718b6cff4e8f937fdf1048aee432380422023-05-28 5:58:2811 hrs 32 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b15.321204782978459581 MATIC
0x98c8e8ae65097a3cfc2424df8898d121a5e4f6556b53b4c9858bd8e88b188798432280282023-05-27 23:48:3317 hrs 42 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10xca22a49a167d417f765c830f3ed596e34de321366.115578421110226662 MATIC
0x98c8e8ae65097a3cfc2424df8898d121a5e4f6556b53b4c9858bd8e88b188798432280282023-05-27 23:48:3317 hrs 42 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b16.115578421110226662 MATIC
0x53f3de61d024d7c7d8d71df7070b0c10c3c0ec038b1e65ebc7a093fbd7d5d067432215422023-05-27 19:52:0121 hrs 39 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10xf8f75c8568f411bc096d36baadf17cb22ec9328f0.346534882957412 MATIC
0x53f3de61d024d7c7d8d71df7070b0c10c3c0ec038b1e65ebc7a093fbd7d5d067432215422023-05-27 19:52:0121 hrs 39 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10.346534882957412 MATIC
0xa8a1e461c87d1a4f36dae17062a1b3034ef2eea7c1ae0d4d7aba070e517c0eea432190862023-05-27 18:21:0723 hrs 10 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10xfa79040b67c27e0e51c45ae4353471945e1a2d9a15.772663363955909713 MATIC
0xa8a1e461c87d1a4f36dae17062a1b3034ef2eea7c1ae0d4d7aba070e517c0eea432190862023-05-27 18:21:0723 hrs 10 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b115.772663363955909713 MATIC
0xa47db442d00cbcf691810c813ba3ff6810ac44725df82f85fe8daf267b34c363432181282023-05-27 17:44:4123 hrs 46 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b10x8b361ffe1d7ca0d7fef113dae116f996624fc90912.942514973849899163 MATIC
0xa47db442d00cbcf691810c813ba3ff6810ac44725df82f85fe8daf267b34c363432181282023-05-27 17:44:4123 hrs 46 mins ago Polygon: WMATIC Token 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b112.942514973849899163 MATIC
0x48b5891352d0e9f9aa8efa79790933b48df73b44147165c39c23c9692a3f9307432169932023-05-27 17:00:541 day 30 mins ago 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b1 blacklionclub.nft 22.710288500159118019 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WethUnwrapper

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 7 : WethUnwrapper.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;
pragma abicoder v1;

import "@1inch/solidity-utils/contracts/OnlyWethReceiver.sol";
import "@1inch/solidity-utils/contracts/interfaces/IWETH.sol";

import "../interfaces/IPostInteractionNotificationReceiver.sol";
import "../libraries/Errors.sol";

contract WethUnwrapper is OnlyWethReceiver, IPostInteractionNotificationReceiver {
    IWETH private immutable _WETH;  // solhint-disable-line var-name-mixedcase

    uint256 private constant _RAW_CALL_GAS_LIMIT = 5000;

    constructor(IWETH weth) OnlyWethReceiver(address(weth)) {
        _WETH = weth;
    }

    function fillOrderPostInteraction(
        bytes32 /* orderHash */,
        address maker,
        address /* taker */,
        uint256 /* makingAmount */,
        uint256 takingAmount,
        uint256 /* remainingMakerAmount */,
        bytes calldata /* interactiveData */
    ) external override {
        _WETH.withdraw(takingAmount);
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, ) = maker.call{value: takingAmount, gas: _RAW_CALL_GAS_LIMIT}("");
        if (!success) revert Errors.ETHTransferFailed();
    }
}

File 2 of 7 : Errors.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

library Errors {
    error InvalidMsgValue();
    error ETHTransferFailed();
}

File 3 of 7 : IPostInteractionNotificationReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;
pragma abicoder v1;

/**
 * @title Interface for interactor which acts after `taker -> maker` transfers.
 * @notice The order filling steps are `preInteraction` =>` Transfer "maker -> taker"` => `Interaction` => `Transfer "taker -> maker"` => **`postInteraction`**
 */
interface IPostInteractionNotificationReceiver {
    /**
     * @notice Callback method that gets called after all funds transfers
     * @param orderHash Hash of the order being processed
     * @param maker Maker address
     * @param taker Taker address
     * @param makingAmount Actual making amount
     * @param takingAmount Actual taking amount
     * @param remainingAmount Limit order remaining maker amount after the swap
     * @param interactionData Interaction calldata
     */
    function fillOrderPostInteraction(
        bytes32 orderHash,
        address maker,
        address taker,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 remainingAmount,
        bytes memory interactionData
    ) external;
}

File 4 of 7 : OnlyWethReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma abicoder v1;

import "./EthReceiver.sol";

abstract contract OnlyWethReceiver is EthReceiver {
    address private immutable _WETH;  // solhint-disable-line var-name-mixedcase

    constructor(address weth) {
        _WETH = address(weth);
    }

    function _receive() internal virtual override {
        if (msg.sender != _WETH) revert EthDepositRejected();
    }
}

File 5 of 7 : IWETH.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma abicoder v1;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";


interface IWETH is IERC20 {
    function deposit() external payable;
    function withdraw(uint256 amount) external;
}

File 6 of 7 : EthReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma abicoder v1;

abstract contract EthReceiver {
    error EthDepositRejected();

    receive() external payable {
        _receive();
    }

    function _receive() internal virtual {
        // solhint-disable-next-line avoid-tx-origin
        if (msg.sender == tx.origin) revert EthDepositRejected();
    }
}

File 7 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IWETH","name":"weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ETHTransferFailed","type":"error"},{"inputs":[],"name":"EthDepositRejected","type":"error"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"fillOrderPostInteraction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405234801561001057600080fd5b506040516103333803806103338339818101604052602081101561003357600080fd5b50516001600160a01b0316608081905260a0819052806102cb61006860003960006101640152600061010901526102cb6000f3fe6080604052600436106100225760003560e01c80633504ed621461003657600080fd5b366100315761002f6100f1565b005b600080fd5b34801561004257600080fd5b5061002f600480360360e081101561005957600080fd5b81359173ffffffffffffffffffffffffffffffffffffffff602082013581169260408301359091169160608101359160808201359160a08101359181019060e0810160c08201356401000000008111156100b257600080fd5b8201836020820111156100c457600080fd5b803590602001918460018302840111640100000000831117156100e657600080fd5b509092509050610162565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610160576040517f1b10b0f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d856040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156101d557600080fd5b505af11580156101e9573d6000803e3d6000fd5b50506040516000925073ffffffffffffffffffffffffffffffffffffffff8a16915061138890879084818181858888f193505050503d806000811461024a576040519150601f19603f3d011682016040523d82523d6000602084013e61024f565b606091505b505090508061028a576040517fb12d13eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050505050505056fea26469706673582212205c801ee6af53a99f51dc4d8f4ce538ae9e7a40f77957dfe6e1163737e5a949c864736f6c634300081100330000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270

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

0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270

-----Decoded View---------------
Arg [0] : weth (address): 0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.