ETH Price: $3,912.89 (+6.62%)

Contract

0x9a688E01028670141e4E0551560C7bbDC28d006E
 

Overview

ETH Balance

0.196190122951022638 ETH

Eth Value

$767.67 (@ $3,912.89/ETH)

Token Holdings

Multichain Info

No addresses found
Age:180D
Amount:Between 1-10k
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Update your filters to view other transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
69894372019-01-01 3:13:582172 days ago1546312438
0x9a688E01...DC28d006E
0.027 ETH
69894372019-01-01 3:13:582172 days ago1546312438
0x9a688E01...DC28d006E
2.7 ETH
69894332019-01-01 3:12:522172 days ago1546312372
0x9a688E01...DC28d006E
1.5 ETH
69894332019-01-01 3:12:522172 days ago1546312372
0x9a688E01...DC28d006E
150 ETH
69894082019-01-01 3:06:172172 days ago1546311977
0x9a688E01...DC28d006E
0.001 ETH
69894082019-01-01 3:06:172172 days ago1546311977
0x9a688E01...DC28d006E
0.1 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.0018309 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.18309 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.0016235 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.16235 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.0015704 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.15704 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.0015495 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.15495 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.0099593 ETH
68688402018-12-11 20:05:482192 days ago1544558748
0x9a688E01...DC28d006E
0.99593 ETH
68428892018-12-07 13:39:432196 days ago1544189983
0x9a688E01...DC28d006E
0.007002 ETH
68428892018-12-07 13:39:432196 days ago1544189983
0x9a688E01...DC28d006E
0.7002 ETH
68289612018-12-05 6:14:542198 days ago1543990494
0x9a688E01...DC28d006E
0.0014092 ETH
68289612018-12-05 6:14:542198 days ago1543990494
0x9a688E01...DC28d006E
0.14092 ETH
68289612018-12-05 6:14:542198 days ago1543990494
0x9a688E01...DC28d006E
0.0033868 ETH
68289612018-12-05 6:14:542198 days ago1543990494
0x9a688E01...DC28d006E
0.33868 ETH
68289612018-12-05 6:14:542198 days ago1543990494
0x9a688E01...DC28d006E
0.0013893 ETH
68289612018-12-05 6:14:542198 days ago1543990494
0x9a688E01...DC28d006E
0.13893 ETH
68289612018-12-05 6:14:542198 days ago1543990494
0x9a688E01...DC28d006E
0.0015184 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SWAP

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-12-26
*/

pragma solidity ^0.4.24;

contract SWAP{
 
 string public name="SWAP";
 string public symbol="SWAP";
 
 uint256 public totalSupply; 
 uint256 public price = 50;
 uint256 public decimals = 18; 

 address Owner;
 
 mapping (address => uint256) balances; 
 
 function SWAP() public { 
 Owner = msg.sender;
 name="SWAP";
 symbol="SWAP";
 totalSupply = 100000000000*10**18;
 balances[Owner] = totalSupply;
 }

 modifier onlyOwner(){
 require(msg.sender == Owner);
 _;
 }

 modifier validAddress(address _to){
 require(_to != address(0x00));
 _;
 }
 
 event Burn(address indexed from, uint256 value);
 event Transfer(address indexed from, address indexed to, uint256 value);
 event Withdraw(address to, uint amount);
 

 function setName(string _name) onlyOwner public returns (string){
 name = _name;
 return name;
 }

 function setPrice(uint256 _price) onlyOwner public returns (uint256){
 price = _price;
 return price;
 }

 function setDecimals(uint256 _decimals) onlyOwner public returns (uint256){
 decimals = _decimals;
 return decimals;
 }
 
 function balanceOf(address _owner) view public returns(uint256){
 return balances[_owner];
 }
 function getOwner() view public returns(address){
 return Owner;
 }
 
 function _transfer(address _from, address _to, uint _value) internal {
 require(_to != 0x0);
 require(balances[_from] >= _value);
 require(balances[_to] + _value >= balances[_to]);
 
 uint previousBalances = balances[_from] + balances[_to];
 
 balances[_from] -= _value;
 balances[_to] += _value;
 emit Transfer(_from, _to, _value);
 
 assert(balances[_from] + balances[_to] == previousBalances);
 }

 function transfer(address _to, uint256 _value) public {
 _transfer(msg.sender, _to, _value);
 }
 
 function () public payable {
 uint256 token = (msg.value*price)/10**decimals;
 if(msg.sender == Owner){
 totalSupply += token;
 balances[Owner] += token;
 }
 else{
 require(balances[Owner]>=token);
 _transfer(Owner, msg.sender, token);
 }
 }
 function create(uint256 _value) public onlyOwner returns (bool success) {
 totalSupply += _value;
 balances[Owner] += _value;
 return true;
 }
 
 function burn(uint256 _value) onlyOwner public returns (bool success) {
 require(balances[msg.sender] >= _value); 
 balances[msg.sender] -= _value; 
 totalSupply -= _value; 
 emit Burn(msg.sender, _value);
 return true;
 }

 function withdrawAll() external onlyOwner{
 msg.sender.transfer(address(this).balance);
 emit Withdraw(msg.sender,address(this).balance);
 }

 function withdrawAmount(uint amount) external onlyOwner{
 msg.sender.transfer(amount);
 emit Withdraw(msg.sender,amount);
 }

 function sendEtherToAddress(address to, uint amount) external onlyOwner validAddress(to){
 to.transfer(amount);
 uint profit = amount/100;
 msg.sender.transfer(profit);
 }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdrawAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"create","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_decimals","type":"uint256"}],"name":"setDecimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_price","type":"uint256"}],"name":"setPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"amount","type":"uint256"}],"name":"sendEtherToAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"}]

