Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 27 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 6634799 | 2172 days ago | IN | 0 ETH | 0.00008428 | ||||
Transfer | 6614117 | 2175 days ago | IN | 0 ETH | 0.00004214 | ||||
Transfer | 6605350 | 2177 days ago | IN | 0.001 ETH | 0.00028447 | ||||
Transfer | 6595726 | 2178 days ago | IN | 0.5 ETH | 0.00028447 | ||||
Transfer | 6592189 | 2179 days ago | IN | 0.01 ETH | 0.00006358 | ||||
Transfer | 6591540 | 2179 days ago | IN | 0.02 ETH | 0.00085342 | ||||
Transfer | 6591077 | 2179 days ago | IN | 0 ETH | 0.00008428 | ||||
Transfer | 6590676 | 2179 days ago | IN | 0.01 ETH | 0.00056895 | ||||
Transfer | 6589966 | 2179 days ago | IN | 1 ETH | 0.00038048 | ||||
Transfer | 6589918 | 2179 days ago | IN | 0.5 ETH | 0.00047412 | ||||
Transfer | 6589866 | 2179 days ago | IN | 0.4 ETH | 0.0003793 | ||||
Transfer | 6589865 | 2179 days ago | IN | 0.25 ETH | 0.00284475 | ||||
Transfer | 6589832 | 2179 days ago | IN | 0.5 ETH | 0.00042535 | ||||
Transfer | 6589720 | 2179 days ago | IN | 2.8 ETH | 0.00225945 | ||||
Transfer | 6589657 | 2179 days ago | IN | 0.6 ETH | 0.00025521 | ||||
Transfer | 6589606 | 2179 days ago | IN | 0.7 ETH | 0.00119098 | ||||
Transfer | 6589602 | 2179 days ago | IN | 1.3 ETH | 0.00132755 | ||||
Transfer | 6589596 | 2179 days ago | IN | 1.3 ETH | 0.00029674 | ||||
Transfer | 6589565 | 2179 days ago | IN | 0.2 ETH | 0.00132755 | ||||
Transfer | 6589539 | 2179 days ago | IN | 1.499 ETH | 0.00119098 | ||||
Transfer | 6589520 | 2179 days ago | IN | 2 ETH | 0.00119098 | ||||
Transfer | 6589517 | 2179 days ago | IN | 1 ETH | 0.00140098 | ||||
Transfer | 6589504 | 2179 days ago | IN | 0.15 ETH | 0.0013179 | ||||
Transfer | 6589497 | 2179 days ago | IN | 0.12 ETH | 0.00025435 | ||||
Transfer | 6589491 | 2179 days ago | IN | 0.1 ETH | 0.00025435 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
6605350 | 2177 days ago | 0.00092 ETH | ||||
6605350 | 2177 days ago | 0.00008 ETH | ||||
6595726 | 2178 days ago | 0.46 ETH | ||||
6595726 | 2178 days ago | 0.04 ETH | ||||
6591540 | 2179 days ago | 0.0184 ETH | ||||
6591540 | 2179 days ago | 0.0016 ETH | ||||
6590676 | 2179 days ago | 0.0092 ETH | ||||
6590676 | 2179 days ago | 0.0008 ETH | ||||
6589966 | 2179 days ago | 0.92 ETH | ||||
6589966 | 2179 days ago | 0.08 ETH | ||||
6589918 | 2179 days ago | 0.46 ETH | ||||
6589918 | 2179 days ago | 0.04 ETH | ||||
6589866 | 2179 days ago | 0.368 ETH | ||||
6589866 | 2179 days ago | 0.032 ETH | ||||
6589865 | 2179 days ago | 0.23 ETH | ||||
6589865 | 2179 days ago | 0.02 ETH | ||||
6589832 | 2179 days ago | 0.20538 ETH | ||||
6589832 | 2179 days ago | 0.25462 ETH | ||||
6589832 | 2179 days ago | 0.04 ETH | ||||
6589720 | 2179 days ago | 0.52538 ETH | ||||
6589720 | 2179 days ago | 0.91 ETH | ||||
6589720 | 2179 days ago | 1.14062 ETH | ||||
6589720 | 2179 days ago | 0.224 ETH | ||||
6589657 | 2179 days ago | 0.54938 ETH | ||||
6589657 | 2179 days ago | 0.00262 ETH |
Loading...
Loading
Contract Name:
BigProfit
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-26 */ pragma solidity ^0.4.25; contract BigProfit { //Address for promo expences address constant private PROMO = 0xCA06c1a5028071E1ffd00711f15EdeFC562E35B5; //Percent for promo expences uint constant public PROMO_PERCENT = 8; //How many percent for your deposit to be multiplied uint constant public MULTIPLIER = 130; //The deposit structure holds all the info about the deposit made struct Deposit { address depositor; //The depositor address uint128 deposit; //The deposit amount uint128 expect; //How much we should pay out (initially it is 130% of deposit) } Deposit[] private queue; //The queue uint public currentReceiverIndex = 0; //The index of the first depositor in the queue. The receiver of investments! //This function receives all the deposits //stores them and make immediate payouts function () public payable { if(msg.value > 0){ require(gasleft() >= 220000, "We require more gas!"); //We need gas to process queue require(msg.value <= 10 ether); //Do not allow too big investments to stabilize payouts //Add the investor into the queue. Mark that he expects to receive 130% of deposit back queue.push(Deposit(msg.sender, uint128(msg.value), uint128(msg.value*MULTIPLIER/100))); //Send some promo to enable this contract to leave long-long time uint promo = msg.value*PROMO_PERCENT/100; PROMO.transfer(promo); //Pay to first investors in line pay(); } } //Used to pay to current investors //Each new transaction processes 1 - 4+ investors in the head of queue //depending on balance and gas left function pay() private { //Try to send all the money on contract to the first investors in line uint128 money = uint128(address(this).balance); //We will do cycle on the queue for(uint i=0; i<queue.length; i++){ uint idx = currentReceiverIndex + i; //get the index of the currently first investor Deposit storage dep = queue[idx]; //get the info of the first investor if(money >= dep.expect){ //If we have enough money on the contract to fully pay to investor dep.depositor.transfer(dep.expect); //Send money to him money -= dep.expect; //update money left //this investor is fully paid, so remove him delete queue[idx]; }else{ //Here we don't have enough money so partially pay to investor dep.depositor.transfer(money); //Send to him everything we have dep.expect -= money; //Update the expected amount break; //Exit cycle } if(gasleft() <= 50000) //Check the gas left. If it is low, exit the cycle break; //The next investor will process the line further } currentReceiverIndex += i; //Update the index of the current first investor } //Get the deposit info by its index //You can get deposit index from function getDeposit(uint idx) public view returns (address depositor, uint deposit, uint expect){ Deposit storage dep = queue[idx]; return (dep.depositor, dep.deposit, dep.expect); } //Get the count of deposits of specific investor function getDepositsCount(address depositor) public view returns (uint) { uint c = 0; for(uint i=currentReceiverIndex; i<queue.length; ++i){ if(queue[i].depositor == depositor) c++; } return c; } //Get all deposits (index, deposit, expect) of a specific investor function getDeposits(address depositor) public view returns (uint[] idxs, uint128[] deposits, uint128[] expects) { uint c = getDepositsCount(depositor); idxs = new uint[](c); deposits = new uint128[](c); expects = new uint128[](c); if(c > 0) { uint j = 0; for(uint i=currentReceiverIndex; i<queue.length; ++i){ Deposit storage dep = queue[i]; if(dep.depositor == depositor){ idxs[j] = i; deposits[j] = dep.deposit; expects[j] = dep.expect; j++; } } } } //Get current queue size function getQueueLength() public view returns (uint) { return queue.length - currentReceiverIndex; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"MULTIPLIER","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentReceiverIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"depositor","type":"address"}],"name":"getDeposits","outputs":[{"name":"idxs","type":"uint256[]"},{"name":"deposits","type":"uint128[]"},{"name":"expects","type":"uint128[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"idx","type":"uint256"}],"name":"getDeposit","outputs":[{"name":"depositor","type":"address"},{"name":"deposit","type":"uint256"},{"name":"expect","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getQueueLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PROMO_PERCENT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"depositor","type":"address"}],"name":"getDepositsCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]
Contract Creation Code
6080604052600060015534801561001557600080fd5b50610841806100256000396000f3006080604052600436106100825763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663059f8b1681146102515780632d95663b1461027857806394f649dd1461028d5780639f9fb9681461038c578063b8f77005146103cc578063c533a5a3146103e1578063c67f7df5146103f6575b60008034111561024e5762035b605a10156100fe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57652072657175697265206d6f72652067617321000000000000000000000000604482015290519081900360640190fd5b678ac7230489e8000034111561011357600080fd5b50604080516060810182523381526001608060020a033481811660208401908152606460828302819004841685870190815260008054600181018255818052965160029097027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5638101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039099169890981790975592517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564909601805491516fffffffffffffffffffffffffffffffff19909216968616969096178516608060020a91909516029390931790935592516008909302049173ca06c1a5028071e1ffd00711f15edefc562e35b5916108fc841502918491818181858888f19350505050158015610245573d6000803e3d6000fd5b5061024e610417565b50005b34801561025d57600080fd5b506102666105b0565b60408051918252519081900360200190f35b34801561028457600080fd5b506102666105b5565b34801561029957600080fd5b506102ae600160a060020a03600435166105bb565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156102f65781810151838201526020016102de565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561033557818101518382015260200161031d565b50505050905001848103825285818151815260200191508051906020019060200280838360005b8381101561037457818101518382015260200161035c565b50505050905001965050505050505060405180910390f35b34801561039857600080fd5b506103a460043561074b565b60408051600160a060020a039094168452602084019290925282820152519081900360600190f35b3480156103d857600080fd5b506102666107a4565b3480156103ed57600080fd5b506102666107ae565b34801561040257600080fd5b50610266600160a060020a03600435166107b3565b3031600080805b6000548310156105a2578260015401915060008281548110151561043e57fe5b600091825260209091206002909102016001810154909150608060020a90046001608060020a039081169085161061051f5780546001820154604051600160a060020a03909216916001608060020a03608060020a9092049190911680156108fc02916000818181858888f193505050501580156104c0573d6000803e3d6000fd5b508060010160109054906101000a90046001608060020a0316840393506000828154811015156104ec57fe5b600091825260208220600290910201805473ffffffffffffffffffffffffffffffffffffffff1916815560010155610589565b8054604051600160a060020a03909116906001608060020a03861680156108fc02916000818181858888f19350505050158015610560573d6000803e3d6000fd5b506001810180546001608060020a03608060020a808304821688900382160291161790556105a2565b61c3505a11610597576105a2565b60019092019161041e565b505060018054909101905550565b608281565b60015481565b60608060606000806000806105cf886107b3565b9350836040519080825280602002602001820160405280156105fb578160200160208202803883390190505b50965083604051908082528060200260200182016040528015610628578160200160208202803883390190505b50955083604051908082528060200260200182016040528015610655578160200160208202803883390190505b5094506000841115610740576000925060015491505b60005482101561074057600080548390811061068357fe5b600091825260209091206002909102018054909150600160a060020a0389811691161415610735578187848151811015156106ba57fe5b60209081029091010152600181015486516001608060020a03909116908790859081106106e357fe5b6001608060020a039283166020918202909201015260018201548651608060020a9091049091169086908590811061071757fe5b6001608060020a039092166020928302909101909101526001909201915b81600101915061066b565b505050509193909250565b60008060008060008581548110151561076057fe5b600091825260209091206002909102018054600190910154600160a060020a03909116966001608060020a038083169750608060020a909204909116945092505050565b6001546000540390565b600881565b60015460009081905b60005481101561080e5783600160a060020a03166000828154811015156107df57fe5b6000918252602090912060029091020154600160a060020a03161415610806576001909101905b6001016107bc565b50929150505600a165627a7a723058204de581cabe9cf62af649bc65e49ce2d558f48d195906723e8d5750d61577b60a0029
Deployed Bytecode
0x6080604052600436106100825763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663059f8b1681146102515780632d95663b1461027857806394f649dd1461028d5780639f9fb9681461038c578063b8f77005146103cc578063c533a5a3146103e1578063c67f7df5146103f6575b60008034111561024e5762035b605a10156100fe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57652072657175697265206d6f72652067617321000000000000000000000000604482015290519081900360640190fd5b678ac7230489e8000034111561011357600080fd5b50604080516060810182523381526001608060020a033481811660208401908152606460828302819004841685870190815260008054600181018255818052965160029097027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5638101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039099169890981790975592517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564909601805491516fffffffffffffffffffffffffffffffff19909216968616969096178516608060020a91909516029390931790935592516008909302049173ca06c1a5028071e1ffd00711f15edefc562e35b5916108fc841502918491818181858888f19350505050158015610245573d6000803e3d6000fd5b5061024e610417565b50005b34801561025d57600080fd5b506102666105b0565b60408051918252519081900360200190f35b34801561028457600080fd5b506102666105b5565b34801561029957600080fd5b506102ae600160a060020a03600435166105bb565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156102f65781810151838201526020016102de565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561033557818101518382015260200161031d565b50505050905001848103825285818151815260200191508051906020019060200280838360005b8381101561037457818101518382015260200161035c565b50505050905001965050505050505060405180910390f35b34801561039857600080fd5b506103a460043561074b565b60408051600160a060020a039094168452602084019290925282820152519081900360600190f35b3480156103d857600080fd5b506102666107a4565b3480156103ed57600080fd5b506102666107ae565b34801561040257600080fd5b50610266600160a060020a03600435166107b3565b3031600080805b6000548310156105a2578260015401915060008281548110151561043e57fe5b600091825260209091206002909102016001810154909150608060020a90046001608060020a039081169085161061051f5780546001820154604051600160a060020a03909216916001608060020a03608060020a9092049190911680156108fc02916000818181858888f193505050501580156104c0573d6000803e3d6000fd5b508060010160109054906101000a90046001608060020a0316840393506000828154811015156104ec57fe5b600091825260208220600290910201805473ffffffffffffffffffffffffffffffffffffffff1916815560010155610589565b8054604051600160a060020a03909116906001608060020a03861680156108fc02916000818181858888f19350505050158015610560573d6000803e3d6000fd5b506001810180546001608060020a03608060020a808304821688900382160291161790556105a2565b61c3505a11610597576105a2565b60019092019161041e565b505060018054909101905550565b608281565b60015481565b60608060606000806000806105cf886107b3565b9350836040519080825280602002602001820160405280156105fb578160200160208202803883390190505b50965083604051908082528060200260200182016040528015610628578160200160208202803883390190505b50955083604051908082528060200260200182016040528015610655578160200160208202803883390190505b5094506000841115610740576000925060015491505b60005482101561074057600080548390811061068357fe5b600091825260209091206002909102018054909150600160a060020a0389811691161415610735578187848151811015156106ba57fe5b60209081029091010152600181015486516001608060020a03909116908790859081106106e357fe5b6001608060020a039283166020918202909201015260018201548651608060020a9091049091169086908590811061071757fe5b6001608060020a039092166020928302909101909101526001909201915b81600101915061066b565b505050509193909250565b60008060008060008581548110151561076057fe5b600091825260209091206002909102018054600190910154600160a060020a03909116966001608060020a038083169750608060020a909204909116945092505050565b6001546000540390565b600881565b60015460009081905b60005481101561080e5783600160a060020a03166000828154811015156107df57fe5b6000918252602090912060029091020154600160a060020a03161415610806576001909101905b6001016107bc565b50929150505600a165627a7a723058204de581cabe9cf62af649bc65e49ce2d558f48d195906723e8d5750d61577b60a0029
Swarm Source
bzzr://4de581cabe9cf62af649bc65e49ce2d558f48d195906723e8d5750d61577b60a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 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.