Source Code
Latest 25 from a total of 2,124 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| 0xbd3443e8 | 138800178 | 114 days ago | IN | 0 ETH | 0.000000024615 | ||||
| 0xc13beff3 | 138800018 | 114 days ago | IN | 0 ETH | 0.000000025621 | ||||
| 0xbd3443e8 | 137718240 | 139 days ago | IN | 0 ETH | 0.000000092964 | ||||
| 0xbd3443e8 | 135148512 | 198 days ago | IN | 0 ETH | 0.00000049272 | ||||
| 0xc13beff3 | 135148445 | 198 days ago | IN | 0 ETH | 0.000000533007 | ||||
| 0xc13beff3 | 135148034 | 198 days ago | IN | 0 ETH | 0.00000041871 | ||||
| 0xbd3443e8 | 131339787 | 286 days ago | IN | 0 ETH | 0.000000027818 | ||||
| 0xc13beff3 | 131339748 | 286 days ago | IN | 0 ETH | 0.000000029562 | ||||
| 0xc13beff3 | 128992414 | 341 days ago | IN | 0 ETH | 0.000000801674 | ||||
| 0xc13beff3 | 128992357 | 341 days ago | IN | 0 ETH | 0.000000880764 | ||||
| 0xc13beff3 | 128992325 | 341 days ago | IN | 0 ETH | 0.000001160807 | ||||
| 0xc13beff3 | 128986639 | 341 days ago | IN | 0 ETH | 0.000000720304 | ||||
| 0xbd3443e8 | 128333988 | 356 days ago | IN | 0 ETH | 0.000000150088 | ||||
| 0xc13beff3 | 127940534 | 365 days ago | IN | 0 ETH | 0.000002784008 | ||||
| 0xbd3443e8 | 127712592 | 370 days ago | IN | 0 ETH | 0.000000168063 | ||||
| 0xbd3443e8 | 127712510 | 370 days ago | IN | 0 ETH | 0.000000145829 | ||||
| 0xbd3443e8 | 127618371 | 372 days ago | IN | 0 ETH | 0.000000671807 | ||||
| 0xbd3443e8 | 127279734 | 380 days ago | IN | 0 ETH | 0.00000008335 | ||||
| 0xbd3443e8 | 127278045 | 380 days ago | IN | 0 ETH | 0.000000113303 | ||||
| 0xbd3443e8 | 127275647 | 380 days ago | IN | 0 ETH | 0.000000108629 | ||||
| 0xbd3443e8 | 127274716 | 380 days ago | IN | 0 ETH | 0.000000099237 | ||||
| 0xbd3443e8 | 127274412 | 380 days ago | IN | 0 ETH | 0.00000010187 | ||||
| 0xbd3443e8 | 127268288 | 381 days ago | IN | 0 ETH | 0.000000227979 | ||||
| 0xbd3443e8 | 127188738 | 382 days ago | IN | 0 ETH | 0.000000087416 | ||||
| 0xbd3443e8 | 127140878 | 383 days ago | IN | 0 ETH | 0.000000235709 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
OATHMigratorOP
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity Standard Json-Input format)
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);
}{
"metadata": {
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| OP | 100.00% | $0.000199 | 33,044,323.0696 | $6,584.74 |
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.