Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 225 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exchange | 11594477 | 1500 days ago | IN | 0.5 ETH | 0.00690867 | ||||
Exchange | 11588219 | 1501 days ago | IN | 0.44 ETH | 0.01049356 | ||||
Exchange | 11588218 | 1501 days ago | IN | 0.5 ETH | 0.01973869 | ||||
Exchange | 11588212 | 1501 days ago | IN | 0.45 ETH | 0.02422982 | ||||
Exchange | 11588181 | 1501 days ago | IN | 0.5 ETH | 0.02825488 | ||||
Exchange | 11588156 | 1501 days ago | IN | 0.2 ETH | 0.02502569 | ||||
Exchange | 11588130 | 1501 days ago | IN | 0.5 ETH | 0.02378767 | ||||
Exchange | 11588111 | 1501 days ago | IN | 0.48 ETH | 0.01742071 | ||||
Exchange | 11588107 | 1501 days ago | IN | 0.5 ETH | 0.02355961 | ||||
Exchange | 11588105 | 1501 days ago | IN | 0.5 ETH | 0.02369924 | ||||
Exchange | 11588077 | 1501 days ago | IN | 0.5 ETH | 0.02158576 | ||||
Exchange | 11588022 | 1501 days ago | IN | 0.5 ETH | 0.02286464 | ||||
Exchange | 11588003 | 1501 days ago | IN | 0.5 ETH | 0.01880746 | ||||
Exchange | 11587992 | 1501 days ago | IN | 0.5 ETH | 0.01880746 | ||||
Exchange | 11587971 | 1501 days ago | IN | 0.5 ETH | 0.0184182 | ||||
Exchange | 11587959 | 1501 days ago | IN | 0.5 ETH | 0.01849071 | ||||
Exchange | 11587917 | 1501 days ago | IN | 0.2 ETH | 0.00899517 | ||||
Exchange | 11587872 | 1501 days ago | IN | 0.5 ETH | 0.0106116 | ||||
Exchange | 11585939 | 1502 days ago | IN | 0.5 ETH | 0.0132645 | ||||
Exchange | 11585928 | 1502 days ago | IN | 0.5 ETH | 0.01379508 | ||||
Exchange | 11585496 | 1502 days ago | IN | 0.5 ETH | 0.01344136 | ||||
Exchange | 11585380 | 1502 days ago | IN | 0.2 ETH | 0.00930813 | ||||
Exchange | 11585265 | 1502 days ago | IN | 0.1 ETH | 0.00981573 | ||||
Exchange | 11584763 | 1502 days ago | IN | 0.5 ETH | 0.02723644 | ||||
Exchange | 11584671 | 1502 days ago | IN | 0.23 ETH | 0.01624354 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
11594477 | 1500 days ago | 0.5 ETH | ||||
11588219 | 1501 days ago | 0.44 ETH | ||||
11588218 | 1501 days ago | 0.04 ETH | ||||
11588218 | 1501 days ago | 0.46 ETH | ||||
11588212 | 1501 days ago | 0.45 ETH | ||||
11588181 | 1501 days ago | 0.5 ETH | ||||
11588156 | 1501 days ago | 0.2 ETH | ||||
11588130 | 1501 days ago | 0.5 ETH | ||||
11588111 | 1501 days ago | 0.48 ETH | ||||
11588107 | 1501 days ago | 0.5 ETH | ||||
11588105 | 1501 days ago | 0.5 ETH | ||||
11588077 | 1501 days ago | 0.5 ETH | ||||
11588022 | 1501 days ago | 0.5 ETH | ||||
11588003 | 1501 days ago | 0.5 ETH | ||||
11587992 | 1501 days ago | 0.5 ETH | ||||
11587971 | 1501 days ago | 0.5 ETH | ||||
11587959 | 1501 days ago | 0.5 ETH | ||||
11587917 | 1501 days ago | 0.2 ETH | ||||
11587872 | 1501 days ago | 0.5 ETH | ||||
11585939 | 1502 days ago | 0.5 ETH | ||||
11585928 | 1502 days ago | 0.5 ETH | ||||
11585496 | 1502 days ago | 0.5 ETH | ||||
11585380 | 1502 days ago | 0.2 ETH | ||||
11585265 | 1502 days ago | 0.1 ETH | ||||
11584763 | 1502 days ago | 0.5 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
NYTExchange
Compiler Version
v0.5.9+commit.e560f70d
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-12-24 */ pragma solidity ^0.5.9; library SafeMath { function add(uint a, uint b) internal pure returns (uint) { uint c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint a, uint b) internal pure returns (uint) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint a, uint b, string memory errorMessage) internal pure returns (uint) { require(b <= a, errorMessage); uint c = a - b; return c; } function mul(uint a, uint b) internal pure returns (uint) { if (a == 0) { return 0; } uint c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint a, uint b) internal pure returns (uint) { return div(a, b, "SafeMath: division by zero"); } function div(uint a, uint b, string memory errorMessage) internal pure returns (uint) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint c = a / b; return c; } } interface IERC20 { function totalSupply() external view returns (uint); function balanceOf(address account) external view returns (uint); function transfer(address recipient, uint amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint amount) external returns (bool); function transferFrom(address sender, address recipient, uint amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); } contract NYTExchange { using SafeMath for uint256; mapping(address => uint256) public userExchangeRecord; IERC20 public nyt = IERC20(0x45e0aAa66061E00e11d3b2FA6e434F28c329c799); address payable ceo = 0xfCe9bED89DbC161f4b27195988a5f5edf892d0Da; function exchange() public payable returns (uint256){ uint256 value = msg.value; require(value >= 0.1 ether, 'Below the minimum limit'); require(userExchangeRecord[msg.sender] < 0.5 ether, 'Maximum limit exceeded'); if (userExchangeRecord[msg.sender].add(value) > 0.5 ether) { value = uint256(0.5 ether).sub(userExchangeRecord[msg.sender]); msg.sender.transfer(msg.value.sub(value)); } if (nyt.balanceOf(address(this)) < value.mul(10)) { msg.sender.transfer(value.sub(nyt.balanceOf(address(this)).div(10))); value = nyt.balanceOf(address(this)).div(10); } userExchangeRecord[msg.sender] = userExchangeRecord[msg.sender].add(value); nyt.transfer(msg.sender, value.mul(10)); ceo.transfer(value); return value; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"userExchangeRecord","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nyt","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exchange","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052600180546001600160a01b03199081167345e0aaa66061e00e11d3b2fa6e434f28c329c799179091556002805490911673fce9bed89dbc161f4b27195988a5f5edf892d0da17905534801561005857600080fd5b50610786806100686000396000f3fe6080604052600436106100345760003560e01c80630a450b09146100395780638b2919a41461007e578063d2f7265a146100af575b600080fd5b34801561004557600080fd5b5061006c6004803603602081101561005c57600080fd5b50356001600160a01b03166100b7565b60408051918252519081900360200190f35b34801561008a57600080fd5b506100936100c9565b604080516001600160a01b039092168252519081900360200190f35b61006c6100d8565b60006020819052908152604090205481565b6001546001600160a01b031681565b60003467016345785d8a0000811015610138576040805162461bcd60e51b815260206004820152601760248201527f42656c6f7720746865206d696e696d756d206c696d6974000000000000000000604482015290519081900360640190fd5b336000908152602081905260409020546706f05b59d3b200001161019c576040805162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481b1a5b5a5d08195e18d95959195960521b604482015290519081900360640190fd5b336000908152602081905260409020546706f05b59d3b20000906101c6908363ffffffff6104f416565b111561023557336000908152602081905260409020546101f5906706f05b59d3b200009063ffffffff61055716565b9050336108fc61020b348463ffffffff61055716565b6040518115909202916000818181858888f19350505050158015610233573d6000803e3d6000fd5b505b61024681600a63ffffffff61059916565b600154604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561029157600080fd5b505afa1580156102a5573d6000803e3d6000fd5b505050506040513d60208110156102bb57600080fd5b505110156103e257600154604080516370a0823160e01b8152306004820152905133926108fc926103649261035792600a926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561031f57600080fd5b505afa158015610333573d6000803e3d6000fd5b505050506040513d602081101561034957600080fd5b50519063ffffffff6105f216565b849063ffffffff61055716565b6040518115909202916000818181858888f1935050505015801561038c573d6000803e3d6000fd5b50600154604080516370a0823160e01b815230600482015290516103df92600a926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561031f57600080fd5b90505b33600090815260208190526040902054610402908263ffffffff6104f416565b336000818152602081905260409020919091556001546001600160a01b03169063a9059cbb9061043984600a63ffffffff61059916565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561048857600080fd5b505af115801561049c573d6000803e3d6000fd5b505050506040513d60208110156104b257600080fd5b50506002546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156104ee573d6000803e3d6000fd5b50905090565b60008282018381101561054e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061054e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610634565b6000826105a857506000610551565b828202828482816105b557fe5b041461054e5760405162461bcd60e51b81526004018080602001828103825260218152602001806107316021913960400191505060405180910390fd5b600061054e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506106cb565b600081848411156106c35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610688578181015183820152602001610670565b50505050905090810190601f1680156106b55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361071a5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610688578181015183820152602001610670565b50600083858161072657fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72305820e5e47f20b2af613575f0996bec92ee2fef4abe7b3c3abc6227e7c8223512ba4f64736f6c63430005090032
Deployed Bytecode
0x6080604052600436106100345760003560e01c80630a450b09146100395780638b2919a41461007e578063d2f7265a146100af575b600080fd5b34801561004557600080fd5b5061006c6004803603602081101561005c57600080fd5b50356001600160a01b03166100b7565b60408051918252519081900360200190f35b34801561008a57600080fd5b506100936100c9565b604080516001600160a01b039092168252519081900360200190f35b61006c6100d8565b60006020819052908152604090205481565b6001546001600160a01b031681565b60003467016345785d8a0000811015610138576040805162461bcd60e51b815260206004820152601760248201527f42656c6f7720746865206d696e696d756d206c696d6974000000000000000000604482015290519081900360640190fd5b336000908152602081905260409020546706f05b59d3b200001161019c576040805162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481b1a5b5a5d08195e18d95959195960521b604482015290519081900360640190fd5b336000908152602081905260409020546706f05b59d3b20000906101c6908363ffffffff6104f416565b111561023557336000908152602081905260409020546101f5906706f05b59d3b200009063ffffffff61055716565b9050336108fc61020b348463ffffffff61055716565b6040518115909202916000818181858888f19350505050158015610233573d6000803e3d6000fd5b505b61024681600a63ffffffff61059916565b600154604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561029157600080fd5b505afa1580156102a5573d6000803e3d6000fd5b505050506040513d60208110156102bb57600080fd5b505110156103e257600154604080516370a0823160e01b8152306004820152905133926108fc926103649261035792600a926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561031f57600080fd5b505afa158015610333573d6000803e3d6000fd5b505050506040513d602081101561034957600080fd5b50519063ffffffff6105f216565b849063ffffffff61055716565b6040518115909202916000818181858888f1935050505015801561038c573d6000803e3d6000fd5b50600154604080516370a0823160e01b815230600482015290516103df92600a926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561031f57600080fd5b90505b33600090815260208190526040902054610402908263ffffffff6104f416565b336000818152602081905260409020919091556001546001600160a01b03169063a9059cbb9061043984600a63ffffffff61059916565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561048857600080fd5b505af115801561049c573d6000803e3d6000fd5b505050506040513d60208110156104b257600080fd5b50506002546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156104ee573d6000803e3d6000fd5b50905090565b60008282018381101561054e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061054e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610634565b6000826105a857506000610551565b828202828482816105b557fe5b041461054e5760405162461bcd60e51b81526004018080602001828103825260218152602001806107316021913960400191505060405180910390fd5b600061054e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506106cb565b600081848411156106c35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610688578181015183820152602001610670565b50505050905090810190601f1680156106b55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361071a5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610688578181015183820152602001610670565b50600083858161072657fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72305820e5e47f20b2af613575f0996bec92ee2fef4abe7b3c3abc6227e7c8223512ba4f64736f6c63430005090032
Deployed Bytecode Sourcemap
1850:1151:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1915:53;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1915:53:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1915:53:0;-1:-1:-1;;;;;1915:53:0;;:::i;:::-;;;;;;;;;;;;;;;;1977:70;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1977:70:0;;;:::i;:::-;;;;-1:-1:-1;;;;;1977:70:0;;;;;;;;;;;;;;2129:865;;;:::i;1915:53::-;;;;;;;;;;;;;;:::o;1977:70::-;;;-1:-1:-1;;;;;1977:70:0;;:::o;2129:865::-;2173:7;2208:9;2245;2236:18;;;2228:54;;;;;-1:-1:-1;;;2228:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;2320:10;2301:18;:30;;;;;;;;;;;2334:9;-1:-1:-1;2293:77:0;;;;;-1:-1:-1;;;2293:77:0;;;;;;;;;;;;-1:-1:-1;;;2293:77:0;;;;;;;;;;;;;;;2404:10;2385:18;:30;;;;;;;;;;;2429:9;;2385:41;;2420:5;2385:41;:34;:41;:::i;:::-;:53;2381:204;;;2505:10;2486:18;:30;;;;;;;;;;;2463:54;;2471:9;;2463:54;:22;:54;:::i;:::-;2455:62;-1:-1:-1;2532:10:0;:41;2552:20;:9;2455:62;2552:20;:13;:20;:::i;:::-;2532:41;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2532:41:0;2381:204;2630:13;:5;2640:2;2630:13;:9;:13;:::i;:::-;2599:3;;:28;;;-1:-1:-1;;;2599:28:0;;2621:4;2599:28;;;;;;-1:-1:-1;;;;;2599:3:0;;;;:13;;:28;;;;;;;;;;;;;;;:3;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;2599:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2599:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2599:28:0;:44;2595:204;;;2690:3;;:28;;;-1:-1:-1;;;2690:28:0;;2712:4;2690:28;;;;;;2660:10;;:68;;2680:47;;2690:36;;2723:2;;-1:-1:-1;;;;;2690:3:0;;;;:13;;:28;;;;;;;;;;;;;;;:3;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;2690:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2690:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2690:28:0;;:36;:32;:36;:::i;:::-;2680:5;;:47;:9;:47;:::i;:::-;2660:68;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;2751:3:0;;:28;;;-1:-1:-1;;;2751:28:0;;2773:4;2751:28;;;;;;:36;;2784:2;;-1:-1:-1;;;;;2751:3:0;;;;:13;;:28;;;;;;;;;;;;;;;:3;:28;;;5:2:-1;;;;30:1;27;20:12;2751:36:0;2743:44;;2595:204;2861:10;2842:18;:30;;;;;;;;;;;:41;;2877:5;2842:41;:34;:41;:::i;:::-;2828:10;2809:18;:30;;;;;;;;;;:74;;;;2894:3;;-1:-1:-1;;;;;2894:3:0;;:12;;2919:13;:5;2929:2;2919:13;:9;:13;:::i;:::-;2894:39;;;;;;;;;;;;;-1:-1:-1;;;;;2894:39:0;-1:-1:-1;;;;;2894:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2894:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2894:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;2944:3:0;;:19;;-1:-1:-1;;;;;2944:3:0;;;;:19;;;;;2957:5;;2944:3;:19;:3;:19;2957:5;2944:3;:19;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;2981:5:0;-1:-1:-1;2129:865:0;:::o;51:169::-;103:4;129:5;;;153:6;;;;145:46;;;;;-1:-1:-1;;;145:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;211:1;-1:-1:-1;51:169:0;;;;;:::o;228:127::-;280:4;304:43;308:1;311;304:43;;;;;;;;;;;;;;;;;:3;:43::i;551:238::-;603:4;624:6;620:47;;-1:-1:-1;654:1:0;647:8;;620:47;688:5;;;692:1;688;:5;:1;712:5;;;;;:10;704:56;;;;-1:-1:-1;;;704:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;797:123;849:4;873:39;877:1;880;873:39;;;;;;;;;;;;;;;;;:3;:39::i;363:180::-;443:4;476:12;468:6;;;;460:29;;;;-1:-1:-1;;;460:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;460:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;509:5:0;;;363:180::o;928:246::-;1008:4;1107:12;1100:5;1092:28;;;;-1:-1:-1;;;1092:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;1092:28:0;;1131:6;1144:1;1140;:5;;;;;;;928:246;-1:-1:-1;;;;;928:246:0:o
Swarm Source
bzzr://e5e47f20b2af613575f0996bec92ee2fef4abe7b3c3abc6227e7c8223512ba4f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.