60c0604052600460808190527f535741500000000000000000000000000000000000000000000000000000000060a090815261003e916000919061016a565b506040805180820190915260048082527f535741500000000000000000000000000000000000000000000000000000000060209092019182526100839160019161016a565b506032600355601260045534801561009a57600080fd5b5060058054600160a060020a031916331790556040805180820190915260048082527f535741500000000000000000000000000000000000000000000000000000000060209092019182526100f19160009161016a565b506040805180820190915260048082527f535741500000000000000000000000000000000000000000000000000000000060209092019182526101369160019161016a565b506c01431e0fae6d7217caa00000006002819055600554600160a060020a0316600090815260066020526040902055610205565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101ab57805160ff19168380011785556101d8565b828001600101855582156101d8579182015b828111156101d85782518255916020019190600101906101bd565b506101e49291506101e8565b5090565b61020291905b808211156101e457600081556001016101ee565b90565b610a8e806102146000396000f3006080604052600436106100e55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630562b9f7811461018157806306fdde031461019b57806318160ddd14610225578063313ce5671461024c57806342966c681461026157806370a082311461028d578063780900dc146102ae578063853828b6146102c6578063893d20e8146102db5780638c8885c81461030c57806391b7f5ed1461032457806395d89b411461033c578063a035b1fe14610351578063a127809d14610366578063a9059cbb1461038a578063c47f0027146103ae575b6000600454600a0a60035434028115156100fb57fe5b6005549190049150600160a060020a0316331415610140576002805482019055600554600160a060020a0316600090815260066020526040902080548201905561017e565b600554600160a060020a031660009081526006602052604090205481111561016757600080fd5b60055461017e90600160a060020a03163383610407565b50005b34801561018d57600080fd5b5061019960043561050f565b005b3480156101a757600080fd5b506101b0610592565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ea5781810151838201526020016101d2565b50505050905090810190601f1680156102175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561023157600080fd5b5061023a610620565b60408051918252519081900360200190f35b34801561025857600080fd5b5061023a610626565b34801561026d57600080fd5b5061027960043561062c565b604080519115158252519081900360200190f35b34801561029957600080fd5b5061023a600160a060020a03600435166106be565b3480156102ba57600080fd5b506102796004356106d9565b3480156102d257600080fd5b50610199610722565b3480156102e757600080fd5b506102f06107a4565b60408051600160a060020a039092168252519081900360200190f35b34801561031857600080fd5b5061023a6004356107b4565b34801561033057600080fd5b5061023a6004356107d7565b34801561034857600080fd5b506101b06107fa565b34801561035d57600080fd5b5061023a610854565b34801561037257600080fd5b50610199600160a060020a036004351660243561085a565b34801561039657600080fd5b50610199600160a060020a03600435166024356108fb565b3480156103ba57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526101b094369492936024939284019190819084018382808284375094975061090a9650505050505050565b6000600160a060020a038316151561041e57600080fd5b600160a060020a03841660009081526006602052604090205482111561044357600080fd5b600160a060020a038316600090815260066020526040902054828101101561046a57600080fd5b50600160a060020a038083166000818152600660209081526040808320805495891680855282852080548981039091559486905281548801909155815187815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600160a060020a0380841660009081526006602052604080822054928716825290205401811461050957fe5b50505050565b600554600160a060020a0316331461052657600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610553573d6000803e3d6000fd5b50604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a150565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b505050505081565b60025481565b60045481565b600554600090600160a060020a0316331461064657600080fd5b3360009081526006602052604090205482111561066257600080fd5b3360008181526006602090815260409182902080548690039055600280548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b600160a060020a031660009081526006602052604090205490565b600554600090600160a060020a031633146106f357600080fd5b506002805482019055600554600160a060020a0316600090815260066020526040902080549091019055600190565b600554600160a060020a0316331461073957600080fd5b6040513390303180156108fc02916000818181858888f19350505050158015610766573d6000803e3d6000fd5b50604080513381523031602082015281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a1565b600554600160a060020a03165b90565b600554600090600160a060020a031633146107ce57600080fd5b50600481905590565b600554600090600160a060020a031633146107f157600080fd5b50600381905590565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106185780601f106105ed57610100808354040283529160200191610618565b60035481565b600554600090600160a060020a0316331461087457600080fd5b82600160a060020a038116151561088a57600080fd5b604051600160a060020a0385169084156108fc029085906000818181858888f193505050501580156108c0573d6000803e3d6000fd5b5060405160648404925033906108fc8415029084906000818181858888f193505050501580156108f4573d6000803e3d6000fd5b5050505050565b610906338383610407565b5050565b600554606090600160a060020a0316331461092457600080fd5b81516109379060009060208501906109ca565b506000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109be5780601f10610993576101008083540402835291602001916109be565b820191906000526020600020905b8154815290600101906020018083116109a157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610a0b57805160ff1916838001178555610a38565b82800160010185558215610a38579182015b82811115610a38578251825591602001919060010190610a1d565b50610a44929150610a48565b5090565b6107b191905b80821115610a445760008155600101610a4e5600a165627a7a72305820b5dbffc5424afef31401ae30cc257a19814e169bdd354b023587250dcac32b230029

