Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0.001601 ETH
Eth Value
$3.45 (@ $2,154.72/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
X3ProfitInMonth
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-20
*/
pragma solidity ^0.4.25;
/**
* X3ProfitInMonth contract (300% per 33 day, 99% per 11 day, 9% per day, in first iteration)
* This percent will decrease every restart of system to lowest value of 0.9% per day
*
* Improved, no bugs and backdoors! Your investments are safe!
*
* LOW RISK! You can take your deposit back ANY TIME!
* - Send 0.00000112 ETH to contract address
*
* NO DEPOSIT FEES! All the money go to contract!
*
* LOW WITHDRAWAL FEES! Advertising 10% to OUR MAIN CONTRACT 0xf85D337017D9e6600a433c5036E0D18EdD0380f3
*
* HAVE COMMAND PREPARATION TIME DURING IT WILL BE RETURN ONLY INVESTED AMOUNT AND NOT MORE!!!
* Only special command will run X3 MODE!!!
*
* After restart system automaticaly make deposits for damage users in damaged part,
* but before it users must self make promotion deposit by any amount first.
*
* INSTRUCTIONS:
*
* TO INVEST: send ETH to contract address
* TO WITHDRAW INTEREST: send 0 ETH to contract address
* TO REINVEST AND WITHDRAW INTEREST: send ETH to contract address
* TO GET BACK YOUR DEPOSIT: send 0.00000112 ETH to contract address
* TO START X3 WORK, ANY MEMBER CAN SEND 0.00000111 ETH to contract address
* While X3 not started investors can return only their deposits and no profit.
* Admin voice power is equal 10 simple participants
*
* RECOMMENDED GAS LIMIT 200000
*/
contract X3ProfitInMonth {
struct Investor {
// Restart iteration index
uint iteration;
// array containing information about beneficiaries
uint deposit;
// sum locked to remove in predstart period, gived by contract for
// compensation of previous iteration restart
uint lockedDeposit;
//array containing information about the time of payment
uint time;
//array containing information on interest paid
uint withdrawn;
//array containing information on interest paid (without tax)
uint withdrawnPure;
// Vote system for start iteration
bool isVoteProfit;
}
mapping(address => Investor) public investors;
//fund to transfer percent for MAIN OUR CONTRACT EasyInvestForeverProtected2
address public constant ADDRESS_MAIN_FUND = 0x20C476Bb4c7aA64F919278fB9c09e880583beb4c;
address public constant ADDRESS_ADMIN = 0x6249046Af9FB588bb4E70e62d9403DD69239bdF5;
//time through which you can take dividends
uint private constant TIME_QUANT = 1 days;
//start percent 10% per day
uint private constant PERCENT_DAY = 10;
uint private constant PERCENT_DECREASE_PER_ITERATION = 1;
//Adv tax for withdrawal 10%
uint private constant PERCENT_MAIN_FUND = 10;
//All percent should be divided by this
uint private constant PERCENT_DIVIDER = 100;
uint public countOfInvestors = 0;
uint public countOfAdvTax = 0;
uint public countStartVoices = 0;
uint public iterationIndex = 1;
// max contract balance in ether for overflow protection in calculations only
// 340 quintillion 282 quadrillion 366 trillion 920 billion 938 million 463 thousand 463
uint public constant maxBalance = 340282366920938463463374607431768211456 wei; //(2^128)
uint public constant maxDeposit = maxBalance / 1000;
// X3 Mode status
bool public isProfitStarted = false;
modifier isIssetUser() {
require(investors[msg.sender].iteration == iterationIndex, "Deposit not found");
_;
}
modifier timePayment() {
require(now >= investors[msg.sender].time + TIME_QUANT, "Too fast payout request");
_;
}
//return of interest on the deposit
function collectPercent() isIssetUser timePayment internal {
uint payout = payoutAmount(msg.sender);
_payout(msg.sender, payout, false);
}
//calculate the amount available for withdrawal on deposit
function payoutAmount(address addr) public view returns(uint) {
Investor storage inv = investors[addr];
if(inv.iteration != iterationIndex)
return 0;
uint varTime = inv.time;
uint varNow = now;
if(varTime > varNow) varTime = varNow;
uint percent = PERCENT_DAY;
uint decrease = PERCENT_DECREASE_PER_ITERATION * (iterationIndex - 1);
if(decrease > percent - PERCENT_DECREASE_PER_ITERATION)
decrease = percent - PERCENT_DECREASE_PER_ITERATION;
percent -= decrease;
uint rate = inv.deposit * percent / PERCENT_DIVIDER;
uint fraction = 100;
uint interestRate = fraction * (varNow - varTime) / 1 days;
uint withdrawalAmount = rate * interestRate / fraction;
if(interestRate < 100) withdrawalAmount = 0;
return withdrawalAmount;
}
//make a deposit
function makeDeposit() private {
if (msg.value > 0) {
Investor storage inv = investors[msg.sender];
if (inv.iteration != iterationIndex) {
countOfInvestors += 1;
if(inv.deposit > inv.withdrawnPure)
inv.deposit -= inv.withdrawnPure;
else
inv.deposit = 0;
if(inv.deposit + msg.value > maxDeposit)
inv.deposit = maxDeposit - msg.value;
inv.withdrawn = 0;
inv.withdrawnPure = 0;
inv.time = now;
inv.iteration = iterationIndex;
inv.lockedDeposit = inv.deposit;
inv.isVoteProfit = false;
}
if (inv.deposit > 0 && now >= inv.time + TIME_QUANT) {
collectPercent();
}
inv.deposit += msg.value;
} else {
collectPercent();
}
}
//return of deposit balance
function returnDeposit() isIssetUser private {
Investor storage inv = investors[msg.sender];
uint withdrawalAmount = 0;
uint activDep = inv.deposit - inv.lockedDeposit;
if(activDep > inv.withdrawn)
withdrawalAmount = activDep - inv.withdrawn;
if(withdrawalAmount > address(this).balance){
withdrawalAmount = address(this).balance;
}
//Pay the rest of deposit and take taxes
_payout(msg.sender, withdrawalAmount, true);
//delete user record
_delete(msg.sender);
}
function() external payable {
require(msg.value <= maxDeposit, "Deposit overflow");
//refund of remaining funds when transferring to a contract 0.00000112 ether
Investor storage inv = investors[msg.sender];
if (msg.value == 0.00000112 ether && inv.iteration == iterationIndex) {
inv.deposit += msg.value;
if(inv.deposit > maxDeposit) inv.deposit = maxDeposit;
returnDeposit();
} else {
//start X3 Mode on 0.00000111 ether
if (msg.value == 0.00000111 ether && !isProfitStarted) {
makeDeposit();
if(inv.deposit > maxDeposit) inv.deposit = maxDeposit;
if(!inv.isVoteProfit)
{
countStartVoices++;
inv.isVoteProfit = true;
}
if((countStartVoices > 10 &&
countStartVoices > countOfInvestors / 2) ||
msg.sender == ADDRESS_ADMIN)
isProfitStarted = true;
}
else
{
require(
msg.value == 0 ||
address(this).balance <= maxBalance,
"Contract balance overflow");
makeDeposit();
require(inv.deposit <= maxDeposit, "Deposit overflow");
}
}
}
function restart() private {
countOfInvestors = 0;
iterationIndex++;
countStartVoices = 0;
isProfitStarted = false;
}
//Pays out, takes taxes according to holding time
function _payout(address addr, uint amount, bool retDep) private {
if(amount == 0)
return;
if(amount > address(this).balance) amount = address(this).balance;
if(amount == 0){
restart();
return;
}
Investor storage inv = investors[addr];
//Calculate pure payout that user receives
uint activDep = inv.deposit - inv.lockedDeposit;
if(!retDep && !isProfitStarted && amount + inv.withdrawn > activDep / 2 )
{
if(inv.withdrawn < activDep / 2)
amount = (activDep/2) - inv.withdrawn;
else{
if(inv.withdrawn >= activDep)
{
_delete(addr);
return;
}
amount = activDep - inv.withdrawn;
_delete(addr);
}
}
uint interestPure = amount * (PERCENT_DIVIDER - PERCENT_MAIN_FUND) / PERCENT_DIVIDER;
//calculate money to charity
uint advTax = amount - interestPure;
inv.withdrawnPure += interestPure;
inv.withdrawn += amount;
inv.time = now;
//send money
if(ADDRESS_MAIN_FUND.call.value(advTax)())
countOfAdvTax += advTax;
else
inv.withdrawn -= advTax;
addr.transfer(interestPure);
if(address(this).balance == 0)
restart();
}
//Clears user from registry
function _delete(address addr) private {
if(investors[addr].iteration != iterationIndex)
return;
investors[addr].iteration = 0;
countOfInvestors--;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"countStartVoices","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ADDRESS_MAIN_FUND","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxDeposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"iterationIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"investors","outputs":[{"name":"iteration","type":"uint256"},{"name":"deposit","type":"uint256"},{"name":"lockedDeposit","type":"uint256"},{"name":"time","type":"uint256"},{"name":"withdrawn","type":"uint256"},{"name":"withdrawnPure","type":"uint256"},{"name":"isVoteProfit","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"payoutAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isProfitStarted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"countOfAdvTax","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ADDRESS_ADMIN","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"countOfInvestors","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]Contract Creation Code
60806040526000600181815560028290556003919091556004556005805460ff1916905534801561002f57600080fd5b50610b0e8061003f6000396000f3006080604052600436106100ae5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633ed51458811461034157806357991f47146103685780636083e59a146103995780636618c8d6146103ae5780636f7bc9be146103c357806373ad468a1461041e5780638271bd9914610433578063b2f8e9a514610454578063bfc75e3a1461047d578063e7bd2b0d14610492578063f3f7d633146104a7575b60006e4189374bc6a7ef9db22d0e56041893341115610117576040805160e560020a62461bcd02815260206004820152601060248201527f4465706f736974206f766572666c6f7700000000000000000000000000000000604482015290519081900360640190fd5b50336000908152602081905260409020650104c533c0003414801561013e57506004548154145b15610188576001810180543401908190556e4189374bc6a7ef9db22d0e56041893101561017b576e4189374bc6a7ef9db22d0e5604189360018201555b6101836104bc565b61033e565b346501027127dc001480156101a0575060055460ff16155b15610256576101ad610588565b60018101546e4189374bc6a7ef9db22d0e5604189310156101de576e4189374bc6a7ef9db22d0e5604189360018201555b600681015460ff1615156102085760038054600190810190915560068201805460ff191690911790555b600a600354118015610221575060015460029004600354115b8061023f575033736249046af9fb588bb4e70e62d9403dd69239bdf5145b15610183576005805460ff1916600117905561033e565b3415806102755750700100000000000000000000000000000000303111155b15156102cb576040805160e560020a62461bcd02815260206004820152601960248201527f436f6e74726163742062616c616e6365206f766572666c6f7700000000000000604482015290519081900360640190fd5b6102d3610588565b60018101546e4189374bc6a7ef9db22d0e56041893101561033e576040805160e560020a62461bcd02815260206004820152601060248201527f4465706f736974206f766572666c6f7700000000000000000000000000000000604482015290519081900360640190fd5b50005b34801561034d57600080fd5b50610356610692565b60408051918252519081900360200190f35b34801561037457600080fd5b5061037d610698565b60408051600160a060020a039092168252519081900360200190f35b3480156103a557600080fd5b506103566106b0565b3480156103ba57600080fd5b506103566106c3565b3480156103cf57600080fd5b506103e4600160a060020a03600435166106c9565b604080519788526020880196909652868601949094526060860192909252608085015260a0840152151560c0830152519081900360e00190f35b34801561042a57600080fd5b50610356610709565b34801561043f57600080fd5b50610356600160a060020a036004351661071e565b34801561046057600080fd5b506104696107d1565b604080519115158252519081900360200190f35b34801561048957600080fd5b506103566107da565b34801561049e57600080fd5b5061037d6107e0565b3480156104b357600080fd5b506103566107f8565b600454336000908152602081905260408120549091829182911461052a576040805160e560020a62461bcd02815260206004820152601160248201527f4465706f736974206e6f7420666f756e64000000000000000000000000000000604482015290519081900360640190fd5b50503360009081526020819052604081206002810154600182015460048301549294500390811115610560578260040154810391505b303182111561056e57303191505b61057a338360016107fe565b61058333610989565b505050565b600080341115610687575033600090815260208190526040902060045481541461064e57600180548101815560058201549082015411156105d95760058101546001820180549190910390556105e1565b600060018201555b6103e87001000000000000000000000000000000000434826001015401111561061c57346e4189374bc6a7ef9db22d0e560418930360018201555b6000600480830182905560058301919091554260038301555481556001810154600282015560068101805460ff191690555b6000816001015411801561066b5750620151808160030154014210155b15610678576106786109d3565b6001810180543401905561068f565b61068f6109d3565b50565b60035481565b7320c476bb4c7aa64f919278fb9c09e880583beb4c81565b6e4189374bc6a7ef9db22d0e5604189381565b60045481565b6000602081905290815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919060ff1687565b70010000000000000000000000000000000081565b600160a060020a03811660009081526020819052604081206004548154839182918291829182918291829182911461075957600099506107c3565b886003015497504296508688111561076f578697505b600454600a9650600019019450600985111561078c576001860394505b505050506001850154918190039160649083028190049062015180868603820204808302829004828210156107bf575060005b8099505b505050505050505050919050565b60055460ff1681565b60025481565b736249046af9fb588bb4e70e62d9403dd69239bdf581565b60015481565b600080808085151561080f57610980565b303186111561081d57303195505b8515156108315761082c610ac3565b610980565b600160a060020a038716600090815260208190526040902060028101546001820154919550900392508415801561086b575060055460ff16155b801561087f57506002830484600401548701115b156108ca5760028304846004015410156108a4576004840154600284040395506108ca565b600484015483116108b85761082c87610989565b8360040154830395506108ca87610989565b50506005820180546064605a87020490810190915560048301805486019055426003840155604051818603907320c476bb4c7aa64f919278fb9c09e880583beb4c908290600081818185875af1925050501561092d576002805482019055610939565b60048401805482900390555b604051600160a060020a0388169083156108fc029084906000818181858888f1935050505015801561096f573d6000803e3d6000fd5b503031151561098057610980610ac3565b50505050505050565b600454600160a060020a038216600090815260208190526040902054146109af5761068f565b600160a060020a031660009081526020819052604081205560018054600019019055565b60045433600090815260208190526040812054909114610a3d576040805160e560020a62461bcd02815260206004820152601160248201527f4465706f736974206e6f7420666f756e64000000000000000000000000000000604482015290519081900360640190fd5b336000908152602081905260409020600301546201518001421015610aac576040805160e560020a62461bcd02815260206004820152601760248201527f546f6f2066617374207061796f75742072657175657374000000000000000000604482015290519081900360640190fd5b610ab53361071e565b905061068f338260006107fe565b600060018181556004805490910190556003556005805460ff191690555600a165627a7a723058202b0ae1cb72e7ae4dedd5fa2599c31c5e4edaf684dc86aa30c5130ae2b42c03b70029
Deployed Bytecode
0x6080604052600436106100ae5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633ed51458811461034157806357991f47146103685780636083e59a146103995780636618c8d6146103ae5780636f7bc9be146103c357806373ad468a1461041e5780638271bd9914610433578063b2f8e9a514610454578063bfc75e3a1461047d578063e7bd2b0d14610492578063f3f7d633146104a7575b60006e4189374bc6a7ef9db22d0e56041893341115610117576040805160e560020a62461bcd02815260206004820152601060248201527f4465706f736974206f766572666c6f7700000000000000000000000000000000604482015290519081900360640190fd5b50336000908152602081905260409020650104c533c0003414801561013e57506004548154145b15610188576001810180543401908190556e4189374bc6a7ef9db22d0e56041893101561017b576e4189374bc6a7ef9db22d0e5604189360018201555b6101836104bc565b61033e565b346501027127dc001480156101a0575060055460ff16155b15610256576101ad610588565b60018101546e4189374bc6a7ef9db22d0e5604189310156101de576e4189374bc6a7ef9db22d0e5604189360018201555b600681015460ff1615156102085760038054600190810190915560068201805460ff191690911790555b600a600354118015610221575060015460029004600354115b8061023f575033736249046af9fb588bb4e70e62d9403dd69239bdf5145b15610183576005805460ff1916600117905561033e565b3415806102755750700100000000000000000000000000000000303111155b15156102cb576040805160e560020a62461bcd02815260206004820152601960248201527f436f6e74726163742062616c616e6365206f766572666c6f7700000000000000604482015290519081900360640190fd5b6102d3610588565b60018101546e4189374bc6a7ef9db22d0e56041893101561033e576040805160e560020a62461bcd02815260206004820152601060248201527f4465706f736974206f766572666c6f7700000000000000000000000000000000604482015290519081900360640190fd5b50005b34801561034d57600080fd5b50610356610692565b60408051918252519081900360200190f35b34801561037457600080fd5b5061037d610698565b60408051600160a060020a039092168252519081900360200190f35b3480156103a557600080fd5b506103566106b0565b3480156103ba57600080fd5b506103566106c3565b3480156103cf57600080fd5b506103e4600160a060020a03600435166106c9565b604080519788526020880196909652868601949094526060860192909252608085015260a0840152151560c0830152519081900360e00190f35b34801561042a57600080fd5b50610356610709565b34801561043f57600080fd5b50610356600160a060020a036004351661071e565b34801561046057600080fd5b506104696107d1565b604080519115158252519081900360200190f35b34801561048957600080fd5b506103566107da565b34801561049e57600080fd5b5061037d6107e0565b3480156104b357600080fd5b506103566107f8565b600454336000908152602081905260408120549091829182911461052a576040805160e560020a62461bcd02815260206004820152601160248201527f4465706f736974206e6f7420666f756e64000000000000000000000000000000604482015290519081900360640190fd5b50503360009081526020819052604081206002810154600182015460048301549294500390811115610560578260040154810391505b303182111561056e57303191505b61057a338360016107fe565b61058333610989565b505050565b600080341115610687575033600090815260208190526040902060045481541461064e57600180548101815560058201549082015411156105d95760058101546001820180549190910390556105e1565b600060018201555b6103e87001000000000000000000000000000000000434826001015401111561061c57346e4189374bc6a7ef9db22d0e560418930360018201555b6000600480830182905560058301919091554260038301555481556001810154600282015560068101805460ff191690555b6000816001015411801561066b5750620151808160030154014210155b15610678576106786109d3565b6001810180543401905561068f565b61068f6109d3565b50565b60035481565b7320c476bb4c7aa64f919278fb9c09e880583beb4c81565b6e4189374bc6a7ef9db22d0e5604189381565b60045481565b6000602081905290815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919060ff1687565b70010000000000000000000000000000000081565b600160a060020a03811660009081526020819052604081206004548154839182918291829182918291829182911461075957600099506107c3565b886003015497504296508688111561076f578697505b600454600a9650600019019450600985111561078c576001860394505b505050506001850154918190039160649083028190049062015180868603820204808302829004828210156107bf575060005b8099505b505050505050505050919050565b60055460ff1681565b60025481565b736249046af9fb588bb4e70e62d9403dd69239bdf581565b60015481565b600080808085151561080f57610980565b303186111561081d57303195505b8515156108315761082c610ac3565b610980565b600160a060020a038716600090815260208190526040902060028101546001820154919550900392508415801561086b575060055460ff16155b801561087f57506002830484600401548701115b156108ca5760028304846004015410156108a4576004840154600284040395506108ca565b600484015483116108b85761082c87610989565b8360040154830395506108ca87610989565b50506005820180546064605a87020490810190915560048301805486019055426003840155604051818603907320c476bb4c7aa64f919278fb9c09e880583beb4c908290600081818185875af1925050501561092d576002805482019055610939565b60048401805482900390555b604051600160a060020a0388169083156108fc029084906000818181858888f1935050505015801561096f573d6000803e3d6000fd5b503031151561098057610980610ac3565b50505050505050565b600454600160a060020a038216600090815260208190526040902054146109af5761068f565b600160a060020a031660009081526020819052604081205560018054600019019055565b60045433600090815260208190526040812054909114610a3d576040805160e560020a62461bcd02815260206004820152601160248201527f4465706f736974206e6f7420666f756e64000000000000000000000000000000604482015290519081900360640190fd5b336000908152602081905260409020600301546201518001421015610aac576040805160e560020a62461bcd02815260206004820152601760248201527f546f6f2066617374207061796f75742072657175657374000000000000000000604482015290519081900360640190fd5b610ab53361071e565b905061068f338260006107fe565b600060018181556004805490910190556003556005805460ff191690555600a165627a7a723058202b0ae1cb72e7ae4dedd5fa2599c31c5e4edaf684dc86aa30c5130ae2b42c03b70029
Swarm Source
bzzr://2b0ae1cb72e7ae4dedd5fa2599c31c5e4edaf684dc86aa30c5130ae2b42c03b7
Loading...
Loading
Loading...
Loading
Net Worth in USD
$3.45
Net Worth in ETH
0.001601
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,154.72 | 0.001601 | $3.45 |
Loading...
Loading
Loading...
Loading
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.