SHALARIBA (OP)
Jr. Member
Offline
Activity: 101
Merit: 1
|
|
November 08, 2018, 11:00:00 PM |
|
pragma solidity ^0.4.25;
/* Project pandora The automatic Ethereum smart contract Absolute transparency https://pandora.gives */
contract Pandora { using SafeMath for uint256; // There is day percent 2%. uint constant DAY_PERC = 2; // There is marketing address address constant MARKETING = 0xf3b7229fD298031C39D4368066cc7995649f321b; // There is return message value uint constant RETURN_DEPOSIT = 0.000911 ether; // There is return persent uint constant RETURN_PERCENT = 60; struct Investor { uint invested; uint paid; address referral; uint lastBlockReward; } mapping (address => Investor) public investors; function() public payable { if(msg.value == 0) { payReward(); }else{ if (msg.value == RETURN_DEPOSIT){ returnDeposit(); }else { if (investors[msg.sender].invested == 0){ addInvestor(); }else{ payReward(); } payToMarketingReferral(); } } } function addInvestor() internal { address ref; if (msg.data.length != 0){ address referrer = bytesToAddress(msg.data); } if(investors[referrer].invested > 0){ ref = referrer; }else{ ref = MARKETING; } Investor memory investor; investor = Investor({ invested : msg.value, paid : 0, referral : ref, lastBlockReward : block.number }); investors[msg.sender] = investor; } function payReward() internal { Investor memory investor; investor = investors[msg.sender]; if (investor.invested != 0) { uint getPay = investor.invested*DAY_PERC/100*(block.number-investor.lastBlockReward)/5900; uint sumPay = getPay.add(investor.paid); if (sumPay > investor.invested.mul(2)) { getPay = investor.invested.mul(2).sub(investor.paid); investor.paid = 0; investor.lastBlockReward = block.number; investor.invested = msg.value; }else{ investor.paid += getPay; investor.lastBlockReward = block.number; investor.invested += msg.value; } investors[msg.sender] = investor; if(address(this).balance < getPay){ getPay = address(this).balance; } msg.sender.transfer(getPay); } } function returnDeposit() internal { if (msg.value == RETURN_DEPOSIT){
Investor memory investor; investor = investors[msg.sender]; if (investor.invested != 0){ uint getPay = ((investor.invested.sub(investor.paid)).mul(RETURN_PERCENT).div(100)).sub(msg.value); msg.sender.transfer(getPay); investor.paid = 0; investor.invested = 0; investors[msg.sender] = investor; } } } function payToMarketingReferral() internal { address referral = investors[msg.sender].referral; if (referral == MARKETING) { MARKETING.send(msg.value / 10); }else{ MARKETING.send(msg.value / 20); referral.send(msg.value / 20); } } function bytesToAddress(bytes _b) private pure returns (address addr) { assembly { addr := mload(add(_b, 20)) } } }
library SafeMath {
/** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; }
uint256 c = a * b; require(c / a == b);
return c; }
/** * @dev Integer division of two numbers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); // Solidity only automatically asserts when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c; }
/** * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b;
return c; }
/** * @dev Adds two numbers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a);
return c; }
/** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } }
Thank you. Waiting for your feedback and suggestions!
|
|
|
|
cryptonx
Sr. Member
Offline
Activity: 1176
Merit: 252
Futurov
|
|
November 09, 2018, 01:47:24 AM |
|
what did you mean by 2% every day ? is this project just like a scam project like bitconnect, ?
|
|
|
|
Xenon05
Jr. Member
Offline
Activity: 228
Merit: 1
GPTCash Weekly Airdrop: https://discord.gg/RWPEsRa
|
|
November 09, 2018, 04:38:52 AM |
|
what is all about in this project? give some more details about the project, i visit the sites but i don't see any details about the project, all i see is like investing site.
|
|
|
|
zorgo
Member
Offline
Activity: 350
Merit: 10
|
|
November 09, 2018, 06:32:53 AM |
|
what did you mean by 2% every day ? is this project just like a scam project like bitconnect, ?
This is a HYIP project, it does not mean that he is a Scam. I know many people who consistently earn by taking part in HYIP projects.
|
|
|
|
SHALARIBA (OP)
Jr. Member
Offline
Activity: 101
Merit: 1
|
|
November 09, 2018, 07:02:53 AM |
|
what did you mean by 2% every day ? is this project just like a scam project like bitconnect, ?
We have focused on the closeness of the contract and the inability to withdraw the cashier, as well as on the super referral 5% - flies machine from the contract, without the participation of people
|
|
|
|
1ceStorm
Jr. Member
Offline
Activity: 112
Merit: 1
|
|
November 09, 2018, 07:21:25 AM |
|
what did you mean by 2% every day ? is this project just like a scam project like bitconnect, ?
We have focused on the closeness of the contract and the inability to withdraw the cashier, as well as on the super referral 5% - flies machine from the contract, without the participation of people I really like that the owners of the project refused to own a smart code, this is the right approach to business.
|
|
|
|
Algrinys
Jr. Member
Offline
Activity: 238
Merit: 1
|
|
November 09, 2018, 07:38:33 AM |
|
I really like that the owners of the project refused to own a smart code, this is the right approach to business.
This is done to ensure that any investor feels safe to remove unnecessary suspicions:)
|
|
|
|
Dezlife
Jr. Member
Offline
Activity: 168
Merit: 1
|
|
November 09, 2018, 08:53:23 AM |
|
What happens after I receive 200% of my Deposit? Will the payments stop?
|
|
|
|
Loxness
Jr. Member
Offline
Activity: 182
Merit: 2
|
|
November 09, 2018, 10:10:16 AM |
|
What happens after I receive 200% of my Deposit? Will the payments stop?
As soon as you multiply your initial Deposit by 2 times, payments on it stop, but you can still earn more if you make a new Deposit.
|
|
|
|
BrieMiller
Jr. Member
Offline
Activity: 182
Merit: 1
|
|
November 09, 2018, 03:31:13 PM |
|
What happens after I receive 200% of my Deposit? Will the payments stop?
As soon as you multiply your initial Deposit by 2 times, payments on it stop, but you can still earn more if you make a new Deposit. I like this economy, it will not quickly completely exhaust the investment Fund, which is undoubtedly a plus for the project and its investors.
|
|
|
|
AltcoinWire
Newbie
Offline
Activity: 182
Merit: 0
|
|
November 09, 2018, 05:14:40 PM |
|
We invite you to bring your project to our exchange, Altmarkets is a Cryptocurrency 6,000 members and over 100 coins listed. Focusing on lower-tier altcoins we push each coin listing with social media announcements as well as to our growing social channels. Our BCT Announce: https://bitcointalk.org/index.php?topic=4687148.0Discord Channel: https://discord.gg/p4NwBdERequest a listing with us via the above thread / announce post or visit http://www.altmarkets.cc - We aim to reply within 24 - 48 hours.
|
|
|
|
CryptoCot
Jr. Member
Offline
Activity: 224
Merit: 6
|
|
November 09, 2018, 05:19:58 PM |
|
What happens after I receive 200% of my Deposit? Will the payments stop?
As soon as you multiply your initial Deposit by 2 times, payments on it stop, but you can still earn more if you make a new Deposit. I like this economy, it will not quickly completely exhaust the investment Fund, which is undoubtedly a plus for the project and its investors. Do I understand correctly that you see a pyramid-type Ponzi?) Payments to early investors will be made at the expense of new investors? Or will the issue of coins be so great that any increase in the Deposit will reduce the price of the coin proportionally?
|
|
|
|
Lucky-1.61
Newbie
Offline
Activity: 36
Merit: 0
|
|
November 12, 2018, 08:54:02 AM |
|
What happens after I receive 200% of my Deposit? Will the payments stop?
As soon as you multiply your initial Deposit by 2 times, payments on it stop, but you can still earn more if you make a new Deposit. I like this economy, it will not quickly completely exhaust the investment Fund, which is undoubtedly a plus for the project and its investors. Do I understand correctly that you see a pyramid-type Ponzi?) Payments to early investors will be made at the expense of new investors? Or will the issue of coins be so great that any increase in the Deposit will reduce the price of the coin proportionally? That's right, the contract works on the ponzi principle.
|
|
|
|
|