Deployed Bytecode

0x6080604052600436106100e55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630562b9f7811461018157806306fdde031461019b57806318160ddd14610225578063313ce5671461024c57806342966c681461026157806370a082311461028d578063780900dc146102ae578063853828b6146102c6578063893d20e8146102db5780638c8885c81461030c57806391b7f5ed1461032457806395d89b411461033c578063a035b1fe14610351578063a127809d14610366578063a9059cbb1461038a578063c47f0027146103ae575b6000600454600a0a60035434028115156100fb57fe5b6005549190049150600160a060020a0316331415610140576002805482019055600554600160a060020a0316600090815260066020526040902080548201905561017e565b600554600160a060020a031660009081526006602052604090205481111561016757600080fd5b60055461017e90600160a060020a03163383610407565b50005b34801561018d57600080fd5b5061019960043561050f565b005b3480156101a757600080fd5b506101b0610592565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ea5781810151838201526020016101d2565b50505050905090810190601f1680156102175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561023157600080fd5b5061023a610620565b60408051918252519081900360200190f35b34801561025857600080fd5b5061023a610626565b34801561026d57600080fd5b5061027960043561062c565b604080519115158252519081900360200190f35b34801561029957600080fd5b5061023a600160a060020a03600435166106be565b3480156102ba57600080fd5b506102796004356106d9565b3480156102d257600080fd5b50610199610722565b3480156102e757600080fd5b506102f06107a4565b60408051600160a060020a039092168252519081900360200190f35b34801561031857600080fd5b5061023a6004356107b4565b34801561033057600080fd5b5061023a6004356107d7565b34801561034857600080fd5b506101b06107fa565b34801561035d57600080fd5b5061023a610854565b34801561037257600080fd5b50610199600160a060020a036004351660243561085a565b34801561039657600080fd5b50610199600160a060020a03600435166024356108fb565b3480156103ba57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526101b094369492936024939284019190819084018382808284375094975061090a9650505050505050565b6000600160a060020a038316151561041e57600080fd5b600160a060020a03841660009081526006602052604090205482111561044357600080fd5b600160a060020a038316600090815260066020526040902054828101101561046a57600080fd5b50600160a060020a038083166000818152600660209081526040808320805495891680855282852080548981039091559486905281548801909155815187815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600160a060020a0380841660009081526006602052604080822054928716825290205401811461050957fe5b50505050565b600554600160a060020a0316331461052657600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610553573d6000803e3d6000fd5b50604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a150565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b505050505081565b60025481565b60045481565b600554600090600160a060020a0316331461064657600080fd5b3360009081526006602052604090205482111561066257600080fd5b3360008181526006602090815260409182902080548690039055600280548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b600160a060020a031660009081526006602052604090205490565b600554600090600160a060020a031633146106f357600080fd5b506002805482019055600554600160a060020a0316600090815260066020526040902080549091019055600190565b600554600160a060020a0316331461073957600080fd5b6040513390303180156108fc02916000818181858888f19350505050158015610766573d6000803e3d6000fd5b50604080513381523031602082015281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a1565b600554600160a060020a03165b90565b600554600090600160a060020a031633146107ce57600080fd5b50600481905590565b600554600090600160a060020a031633146107f157600080fd5b50600381905590565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106185780601f106105ed57610100808354040283529160200191610618565b60035481565b600554600090600160a060020a0316331461087457600080fd5b82600160a060020a038116151561088a57600080fd5b604051600160a060020a0385169084156108fc029085906000818181858888f193505050501580156108c0573d6000803e3d6000fd5b5060405160648404925033906108fc8415029084906000818181858888f193505050501580156108f4573d6000803e3d6000fd5b5050505050565b610906338383610407565b5050565b600554606090600160a060020a0316331461092457600080fd5b81516109379060009060208501906109ca565b506000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109be5780601f10610993576101008083540402835291602001916109be565b820191906000526020600020905b8154815290600101906020018083116109a157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610a0b57805160ff1916838001178555610a38565b82800160010185558215610a38579182015b82811115610a38578251825591602001919060010190610a1d565b50610a44929150610a48565b5090565b6107b191905b80821115610a445760008155600101610a4e5600a165627a7a72305820b5dbffc5424afef31401ae30cc257a19814e169bdd354b023587250dcac32b230029

Swarm Source

bzzr://b5dbffc5424afef31401ae30cc257a19814e169bdd354b023587250dcac32b23

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.