CryptoPonzi
CryptoPonzi copied to clipboard
bugs when someone sends invalid values
The ponzi was breaking everytime someone sent values above the top limit. At first it wouldn't display anything, then, when i added checks for null/undefined fields. the values where all wrong. Figured out that the "amount" for those guys was accounted for, but not the "topay", which is always 0. I now ignore both.
But that's the correct behaviour. Transactions with values under minimum or over maximum are treated as a donation.
I don't think you understand. This is not the current behaviour. The javascript for the system stops working whenever one of those "donations" occur, because the it tries to manipulate a null value. The code i submited fixes this bug. Check it out.
Okay, but can you at least rename new variables in index.php? 'tmp20140808' doesn't look very good.