More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 243 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw ETH | 7758762 | 2115 days ago | IN | 0 ETH | 0.00044511 | ||||
Transfer | 7590267 | 2142 days ago | IN | 0.07364 ETH | 0.00051848 | ||||
Transfer | 7458243 | 2162 days ago | IN | 0.008 ETH | 0.00010369 | ||||
Transfer | 7040954 | 2240 days ago | IN | 0 ETH | 0.00015537 | ||||
Transfer | 6913213 | 2262 days ago | IN | 0.11 ETH | 0.00020739 | ||||
Transfer | 6910770 | 2262 days ago | IN | 0.2345 ETH | 0.00021638 | ||||
Transfer | 6910762 | 2262 days ago | IN | 0.234567 ETH | 0.00021638 | ||||
Transfer | 6908604 | 2262 days ago | IN | 0.15 ETH | 0.00031108 | ||||
Transfer | 6902020 | 2264 days ago | IN | 0.0038 ETH | 0.00057032 | ||||
Transfer | 6886751 | 2266 days ago | IN | 0.002 ETH | 0.00041478 | ||||
Transfer | 6886732 | 2266 days ago | IN | 0.001 ETH | 0.00036293 | ||||
Transfer | 6877786 | 2268 days ago | IN | 0.008 ETH | 0.00062217 | ||||
Transfer | 6874528 | 2268 days ago | IN | 0.0001 ETH | 0.00019275 | ||||
Transfer | 6871346 | 2269 days ago | IN | 0.001 ETH | 0.00046663 | ||||
Transfer | 6871342 | 2269 days ago | IN | 0.0009 ETH | 0.00067402 | ||||
Transfer | 6867685 | 2269 days ago | IN | 0.22 ETH | 0.00020739 | ||||
Transfer | 6867288 | 2269 days ago | IN | 1.5125 ETH | 0.00025923 | ||||
Transfer | 6866801 | 2269 days ago | IN | 0.51234567 ETH | 0.00025923 | ||||
Transfer | 6863715 | 2270 days ago | IN | 0.05 ETH | 0.00015035 | ||||
Transfer | 6850475 | 2272 days ago | IN | 1.2 ETH | 0.00015553 | ||||
Transfer | 6850223 | 2272 days ago | IN | 0.62 ETH | 0.00015553 | ||||
Transfer | 6850054 | 2272 days ago | IN | 0.65 ETH | 0.00015553 | ||||
Transfer | 6843453 | 2273 days ago | IN | 1 ETH | 0.00025923 | ||||
Transfer | 6843434 | 2273 days ago | IN | 1 ETH | 0.00021 | ||||
Transfer | 6843410 | 2273 days ago | IN | 1 ETH | 0.000105 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
7758762 | 2115 days ago | 11.70721268 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
LUPXSale
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-11-11 */ pragma solidity ^0.4.25; interface IERC20Token { function balanceOf(address owner) external returns (uint256); function transfer(address to, uint256 amount) external returns (bool); function decimals() external returns (uint256); } contract LUPXSale { IERC20Token public tokenContract ; // the token being sold address owner ; uint256 public tokensSold ; uint256 public LUPXPrice ; event sold(address buyer, uint256 amount) ; event priceAdjusted(uint256 oldPrice, uint256 newPrice) ; event endOfSale(uint256 timeStamp) ; constructor(IERC20Token _tokenContract, uint256 LUPXperETH) public { owner = msg.sender ; tokenContract = _tokenContract ; LUPXPrice = LUPXperETH ; } modifier onlyOwner() { require(msg.sender == owner) ; _; } function safeMultiply(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0 ; } else { uint256 c = a * b ; assert(c / a == b) ; return c ; } } function () public payable { uint256 soldAmount = 0 ; if (msg.value <= 0.5 ether) { soldAmount = safeMultiply(msg.value, LUPXPrice) ; } else { soldAmount = safeMultiply(msg.value*2, LUPXPrice) ; } require(tokenContract.balanceOf(this) >= soldAmount) ; tokenContract.transfer(msg.sender, soldAmount) ; tokensSold += soldAmount/10**18 ; emit sold(msg.sender, soldAmount/10**18) ; require(LUPXPrice >= 500) ; LUPXPrice -= 500 ; } function withdrawETH() public onlyOwner { //withdraw ether from contract msg.sender.transfer(address(this).balance) ; } function endLUPXSale() public onlyOwner { //only the owner can stop the sale require(tokenContract.transfer(owner, tokenContract.balanceOf(this))) ; msg.sender.transfer(address(this).balance) ; emit endOfSale(now) ; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"LUPXPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"endLUPXSale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawETH","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_tokenContract","type":"address"},{"name":"LUPXperETH","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"buyer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"sold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldPrice","type":"uint256"},{"indexed":false,"name":"newPrice","type":"uint256"}],"name":"priceAdjusted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"timeStamp","type":"uint256"}],"name":"endOfSale","type":"event"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516040806105cb83398101604052805160209091015160018054600160a060020a0319908116331790915560008054600160a060020a0390941693909116929092179091556003556105618061006a6000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632ef3edaf811461024c578063518ab2a81461027357806355a373d6146102885780639bc3db46146102b9578063e086e5ec146102d0575b60006706f05b59d3b20000341161009057610089346003546102e5565b90506100a2565b61009f346002026003546102e5565b90505b60008054604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290518493600160a060020a03909316926370a0823192602480820193602093909283900390910190829087803b15801561010c57600080fd5b505af1158015610120573d6000803e3d6000fd5b505050506040513d602081101561013657600080fd5b5051101561014357600080fd5b60008054604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169263a9059cbb926044808401936020939083900390910190829087803b1580156101b157600080fd5b505af11580156101c5573d6000803e3d6000fd5b505050506040513d60208110156101db57600080fd5b505060028054670de0b6b3a7640000830490810190915560408051338152602081019290925280517f5b0833cc9b85dfe4167c39867467dbdef9a05060318b433fd5759b5dca79ba7f9281900390910190a16003546101f4111561023e57600080fd5b50600380546101f319019055005b34801561025857600080fd5b5061026161031b565b60408051918252519081900360200190f35b34801561027f57600080fd5b50610261610321565b34801561029457600080fd5b5061029d610327565b60408051600160a060020a039092168252519081900360200190f35b3480156102c557600080fd5b506102ce610336565b005b3480156102dc57600080fd5b506102ce6104ee565b6000808315156102f85760009150610314565b5082820282848281151561030857fe5b041461031057fe5b8091505b5092915050565b60035481565b60025481565b600054600160a060020a031681565b600154600160a060020a0316331461034d57600080fd5b60008054600154604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a039384169463a9059cbb949093169285926370a082319260248083019360209383900390910190829087803b1580156103c257600080fd5b505af11580156103d6573d6000803e3d6000fd5b505050506040513d60208110156103ec57600080fd5b5051604080517c010000000000000000000000000000000000000000000000000000000063ffffffff8616028152600160a060020a03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561045457600080fd5b505af1158015610468573d6000803e3d6000fd5b505050506040513d602081101561047e57600080fd5b5051151561048b57600080fd5b6040513390303180156108fc02916000818181858888f193505050501580156104b8573d6000803e3d6000fd5b506040805142815290517f0d1de6d5bbb27391d1d1609986b22970274fd088b2df5902765a53da12bed5fb9181900360200190a1565b600154600160a060020a0316331461050557600080fd5b6040513390303180156108fc02916000818181858888f19350505050158015610532573d6000803e3d6000fd5b505600a165627a7a723058205b4e7e7317cbfab76211e13099a24f441f04ebb27b9a5cee39f6f1e4943ca46c002900000000000000000000000049c67ae22c334d0123dd6dbdc44f5302e130a88b00000000000000000000000000000000000000000000000000000000000f4240
Deployed Bytecode
0x60806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632ef3edaf811461024c578063518ab2a81461027357806355a373d6146102885780639bc3db46146102b9578063e086e5ec146102d0575b60006706f05b59d3b20000341161009057610089346003546102e5565b90506100a2565b61009f346002026003546102e5565b90505b60008054604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290518493600160a060020a03909316926370a0823192602480820193602093909283900390910190829087803b15801561010c57600080fd5b505af1158015610120573d6000803e3d6000fd5b505050506040513d602081101561013657600080fd5b5051101561014357600080fd5b60008054604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169263a9059cbb926044808401936020939083900390910190829087803b1580156101b157600080fd5b505af11580156101c5573d6000803e3d6000fd5b505050506040513d60208110156101db57600080fd5b505060028054670de0b6b3a7640000830490810190915560408051338152602081019290925280517f5b0833cc9b85dfe4167c39867467dbdef9a05060318b433fd5759b5dca79ba7f9281900390910190a16003546101f4111561023e57600080fd5b50600380546101f319019055005b34801561025857600080fd5b5061026161031b565b60408051918252519081900360200190f35b34801561027f57600080fd5b50610261610321565b34801561029457600080fd5b5061029d610327565b60408051600160a060020a039092168252519081900360200190f35b3480156102c557600080fd5b506102ce610336565b005b3480156102dc57600080fd5b506102ce6104ee565b6000808315156102f85760009150610314565b5082820282848281151561030857fe5b041461031057fe5b8091505b5092915050565b60035481565b60025481565b600054600160a060020a031681565b600154600160a060020a0316331461034d57600080fd5b60008054600154604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a039384169463a9059cbb949093169285926370a082319260248083019360209383900390910190829087803b1580156103c257600080fd5b505af11580156103d6573d6000803e3d6000fd5b505050506040513d60208110156103ec57600080fd5b5051604080517c010000000000000000000000000000000000000000000000000000000063ffffffff8616028152600160a060020a03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561045457600080fd5b505af1158015610468573d6000803e3d6000fd5b505050506040513d602081101561047e57600080fd5b5051151561048b57600080fd5b6040513390303180156108fc02916000818181858888f193505050501580156104b8573d6000803e3d6000fd5b506040805142815290517f0d1de6d5bbb27391d1d1609986b22970274fd088b2df5902765a53da12bed5fb9181900360200190a1565b600154600160a060020a0316331461050557600080fd5b6040513390303180156108fc02916000818181858888f19350505050158015610532573d6000803e3d6000fd5b505600a165627a7a723058205b4e7e7317cbfab76211e13099a24f441f04ebb27b9a5cee39f6f1e4943ca46c0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000049c67ae22c334d0123dd6dbdc44f5302e130a88b00000000000000000000000000000000000000000000000000000000000f4240
-----Decoded View---------------
Arg [0] : _tokenContract (address): 0x49C67AE22c334D0123dD6DBDc44F5302e130a88b
Arg [1] : LUPXperETH (uint256): 1000000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000049c67ae22c334d0123dd6dbdc44f5302e130a88b
Arg [1] : 00000000000000000000000000000000000000000000000000000000000f4240
Swarm Source
bzzr://5b4e7e7317cbfab76211e13099a24f441f04ebb27b9a5cee39f6f1e4943ca46c
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.