Back to Home

Fomo3dAirdropSniper

0x672955d48821...77f77ee639d3
ByzantiumSource VerifiedEdit this contract
Deployed September 16, 2018 (7 years ago)Block 6,342,780

September 2018 FoMo3D airdrop sniper: spawns a throwaway contract that buys keys in a loop for as long as the airdrop pot stays above a threshold the caller sets.

Byzantium EraVerified Source

Historical Significance

This is the second generation of FoMo3D bot, and the difference from the first is the arithmetic. The earlier bots created one disposable buyer per attempt and left the operator to decide when to fire. This one moves the decision into the contract and expresses it as a threshold, then loops inside a single transaction until the threshold is crossed. The operator supplies a number, not a strategy.

It also generalises. The game address is a parameter rather than a constant, so the same factory works against any clone exposing airDropPot_, buyXid and withdraw, and there were many by September 2018. What the code records is a market in which the game contracts were disposable and the tooling that farmed them was not.

Key Facts
Deployment Block
6,342,780
Deployment Date
Sep 16, 2018, 02:33 PM
Code Size
771.0 B

Description

The deployed code is a factory. Its one function, newContract, takes a game address, an affiliate id, a team number and a minimum pot size, and creates a second contract with the ether the call carried. The child's creation code is embedded verbatim in the factory's own bytecode and copied out with CODECOPY.

The child never becomes a live contract. Its entire behaviour is in the constructor, and it is a loop. It reads airDropPot_ on the game, and while that value is above the minimum the caller passed, it buys: buyXid with the given affiliate and team, or a bare value transfer when the affiliate id is zero, which is how the game's fallback accepts a purchase with no referrer. After each buy it calls withdraw to collect anything won, then checks the pot again. When the pot finally drops below the threshold the constructor calls selfdestruct and sends everything to a fixed address written into the code.

That loop is the whole idea. FoMo3D drew its airdrop from a hash that changed with every qualifying purchase, so repeating the buy inside one transaction is a repeated draw. Exiting when the pot falls below a floor is the exit condition of a sniper rather than a gambler: it keeps going while the prize is worth the gas and stops the moment it is not.

Source Verified

Solidityeh_crack_source_verified
Compiler: v0.4.24

Bytecode Overview

Opcodes771
Unique Opcodes116
Jump Instructions37
Storage Operations1

External Links

Related contracts