More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 125 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap | 6530398 | 2283 days ago | IN | 0 ETH | 0.00011274 | ||||
Swap | 6529312 | 2283 days ago | IN | 0 ETH | 0.00006764 | ||||
Swap | 6529278 | 2283 days ago | IN | 0 ETH | 0.00013529 | ||||
Swap | 6506932 | 2286 days ago | IN | 0 ETH | 0.00090196 | ||||
Swap | 6506925 | 2286 days ago | IN | 0 ETH | 0.00045098 | ||||
Swap | 6506682 | 2286 days ago | IN | 0 ETH | 0.00090196 | ||||
Swap | 6506675 | 2286 days ago | IN | 0 ETH | 0.00113065 | ||||
Swap | 6506639 | 2287 days ago | IN | 0 ETH | 0.00099497 | ||||
Swap | 6506610 | 2287 days ago | IN | 0 ETH | 0.00090452 | ||||
Swap | 6501754 | 2287 days ago | IN | 0 ETH | 0.00090196 | ||||
Swap | 6501745 | 2287 days ago | IN | 0 ETH | 0.00067647 | ||||
Swap | 6501738 | 2287 days ago | IN | 0 ETH | 0.00045098 | ||||
Swap | 6499313 | 2288 days ago | IN | 0 ETH | 0.00092188 | ||||
Swap | 6498192 | 2288 days ago | IN | 0 ETH | 0.00022485 | ||||
Swap | 6498187 | 2288 days ago | IN | 0 ETH | 0.00022549 | ||||
Swap | 6498181 | 2288 days ago | IN | 0 ETH | 0.00022549 | ||||
Swap | 6496964 | 2288 days ago | IN | 0 ETH | 0.00022549 | ||||
Swap | 6496929 | 2288 days ago | IN | 0 ETH | 0.00022549 | ||||
Swap | 6496920 | 2288 days ago | IN | 0 ETH | 0.00022549 | ||||
Swap | 6496908 | 2288 days ago | IN | 0 ETH | 0.00022613 | ||||
Swap | 6496767 | 2288 days ago | IN | 0 ETH | 0.00022549 | ||||
Swap | 6496758 | 2288 days ago | IN | 0 ETH | 0.00011274 | ||||
Swap | 6496273 | 2288 days ago | IN | 0 ETH | 0.00011274 | ||||
Swap | 6496246 | 2288 days ago | IN | 0 ETH | 0.00022549 | ||||
Swap | 6495218 | 2288 days ago | IN | 0 ETH | 0.00022613 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TokenSwap
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-10-02 */ pragma solidity ^0.4.16; contract ERC20 { bytes32 public standard; bytes32 public name; bytes32 public symbol; uint256 public totalSupply; uint8 public decimals; bool public allowTransactions; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; function transfer(address _to, uint256 _value) returns (bool success); function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success); function approve(address _spender, uint256 _value) returns (bool success); function transferFrom(address _from, address _to, uint256 _value) returns (bool success); } contract TokenSwap{ uint256 swapSupply = 500000000000000000000000000; address public CYFMAddress = 0x3f06B5D78406cD97bdf10f5C420B241D32759c80; address public XTEAddress = 0xEBf3Aacc50ae14965240a3777eCe8DA1fC490a78; address tokenAdmin = 0xEd86f5216BCAFDd85E5875d35463Aca60925bF16; function Swap(uint256 sendAmount) returns (bool success){ require(swapSupply >= safeMul(safeDiv(sendAmount, 5), 6)); if(ERC20(CYFMAddress).transferFrom(msg.sender, tokenAdmin, sendAmount)){ ERC20(XTEAddress).transfer(msg.sender, safeMul(safeDiv(sendAmount, 5), 6)); swapSupply -= safeMul(safeDiv(sendAmount, 5), 6); } return true; } function Reclaim(uint256 sendAmount) returns (bool success){ require(msg.sender == tokenAdmin); require(swapSupply >= sendAmount); ERC20(XTEAddress).transfer(msg.sender, sendAmount); swapSupply -= sendAmount; return true; } function safeMul(uint a, uint b) public pure returns (uint c) { c = a * b; require(a == 0 || c / a == b); } function safeDiv(uint a, uint b) public pure returns (uint c) { require(b > 0); c = a / b; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"sendAmount","type":"uint256"}],"name":"Reclaim","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"XTEAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"sendAmount","type":"uint256"}],"name":"Swap","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeDiv","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeMul","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"CYFMAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526b019d971e4fe8401e7400000060005560018054600160a060020a0319908116733f06b5d78406cd97bdf10f5c420b241d32759c801790915560028054821673ebf3aacc50ae14965240a3777ece8da1fc490a781790556003805490911673ed86f5216bcafdd85e5875d35463aca60925bf1617905534801561008657600080fd5b5061045e806100966000396000f3006080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166359cf3173811461007c57806369891622146100a857806389f1d38d146100d9578063b5931f7c146100f1578063d05c78da1461011e578063e3f7765914610139575b600080fd5b34801561008857600080fd5b5061009460043561014e565b604080519115158252519081900360200190f35b3480156100b457600080fd5b506100bd610221565b60408051600160a060020a039092168252519081900360200190f35b3480156100e557600080fd5b50610094600435610230565b3480156100fd57600080fd5b5061010c6004356024356103d7565b60408051918252519081900360200190f35b34801561012a57600080fd5b5061010c6004356024356103f8565b34801561014557600080fd5b506100bd610423565b600354600090600160a060020a0316331461016857600080fd5b60005482111561017757600080fd5b600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169163a9059cbb916044808201926020929091908290030181600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050506040513d602081101561020e57600080fd5b5050600080548390039055506001919050565b600254600160a060020a031681565b60006102476102408360056103d7565b60066103f8565b600054101561025557600080fd5b600154600354604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152600160a060020a03928316602482015260448101869052905191909216916323b872dd9160648083019260209291908290030181600087803b1580156102cd57600080fd5b505af11580156102e1573d6000803e3d6000fd5b505050506040513d60208110156102f757600080fd5b5051156103cf57600254600160a060020a031663a9059cbb3361031e6102408660056103d7565b6040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b15801561038957600080fd5b505af115801561039d573d6000803e3d6000fd5b505050506040513d60208110156103b357600080fd5b506103c490506102408360056103d7565b600080549190910390555b506001919050565b60008082116103e557600080fd5b81838115156103f057fe5b049392505050565b818102821580610412575081838281151561040f57fe5b04145b151561041d57600080fd5b92915050565b600154600160a060020a0316815600a165627a7a72305820dc0e20df220fb5a55fb39b4f133f2395a3abf24026f0920a113ab7cb967c98e40029
Deployed Bytecode
0x6080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166359cf3173811461007c57806369891622146100a857806389f1d38d146100d9578063b5931f7c146100f1578063d05c78da1461011e578063e3f7765914610139575b600080fd5b34801561008857600080fd5b5061009460043561014e565b604080519115158252519081900360200190f35b3480156100b457600080fd5b506100bd610221565b60408051600160a060020a039092168252519081900360200190f35b3480156100e557600080fd5b50610094600435610230565b3480156100fd57600080fd5b5061010c6004356024356103d7565b60408051918252519081900360200190f35b34801561012a57600080fd5b5061010c6004356024356103f8565b34801561014557600080fd5b506100bd610423565b600354600090600160a060020a0316331461016857600080fd5b60005482111561017757600080fd5b600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169163a9059cbb916044808201926020929091908290030181600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050506040513d602081101561020e57600080fd5b5050600080548390039055506001919050565b600254600160a060020a031681565b60006102476102408360056103d7565b60066103f8565b600054101561025557600080fd5b600154600354604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152600160a060020a03928316602482015260448101869052905191909216916323b872dd9160648083019260209291908290030181600087803b1580156102cd57600080fd5b505af11580156102e1573d6000803e3d6000fd5b505050506040513d60208110156102f757600080fd5b5051156103cf57600254600160a060020a031663a9059cbb3361031e6102408660056103d7565b6040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b15801561038957600080fd5b505af115801561039d573d6000803e3d6000fd5b505050506040513d60208110156103b357600080fd5b506103c490506102408360056103d7565b600080549190910390555b506001919050565b60008082116103e557600080fd5b81838115156103f057fe5b049392505050565b818102821580610412575081838281151561040f57fe5b04145b151561041d57600080fd5b92915050565b600154600160a060020a0316815600a165627a7a72305820dc0e20df220fb5a55fb39b4f133f2395a3abf24026f0920a113ab7cb967c98e40029
Swarm Source
bzzr://dc0e20df220fb5a55fb39b4f133f2395a3abf24026f0920a113ab7cb967c98e4
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.