Source Code
Overview
AVAX Balance
AVAX Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 81617351 | 23 days ago | 0.15 AVAX | ||||
| 81617351 | 23 days ago | 0.15 AVAX | ||||
| 81616903 | 23 days ago | 0.1519765 AVAX | ||||
| 81616903 | 23 days ago | 0.1519765 AVAX | ||||
| 81616872 | 23 days ago | 1.08357753 AVAX | ||||
| 81616872 | 23 days ago | 1.08357753 AVAX | ||||
| 81616863 | 23 days ago | 0.18059721 AVAX | ||||
| 81616863 | 23 days ago | 0.18059721 AVAX | ||||
| 81616810 | 23 days ago | 1.85074781 AVAX | ||||
| 81616810 | 23 days ago | 1.85074781 AVAX | ||||
| 80982118 | 31 days ago | 0.00404369 AVAX | ||||
| 80982118 | 31 days ago | 0.00404369 AVAX | ||||
| 80980771 | 31 days ago | 0.00515512 AVAX | ||||
| 80980771 | 31 days ago | 0.00515512 AVAX | ||||
| 80979993 | 31 days ago | 0.00648507 AVAX | ||||
| 80979993 | 31 days ago | 0.00648507 AVAX | ||||
| 80979852 | 31 days ago | 0.00825264 AVAX | ||||
| 80979852 | 31 days ago | 0.00825264 AVAX | ||||
| 80978417 | 31 days ago | 0.03404865 AVAX | ||||
| 80978417 | 31 days ago | 0.03404865 AVAX | ||||
| 80978086 | 31 days ago | 0.09589199 AVAX | ||||
| 80978086 | 31 days ago | 0.09589199 AVAX | ||||
| 80951016 | 31 days ago | 1.10811268 AVAX | ||||
| 80951016 | 31 days ago | 1.10811268 AVAX | ||||
| 80950498 | 31 days ago | 1.38873694 AVAX |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
WethUnwrapper
Compiler Version
v0.8.30+commit.73712a01
Optimization Enabled:
Yes with 999999 runs
Other Settings:
prague EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
/*
“Copyright (c) 2019-2021 1inch
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE”.
*/
import '../offchain/interfaces/InteractiveNotificationReceiver.sol';
import '../offchain/interfaces/IWithdrawable.sol';
contract WethUnwrapper is InteractiveNotificationReceiver {
// solhint-disable-next-line no-empty-blocks
receive() external payable {}
function notifyFillOrder(
address, /* taker */
address, /* makerAsset */
address takerAsset,
uint256, /* makingAmount */
uint256 takingAmount,
bytes calldata interactiveData
) external override {
address payable makerAddress;
// solhint-disable-next-line no-inline-assembly
assembly {
makerAddress := shr(96, calldataload(interactiveData.offset))
}
IWithdrawable(takerAsset).withdraw(takingAmount);
makerAddress.call{value: takingAmount}(new bytes(0));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title Interface for interactor which acts between `maker => taker` and `taker => maker` transfers.
interface InteractiveNotificationReceiver {
/// @notice Callback method that gets called after taker transferred funds to maker but before
/// the opposite transfer happened
function notifyFillOrder(
address taker,
address makerAsset,
address takerAsset,
uint256 makingAmount,
uint256 takingAmount,
bytes memory interactiveData
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IWithdrawable {
function withdraw(
uint256 wad
) external;
}{
"remappings": [
"forge-std/=lib/ks-common-sc/lib/forge-std/src/",
"@openzeppelin/=lib/openzeppelin-contracts/",
"openzeppelin-contracts/=lib/ks-common-sc/lib/openzeppelin-contracts/",
"@ks-growth-utils-sc/=lib/ks-growth-utils-sc/",
"ks-common-sc/=lib/ks-common-sc/",
"@src/=lib/ks-growth-utils-sc/contracts/",
"ds-test/=lib/ds-test/src/",
"erc4626-tests/=lib/ks-common-sc/lib/openzeppelin-contracts/lib/erc4626-tests/",
"halmos-cheatcodes/=lib/ks-common-sc/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"ks-growth-utils-sc/=lib/ks-growth-utils-sc/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 999999
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "prague",
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"bytes","name":"interactiveData","type":"bytes"}],"name":"notifyFillOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080604052348015600e575f5ffd5b506102718061001c5f395ff3fe608060405260043610610020575f3560e01c8063cf21c7751461002b575f5ffd5b3661002757005b5f5ffd5b348015610036575f5ffd5b5061004a610045366004610173565b61004c565b005b6040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101849052823560601c9073ffffffffffffffffffffffffffffffffffffffff871690632e1a7d4d906024015f604051808303815f87803b1580156100b7575f5ffd5b505af11580156100c9573d5f5f3e3d5ffd5b5050604080515f8152602081019182905273ffffffffffffffffffffffffffffffffffffffff851693508792506100ff91610225565b5f6040518083038185875af1925050503d805f8114610139576040519150601f19603f3d011682016040523d82523d5f602084013e61013e565b606091505b5050505050505050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461016e575f5ffd5b919050565b5f5f5f5f5f5f5f60c0888a031215610189575f5ffd5b6101928861014b565b96506101a06020890161014b565b95506101ae6040890161014b565b9450606088013593506080880135925060a088013567ffffffffffffffff8111156101d7575f5ffd5b8801601f81018a136101e7575f5ffd5b803567ffffffffffffffff8111156101fd575f5ffd5b8a602082840101111561020e575f5ffd5b602082019350809250505092959891949750929550565b5f82518060208501845e5f92019182525091905056fea264697066735822122056a439a9035e4ff6e77d5f743c3e00431e36a00884b032b12b6519881540a31764736f6c634300081e0033
Deployed Bytecode
0x608060405260043610610020575f3560e01c8063cf21c7751461002b575f5ffd5b3661002757005b5f5ffd5b348015610036575f5ffd5b5061004a610045366004610173565b61004c565b005b6040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101849052823560601c9073ffffffffffffffffffffffffffffffffffffffff871690632e1a7d4d906024015f604051808303815f87803b1580156100b7575f5ffd5b505af11580156100c9573d5f5f3e3d5ffd5b5050604080515f8152602081019182905273ffffffffffffffffffffffffffffffffffffffff851693508792506100ff91610225565b5f6040518083038185875af1925050503d805f8114610139576040519150601f19603f3d011682016040523d82523d5f602084013e61013e565b606091505b5050505050505050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461016e575f5ffd5b919050565b5f5f5f5f5f5f5f60c0888a031215610189575f5ffd5b6101928861014b565b96506101a06020890161014b565b95506101ae6040890161014b565b9450606088013593506080880135925060a088013567ffffffffffffffff8111156101d7575f5ffd5b8801601f81018a136101e7575f5ffd5b803567ffffffffffffffff8111156101fd575f5ffd5b8a602082840101111561020e575f5ffd5b602082019350809250505092959891949750929550565b5f82518060208501845e5f92019182525091905056fea264697066735822122056a439a9035e4ff6e77d5f743c3e00431e36a00884b032b12b6519881540a31764736f6c634300081e0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in AVAX
Multichain Portfolio | 32 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.