ETH Price: $3,278.31 (-4.41%)
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0xbd3443e81388001782025-07-22 15:45:33114 days ago1753199133IN
0x1f854b48...ceEdD96a9
0 ETH0.0000000246150.00011617
0xc13beff31388000182025-07-22 15:40:13114 days ago1753198813IN
0x1f854b48...ceEdD96a9
0 ETH0.0000000256210.00011915
0xbd3443e81377182402025-06-27 14:40:57139 days ago1751035257IN
0x1f854b48...ceEdD96a9
0 ETH0.0000000929640.0010102
0xbd3443e81351485122025-04-29 3:03:21198 days ago1745895801IN
0x1f854b48...ceEdD96a9
0 ETH0.000000492720.00100048
0xc13beff31351484452025-04-29 3:01:07198 days ago1745895667IN
0x1f854b48...ceEdD96a9
0 ETH0.0000005330070.00100049
0xc13beff31351480342025-04-29 2:47:25198 days ago1745894845IN
0x1f854b48...ceEdD96a9
0 ETH0.000000418710.00100048
0xbd3443e81313397872025-01-30 23:05:51286 days ago1738278351IN
0x1f854b48...ceEdD96a9
0 ETH0.0000000278180.00010083
0xc13beff31313397482025-01-30 23:04:33286 days ago1738278273IN
0x1f854b48...ceEdD96a9
0 ETH0.0000000295620.00010083
0xc13beff31289924142024-12-07 15:00:05341 days ago1733583605IN
0x1f854b48...ceEdD96a9
0 ETH0.0000008016740.0001006
0xc13beff31289923572024-12-07 14:58:11341 days ago1733583491IN
0x1f854b48...ceEdD96a9
0 ETH0.0000008807640.0001006
0xc13beff31289923252024-12-07 14:57:07341 days ago1733583427IN
0x1f854b48...ceEdD96a9
0 ETH0.0000011608070.0001006
0xc13beff31289866392024-12-07 11:47:35341 days ago1733572055IN
0x1f854b48...ceEdD96a9
0 ETH0.0000007203040.00010071
0xbd3443e81283339882024-11-22 9:12:33356 days ago1732266753IN
0x1f854b48...ceEdD96a9
0 ETH0.0000001500880.0010038
0xc13beff31279405342024-11-13 6:37:25365 days ago1731479845IN
0x1f854b48...ceEdD96a9
0 ETH0.0000027840080.00100038
0xbd3443e81277125922024-11-07 23:59:21370 days ago1731023961IN
0x1f854b48...ceEdD96a9
0 ETH0.0000001680630.0010006
0xbd3443e81277125102024-11-07 23:56:37370 days ago1731023797IN
0x1f854b48...ceEdD96a9
0 ETH0.0000001458290.0010006
0xbd3443e81276183712024-11-05 19:38:39372 days ago1730835519IN
0x1f854b48...ceEdD96a9
0 ETH0.0000006718070.0010005
0xbd3443e81272797342024-10-28 23:30:45380 days ago1730158245IN
0x1f854b48...ceEdD96a9
0 ETH0.000000083350.00010226
0xbd3443e81272780452024-10-28 22:34:27380 days ago1730154867IN
0x1f854b48...ceEdD96a9
0 ETH0.0000001133030.00010233
0xbd3443e81272756472024-10-28 21:14:31380 days ago1730150071IN
0x1f854b48...ceEdD96a9
0 ETH0.0000001086290.00010082
0xbd3443e81272747162024-10-28 20:43:29380 days ago1730148209IN
0x1f854b48...ceEdD96a9
0 ETH0.0000000992370.00010086
0xbd3443e81272744122024-10-28 20:33:21380 days ago1730147601IN
0x1f854b48...ceEdD96a9
0 ETH0.000000101870.00010092
0xbd3443e81272682882024-10-28 17:09:13381 days ago1730135353IN
0x1f854b48...ceEdD96a9
0 ETH0.0000002279790.00010067
0xbd3443e81271887382024-10-26 20:57:33382 days ago1729976253IN
0x1f854b48...ceEdD96a9
0 ETH0.0000000874160.00100502
0xbd3443e81271408782024-10-25 18:22:13383 days ago1729880533IN
0x1f854b48...ceEdD96a9
0 ETH0.0000002357090.00100381
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OATHMigratorOP

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
pragma solidity ^0.8.0;

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

