Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 359 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Burn | 19603697 | 230 days ago | IN | 0 ETH | 0.00065483 | ||||
Burn | 19603693 | 230 days ago | IN | 0 ETH | 0.00058763 | ||||
Exchange | 19603530 | 230 days ago | IN | 0 ETH | 0.00101451 | ||||
Exchange | 19603078 | 230 days ago | IN | 0 ETH | 0.00118964 | ||||
Exchange | 19602540 | 230 days ago | IN | 0 ETH | 0.00121262 | ||||
Exchange | 19602431 | 230 days ago | IN | 0 ETH | 0.00079972 | ||||
Exchange | 19601868 | 230 days ago | IN | 0 ETH | 0.00085113 | ||||
Exchange | 19601867 | 230 days ago | IN | 0 ETH | 0.00082237 | ||||
Exchange | 19601231 | 230 days ago | IN | 0 ETH | 0.00085405 | ||||
Exchange | 19601230 | 230 days ago | IN | 0 ETH | 0.00083569 | ||||
Exchange | 19601119 | 230 days ago | IN | 0 ETH | 0.00095887 | ||||
Exchange | 19601102 | 230 days ago | IN | 0 ETH | 0.00089016 | ||||
Exchange | 19600369 | 230 days ago | IN | 0 ETH | 0.0008767 | ||||
Exchange | 19599949 | 230 days ago | IN | 0 ETH | 0.00094525 | ||||
Exchange | 19598286 | 231 days ago | IN | 0 ETH | 0.00123624 | ||||
Exchange | 19598043 | 231 days ago | IN | 0 ETH | 0.00136671 | ||||
Exchange | 19597802 | 231 days ago | IN | 0 ETH | 0.00149598 | ||||
Exchange | 19597439 | 231 days ago | IN | 0 ETH | 0.00135238 | ||||
Exchange | 19597424 | 231 days ago | IN | 0 ETH | 0.00126438 | ||||
Exchange | 19597014 | 231 days ago | IN | 0 ETH | 0.00141909 | ||||
Exchange | 19596658 | 231 days ago | IN | 0 ETH | 0.00080518 | ||||
Exchange | 19596525 | 231 days ago | IN | 0 ETH | 0.00093121 | ||||
Exchange | 19596291 | 231 days ago | IN | 0 ETH | 0.00063745 | ||||
Exchange | 19596285 | 231 days ago | IN | 0 ETH | 0.00068448 | ||||
Exchange | 19595803 | 231 days ago | IN | 0 ETH | 0.00064925 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
NASH2THLM
Compiler Version
v0.8.22+commit.4fc1097e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-02-21 */ // Dependency file: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) // pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // Dependency file: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) // pragma solidity ^0.8.20; // import {Context} from "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // Root file: contracts/THLM/NASH2THLM.sol pragma solidity 0.8.22; // import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; interface IERC20 { function balanceOf(address account) external view returns (uint256); function transferFrom(address from, address to, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function burn(uint256 value) external; } contract NASH2THLM is Ownable { event Exchange(address indexed from, uint256 value); address public NASH = 0x4b94c8567763654101F690Cf4d54957206383b75; address public THLM; constructor(address initialOwner) Ownable(initialOwner) { } function exchange() external { uint256 balance = IERC20(NASH).balanceOf(msg.sender); IERC20(NASH).transferFrom(msg.sender, address(this), balance); IERC20(THLM).transfer(msg.sender, balance); emit Exchange(msg.sender, balance); } function burn(bool flag) external onlyOwner(){ address erc20 = flag ? THLM : NASH; uint256 balance = IERC20(erc20).balanceOf(address(this)); IERC20(erc20).burn(balance); } function setErc20(bool flag, address _addr) external onlyOwner(){ if(flag){ THLM = _addr; } else { NASH = _addr; } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Exchange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"NASH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"THLM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"flag","type":"bool"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"flag","type":"bool"},{"internalType":"address","name":"_addr","type":"address"}],"name":"setErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600180546001600160a01b031916734b94c8567763654101f690cf4d54957206383b7517905534801561003657600080fd5b50604051610711380380610711833981016040819052610055916100e4565b806001600160a01b03811661008457604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61008d81610094565b5050610114565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100f657600080fd5b81516001600160a01b038116811461010d57600080fd5b9392505050565b6105ee806101236000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063915757f11161005b578063915757f1146100ea578063d2f7265a146100fd578063ea705cdb14610105578063f2fde38b1461011857600080fd5b80632771ca531461008d5780634fcccbae146100bc578063715018a6146100d15780638da5cb5b146100d9575b600080fd5b6001546100a0906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100cf6100ca3660046104f2565b61012b565b005b6100cf610228565b6000546001600160a01b03166100a0565b6100cf6100f8366004610532565b61023c565b6100cf61028c565b6002546100a0906001600160a01b031681565b6100cf610126366004610567565b610424565b610133610467565b60008161014b576001546001600160a01b0316610158565b6002546001600160a01b03165b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156101a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c69190610582565b604051630852cd8d60e31b8152600481018290529091506001600160a01b038316906342966c6890602401600060405180830381600087803b15801561020b57600080fd5b505af115801561021f573d6000803e3d6000fd5b50505050505050565b610230610467565b61023a6000610494565b565b610244610467565b811561026b57600280546001600160a01b0383166001600160a01b03199091161790555050565b600180546001600160a01b0383166001600160a01b03199091161790555050565b6001546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156102d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f99190610582565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610351573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610375919061059b565b5060025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156103c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103eb919061059b565b5060405181815233907f5988e4c12f4844b895de0739f562558435dca9602fd8b970720ee3cf8dff39be9060200160405180910390a250565b61042c610467565b6001600160a01b03811661045b57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61046481610494565b50565b6000546001600160a01b0316331461023a5760405163118cdaa760e01b8152336004820152602401610452565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b801515811461046457600080fd5b60006020828403121561050457600080fd5b813561050f816104e4565b9392505050565b80356001600160a01b038116811461052d57600080fd5b919050565b6000806040838503121561054557600080fd5b8235610550816104e4565b915061055e60208401610516565b90509250929050565b60006020828403121561057957600080fd5b61050f82610516565b60006020828403121561059457600080fd5b5051919050565b6000602082840312156105ad57600080fd5b815161050f816104e456fea264697066735822122007d23963dc33eca9ca21b08aa08b4ffe41811f738b4d59e32ef3bf08320c2ac864736f6c63430008160033000000000000000000000000c143768e67a9a117816bfe847068d00a263622f1
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063915757f11161005b578063915757f1146100ea578063d2f7265a146100fd578063ea705cdb14610105578063f2fde38b1461011857600080fd5b80632771ca531461008d5780634fcccbae146100bc578063715018a6146100d15780638da5cb5b146100d9575b600080fd5b6001546100a0906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100cf6100ca3660046104f2565b61012b565b005b6100cf610228565b6000546001600160a01b03166100a0565b6100cf6100f8366004610532565b61023c565b6100cf61028c565b6002546100a0906001600160a01b031681565b6100cf610126366004610567565b610424565b610133610467565b60008161014b576001546001600160a01b0316610158565b6002546001600160a01b03165b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156101a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c69190610582565b604051630852cd8d60e31b8152600481018290529091506001600160a01b038316906342966c6890602401600060405180830381600087803b15801561020b57600080fd5b505af115801561021f573d6000803e3d6000fd5b50505050505050565b610230610467565b61023a6000610494565b565b610244610467565b811561026b57600280546001600160a01b0383166001600160a01b03199091161790555050565b600180546001600160a01b0383166001600160a01b03199091161790555050565b6001546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156102d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f99190610582565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610351573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610375919061059b565b5060025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156103c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103eb919061059b565b5060405181815233907f5988e4c12f4844b895de0739f562558435dca9602fd8b970720ee3cf8dff39be9060200160405180910390a250565b61042c610467565b6001600160a01b03811661045b57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61046481610494565b50565b6000546001600160a01b0316331461023a5760405163118cdaa760e01b8152336004820152602401610452565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b801515811461046457600080fd5b60006020828403121561050457600080fd5b813561050f816104e4565b9392505050565b80356001600160a01b038116811461052d57600080fd5b919050565b6000806040838503121561054557600080fd5b8235610550816104e4565b915061055e60208401610516565b90509250929050565b60006020828403121561057957600080fd5b61050f82610516565b60006020828403121561059457600080fd5b5051919050565b6000602082840312156105ad57600080fd5b815161050f816104e456fea264697066735822122007d23963dc33eca9ca21b08aa08b4ffe41811f738b4d59e32ef3bf08320c2ac864736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c143768e67a9a117816bfe847068d00a263622f1
-----Decoded View---------------
Arg [0] : initialOwner (address): 0xc143768e67a9a117816bFE847068d00A263622F1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c143768e67a9a117816bfe847068d00a263622f1
Deployed Bytecode Sourcemap
4795:913:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4897:64;;;;;-1:-1:-1;;;;;4897:64:0;;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;4897:64:0;;;;;;;5340:197;;;;;;:::i;:::-;;:::i;:::-;;3491:103;;;:::i;2816:87::-;2862:7;2889:6;-1:-1:-1;;;;;2889:6:0;2816:87;;5545:160;;;;;;:::i;:::-;;:::i;5068:264::-;;;:::i;4968:19::-;;;;;-1:-1:-1;;;;;4968:19:0;;;3749:220;;;;;;:::i;:::-;;:::i;5340:197::-;2702:13;:11;:13::i;:::-;5394::::1;5410:4;:18;;5424:4;::::0;-1:-1:-1;;;;;5424:4:0::1;5410:18;;;5417:4;::::0;-1:-1:-1;;;;;5417:4:0::1;5410:18;5455:38;::::0;-1:-1:-1;;;5455:38:0;;5487:4:::1;5455:38;::::0;::::1;160:51:1::0;5394:34:0;;-1:-1:-1;5437:15:0::1;::::0;-1:-1:-1;;;;;5455:23:0;::::1;::::0;::::1;::::0;133:18:1;;5455:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5502:27;::::0;-1:-1:-1;;;5502:27:0;;::::1;::::0;::::1;1615:25:1::0;;;5437:56:0;;-1:-1:-1;;;;;;5502:18:0;::::1;::::0;::::1;::::0;1588::1;;5502:27:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;5385:152;;5340:197:::0;:::o;3491:103::-;2702:13;:11;:13::i;:::-;3556:30:::1;3583:1;3556:18;:30::i;:::-;3491:103::o:0;5545:160::-;2702:13;:11;:13::i;:::-;5621:4:::1;5618:80;;;5637:4;:12:::0;;-1:-1:-1;;;;;5637:12:0;::::1;-1:-1:-1::0;;;;;;5637:12:0;;::::1;;::::0;;5545:160;;:::o;5618:80::-:1;5676:4;:12:::0;;-1:-1:-1;;;;;5676:12:0;::::1;-1:-1:-1::0;;;;;;5676:12:0;;::::1;;::::0;;5545:160;;:::o;5068:264::-;5131:4;;5124:34;;-1:-1:-1;;;5124:34:0;;5147:10;5124:34;;;160:51:1;5106:15:0;;-1:-1:-1;;;;;5131:4:0;;5124:22;;133:18:1;;5124:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5174:4;;5167:61;;-1:-1:-1;;;5167:61:0;;5193:10;5167:61;;;1891:34:1;5213:4:0;1941:18:1;;;1934:43;1993:18;;;1986:34;;;5106:52:0;;-1:-1:-1;;;;;;5174:4:0;;5167:25;;1826:18:1;;5167:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;5244:4:0;;5237:42;;-1:-1:-1;;;5237:42:0;;5259:10;5237:42;;;2455:51:1;2522:18;;;2515:34;;;-1:-1:-1;;;;;5244:4:0;;;;5237:21;;2428:18:1;;5237:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;5295:29:0;;1615:25:1;;;5304:10:0;;5295:29;;1603:2:1;1588:18;5295:29:0;;;;;;;5097:235;5068:264::o;3749:220::-;2702:13;:11;:13::i;:::-;-1:-1:-1;;;;;3834:22:0;::::1;3830:93;;3880:31;::::0;-1:-1:-1;;;3880:31:0;;3908:1:::1;3880:31;::::0;::::1;160:51:1::0;133:18;;3880:31:0::1;;;;;;;;3830:93;3933:28;3952:8;3933:18;:28::i;:::-;3749:220:::0;:::o;2981:166::-;2862:7;2889:6;-1:-1:-1;;;;;2889:6:0;820:10;3041:23;3037:103;;3088:40;;-1:-1:-1;;;3088:40:0;;820:10;3088:40;;;160:51:1;133:18;;3088:40:0;14:203:1;4129:191:0;4203:16;4222:6;;-1:-1:-1;;;;;4239:17:0;;;-1:-1:-1;;;;;;4239:17:0;;;;;;4272:40;;4222:6;;;;;;;4272:40;;4203:16;4272:40;4192:128;4129:191;:::o;222:118:1:-;308:5;301:13;294:21;287:5;284:32;274:60;;330:1;327;320:12;345:241;401:6;454:2;442:9;433:7;429:23;425:32;422:52;;;470:1;467;460:12;422:52;509:9;496:23;528:28;550:5;528:28;:::i;:::-;575:5;345:241;-1:-1:-1;;;345:241:1:o;591:173::-;659:20;;-1:-1:-1;;;;;708:31:1;;698:42;;688:70;;754:1;751;744:12;688:70;591:173;;;:::o;769:315::-;834:6;842;895:2;883:9;874:7;870:23;866:32;863:52;;;911:1;908;901:12;863:52;950:9;937:23;969:28;991:5;969:28;:::i;:::-;1016:5;-1:-1:-1;1040:38:1;1074:2;1059:18;;1040:38;:::i;:::-;1030:48;;769:315;;;;;:::o;1089:186::-;1148:6;1201:2;1189:9;1180:7;1176:23;1172:32;1169:52;;;1217:1;1214;1207:12;1169:52;1240:29;1259:9;1240:29;:::i;1280:184::-;1350:6;1403:2;1391:9;1382:7;1378:23;1374:32;1371:52;;;1419:1;1416;1409:12;1371:52;-1:-1:-1;1442:16:1;;1280:184;-1:-1:-1;1280:184:1:o;2031:245::-;2098:6;2151:2;2139:9;2130:7;2126:23;2122:32;2119:52;;;2167:1;2164;2157:12;2119:52;2199:9;2193:16;2218:28;2240:5;2218:28;:::i
Swarm Source
ipfs://07d23963dc33eca9ca21b08aa08b4ffe41811f738b4d59e32ef3bf08320c2ac8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.