Some other interesting features on the smart contract made getting the treasure take a little time. There’s a 3-day waiting period between games. And a limit on how much of each portion can be won.
There’s lots of buried treasure just waiting to be found.
#ethereum#mev
[14]
If a treasure hunter could somehow know these blockhashes would not work in their favor, they could just wait for 256 blocks and try again. (How this is done is for another time.)
[13]
The only problem is that the blockhashes have a 256 block shelf-life. If the tickets are not drawn before 256 blocks go by, the blockhash won’t work. So you have to pick another set of blocks and try again.
[12]
In Megaball when a round is being finalized the contract picks several block numbers in the future that will determine blockhashes which will be used to pick the winners of the lottery and raffle.
[11]
One way to do this was to use the blockhash of a future block. This makes a lot of sense because a player can not know what the blockhash will be of a future block when they place their bet or buy a lottery ticket.
[10]
The Ethereum blockchain is a large distributed computer. Everything that comes out of this system is deterministic. It has to be. So for a while, smart contract programmers found ways to get practical pseudo random numbers when they need them for games or lotteries.
[9]
When a round is finalized one of the players is randomly chosen to receive some amount of the raffle portion and possibly some amount of the lottery portion.
But if it is random how can we get extract this treasure? Let’s talk about randomness on the blockchain.
[8]
If you look in the code you’ll find that buying a ticket that actually wins is very unlikely. You’ll also see there’s something else going on in there. There’s a separate raffle that happens with every round.
[7]
Another thing Etherscan can show you is the actual source code that makes up the contract. If the deployer of the contract chooses to do so they can reveal the source code they used to make the smart contract.
[6]
23 ETH were still in this contract. Just sitting there. For 4 years. Until a treasure hunter found something interesting in this abandoned vessel.
When the lottery was first made the ETH in the contract was worth about $3,000. At the end of 2023 it was closer to $39,000.
[5]
This seems to have soured the players on this particular game.
All of this can be known because everything that happens on the blockchain stays there forever and can be viewed through tools like Etherscan which let you look at any transactions on Ethereum all the way back.
[4]
The player chooses 6 numbers (0��68) and buys a ticket for the current round. At some point the round is finalized and a lucky winner may be able to win a portion of the jackpot.
But the odds were quite high against a jackpot win. Much like the real lottery.
[3]
The Megaball smart contract had been untouched for over 4 years.
In 2019 someone created a lottery contract on Ethereum and had a few players try it out. The game worked something like a real lottery.
[2]
MEGABALL LONGTAIL EXTRACTION
The following is an example of a longtail opportunity on Ethereum for extracting significant value that
has been sitting idle for years.
[1]