3 ms·
https://github.com/EtherBots/EtherBots/blob/master/CratePreSale.sol#L80 https://github.com/EtherBots/EtherBots/blob/master/CratePreS... That certainly looks to
by gdk 9y ago
https://github.com/EtherBots/EtherBots/blob/master/CratePreSale.sol#L80 https://github.com/EtherBots/EtherBots/blob/master/CratePreS...
That certainly looks to me like the "random" reward is just based on the previous block's hash.
- captn3m0 9y agoMore issues: - Rarities of each part is not encoded in the contract (It just depends on how the application logic decides to decode the uint). They could swap Shadow parts with Gold and the contract doesn't do anything to prevent that > // If 23 (or a multiple of it) is generated, a lamborghini will be awarded Since this is a comment, if 23 is generated, a unit will be generated, which they _promise_ will be a lamborghini. Pinky promise. There is also nothing stopping them from bumping the drop-rates for the final game. They promise 2%, but since this contract is void post the pre-sale, it will have to be a new one and it could have a 80% lamborghini drop rate!
- smarx 9y agoIt's worse than that. They could just throw away all the sales from this contract, since it's not connected to anything. They also failed to verify source code for the contract: https://etherscan.io/address/0x3c7767011C443EfeF2187cf1F2a4c02062da3998#code https://etherscan.io/address/0x3c7767011C443EfeF2187cf1F2a4c..., and the source code on GitHub is missing a file ("Ownable.sol"), making it difficult for anyone else to verify what source code is actually running. I suppose the lack of verified source code doesn't matter, given my first point. People who are buying are placing a lot of trust in the "Fuel Bros Innovation Team."