contract OATHMigratorOP {
    IERC20 public immutable OATH;
    IERC20 public immutable OATHV2;

    bool public exchangeOpen = true;

    address public admin;

    constructor(IERC20 _OATH, IERC20 _OATHV2) {
        OATH = _OATH;
        OATHV2 = _OATHV2;
        admin = msg.sender;
    }

    function setAdmin(address _admin) public {
        require(msg.sender == admin, "only admin");
        admin = _admin;
    }

    function toggle(bool _toggle) external {
        require(msg.sender == admin, "only admin");
        exchangeOpen = _toggle;
    }

    function exchangeOldForNew(uint256 amount) public {
        require(exchangeOpen, "exchange closed");
        OATH.transferFrom(msg.sender, address(this), amount);
        OATHV2.transfer(msg.sender, amount);
    }

    function exchangeNewForOld(uint256 amount) public {
        require(exchangeOpen, "exchange closed");
        OATHV2.transferFrom(msg.sender, address(this), amount);
        OATH.transfer(msg.sender, amount);
    }

}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
{
  "metadata": {
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_OATH","type":"address"},{"internalType":"contract IERC20","name":"_OATHV2","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OATH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OATHV2","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"exchangeNewForOld","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"exchangeOldForNew","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchangeOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_toggle","type":"bool"}],"name":"toggle","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000805460ff1916600117905534801561001d57600080fd5b506040516106b73803806106b783398101604081905261003c91610086565b6001600160a01b039182166080521660a05260008054610100600160a81b03191633610100021790556100b9565b80516001600160a01b038116811461008157600080fd5b919050565b6000806040838503121561009957600080fd5b6100a28361006a565b91506100b06020840161006a565b90509250929050565b60805160a0516105be6100f9600039600081816092015281816102ec01526103cc01526000818161012e0152818161025a015261045e01526105be6000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063c13beff31161005b578063c13beff314610116578063e1176b5414610129578063f2bf0f5614610150578063f851a4401461016357600080fd5b80631fc5e52b1461008d578063293dfaff146100d1578063704b6c02146100ee578063bd3443e814610103575b600080fd5b6100b47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6000546100de9060ff1681565b60405190151581526020016100c8565b6101016100fc3660046104f4565b61017b565b005b610101610111366004610524565b6101f4565b610101610124366004610524565b610366565b6100b47f000000000000000000000000000000000000000000000000000000000000000081565b61010161015e36600461054e565b610495565b6000546100b49061010090046001600160a01b031681565b60005461010090046001600160a01b031633146101cc5760405162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b60448201526064015b60405180910390fd5b600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60005460ff166102385760405162461bcd60e51b815260206004820152600f60248201526e195e18da185b99d94818db1bdcd959608a1b60448201526064016101c3565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af11580156102ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cf919061056b565b5060405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044015b6020604051808303816000875af115801561033e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610362919061056b565b5050565b60005460ff166103aa5760405162461bcd60e51b815260206004820152600f60248201526e195e18da185b99d94818db1bdcd959608a1b60448201526064016101c3565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af115801561041d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610441919061056b565b5060405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb9060440161031f565b60005461010090046001600160a01b031633146104e15760405162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b60448201526064016101c3565b6000805460ff1916911515919091179055565b60006020828403121561050657600080fd5b81356001600160a01b038116811461051d57600080fd5b9392505050565b60006020828403121561053657600080fd5b5035919050565b801515811461054b57600080fd5b50565b60006020828403121561056057600080fd5b813561051d8161053d565b60006020828403121561057d57600080fd5b815161051d8161053d56fea26469706673582212205e3e510e1b9c515f96624625f6100b2e29960b26c310e2cace96100d865ea1b264736f6c634300080b003300000000000000000000000039fde572a18448f8139b7788099f0a0740f5120500000000000000000000000000e1724885473b63bce08a9f0a52f35b0979e35a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063c13beff31161005b578063c13beff314610116578063e1176b5414610129578063f2bf0f5614610150578063f851a4401461016357600080fd5b80631fc5e52b1461008d578063293dfaff146100d1578063704b6c02146100ee578063bd3443e814610103575b600080fd5b6100b47f00000000000000000000000000e1724885473b63bce08a9f0a52f35b0979e35a81565b6040516001600160a01b0390911681526020015b60405180910390f35b6000546100de9060ff1681565b60405190151581526020016100c8565b6101016100fc3660046104f4565b61017b565b005b610101610111366004610524565b6101f4565b610101610124366004610524565b610366565b6100b47f00000000000000000000000039fde572a18448f8139b7788099f0a0740f5120581565b61010161015e36600461054e565b610495565b6000546100b49061010090046001600160a01b031681565b60005461010090046001600160a01b031633146101cc5760405162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b60448201526064015b60405180910390fd5b600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60005460ff166102385760405162461bcd60e51b815260206004820152600f60248201526e195e18da185b99d94818db1bdcd959608a1b60448201526064016101c3565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000039fde572a18448f8139b7788099f0a0740f512056001600160a01b0316906323b872dd906064016020604051808303816000875af11580156102ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cf919061056b565b5060405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000e1724885473b63bce08a9f0a52f35b0979e35a6001600160a01b03169063a9059cbb906044015b6020604051808303816000875af115801561033e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610362919061056b565b5050565b60005460ff166103aa5760405162461bcd60e51b815260206004820152600f60248201526e195e18da185b99d94818db1bdcd959608a1b60448201526064016101c3565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000e1724885473b63bce08a9f0a52f35b0979e35a6001600160a01b0316906323b872dd906064016020604051808303816000875af115801561041d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610441919061056b565b5060405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000039fde572a18448f8139b7788099f0a0740f512056001600160a01b03169063a9059cbb9060440161031f565b60005461010090046001600160a01b031633146104e15760405162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b60448201526064016101c3565b6000805460ff1916911515919091179055565b60006020828403121561050657600080fd5b81356001600160a01b038116811461051d57600080fd5b9392505050565b60006020828403121561053657600080fd5b5035919050565b801515811461054b57600080fd5b50565b60006020828403121561056057600080fd5b813561051d8161053d565b60006020828403121561057d57600080fd5b815161051d8161053d56fea26469706673582212205e3e510e1b9c515f96624625f6100b2e29960b26c310e2cace96100d865ea1b264736f6c634300080b0033

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

00000000000000000000000039fde572a18448f8139b7788099f0a0740f5120500000000000000000000000000e1724885473b63bce08a9f0a52f35b0979e35a

-----Decoded View---------------
Arg [0] : _OATH (address): 0x39FdE572a18448F8139b7788099F0a0740f51205
Arg [1] : _OATHV2 (address): 0x00e1724885473B63bCE08a9f0a52F35b0979e35A

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000039fde572a18448f8139b7788099f0a0740f51205
Arg [1] : 00000000000000000000000000e1724885473b63bce08a9f0a52f35b0979e35a


Deployed Bytecode Sourcemap

83:1000:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147:30;;;;;;;;-1:-1:-1;;;;;192:32:2;;;174:51;;162:2;147:18;:30:0;;;;;;;;184:31;;;;;;;;;;;;401:14:2;;394:22;376:41;;364:2;349:18;184:31:0;236:187:2;380:124:0;;;;;;:::i;:::-;;:::i;:::-;;646:214;;;;;;:::i;:::-;;:::i;866:::-;;;;;;:::i;:::-;;:::i;113:28::-;;;;;510:130;;;;;;:::i;:::-;;:::i;222:20::-;;;;;;;;-1:-1:-1;;;;;222:20:0;;;380:124;453:5;;;;;-1:-1:-1;;;;;453:5:0;439:10;:19;431:42;;;;-1:-1:-1;;;431:42:0;;1683:2:2;431:42:0;;;1665:21:2;1722:2;1702:18;;;1695:30;-1:-1:-1;;;1741:18:2;;;1734:40;1791:18;;431:42:0;;;;;;;;;483:5;:14;;-1:-1:-1;;;;;483:14:0;;;;;-1:-1:-1;;;;;;483:14:0;;;;;;;;;380:124::o;646:214::-;714:12;;;;706:40;;;;-1:-1:-1;;;706:40:0;;2022:2:2;706:40:0;;;2004:21:2;2061:2;2041:18;;;2034:30;-1:-1:-1;;;2080:18:2;;;2073:45;2135:18;;706:40:0;1820:339:2;706:40:0;756:52;;-1:-1:-1;;;756:52:0;;774:10;756:52;;;2404:34:2;794:4:0;2454:18:2;;;2447:43;2506:18;;;2499:34;;;756:4:0;-1:-1:-1;;;;;756:17:0;;;;2339:18:2;;756:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;818:35:0;;-1:-1:-1;;;818:35:0;;834:10;818:35;;;2968:51:2;3035:18;;;3028:34;;;818:6:0;-1:-1:-1;;;;;818:15:0;;;;2941:18:2;;818:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;646:214;:::o;866:::-;934:12;;;;926:40;;;;-1:-1:-1;;;926:40:0;;2022:2:2;926:40:0;;;2004:21:2;2061:2;2041:18;;;2034:30;-1:-1:-1;;;2080:18:2;;;2073:45;2135:18;;926:40:0;1820:339:2;926:40:0;976:54;;-1:-1:-1;;;976:54:0;;996:10;976:54;;;2404:34:2;1016:4:0;2454:18:2;;;2447:43;2506:18;;;2499:34;;;976:6:0;-1:-1:-1;;;;;976:19:0;;;;2339:18:2;;976:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1040:33:0;;-1:-1:-1;;;1040:33:0;;1054:10;1040:33;;;2968:51:2;3035:18;;;3028:34;;;1040:4:0;-1:-1:-1;;;;;1040:13:0;;;;2941:18:2;;1040:33:0;2794:274:2;510:130:0;581:5;;;;;-1:-1:-1;;;;;581:5:0;567:10;:19;559:42;;;;-1:-1:-1;;;559:42:0;;1683:2:2;559:42:0;;;1665:21:2;1722:2;1702:18;;;1695:30;-1:-1:-1;;;1741:18:2;;;1734:40;1791:18;;559:42:0;1481:334:2;559:42:0;611:12;:22;;-1:-1:-1;;611:22:0;;;;;;;;;;510:130::o;428:286:2:-;487:6;540:2;528:9;519:7;515:23;511:32;508:52;;;556:1;553;546:12;508:52;582:23;;-1:-1:-1;;;;;634:31:2;;624:42;;614:70;;680:1;677;670:12;614:70;703:5;428:286;-1:-1:-1;;;428:286:2:o;719:180::-;778:6;831:2;819:9;810:7;806:23;802:32;799:52;;;847:1;844;837:12;799:52;-1:-1:-1;870:23:2;;719:180;-1:-1:-1;719:180:2:o;904:118::-;990:5;983:13;976:21;969:5;966:32;956:60;;1012:1;1009;1002:12;956:60;904:118;:::o;1027:241::-;1083:6;1136:2;1124:9;1115:7;1111:23;1107:32;1104:52;;;1152:1;1149;1142:12;1104:52;1191:9;1178:23;1210:28;1232:5;1210:28;:::i;2544:245::-;2611:6;2664:2;2652:9;2643:7;2639:23;2635:32;2632:52;;;2680:1;2677;2670:12;2632:52;2712:9;2706:16;2731:28;2753:5;2731:28;:::i

Swarm Source

ipfs://5e3e510e1b9c515f96624625f6100b2e29960b26c310e2cace96100d865ea1b2

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.