project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

King of the Flow

A competitive king-of-the-hill-style bidding game on Flow EVM, burning staked liquidity.

King of the Flow

Created At

ETHGlobal Cannes

Project Description

King of the Flow is a decentralized "King-of-the-Hill" game built on Flow for ETHGlobal Cannes. Players bid using stFLOW, a staking derivative token that represents staked FLOW and generates yield (~9.75% APY). Each bid resets a countdown timer randomly between 1 and 5 minutes using Flow’s native Verifiable Random Function (VRF), ensuring fairness and unpredictability. When the timer hits zero, the last bidder wins a prize pool comprising accumulated bids.

The game uniquely strengthens Flow network health: 10% of every bid and an additional 20% of the final pot are permanently burned, locking liquidity and increasing staking stability. Each round incentivizes community engagement while progressively enhancing protocol security through continuous liquidity locking.

How it's Made

The project was built using Solidity (v0.8.20) and deployed on Flow’s Ethereum Virtual Machine environment, allowing easy integration of Solidity smart contracts. Key libraries used include OpenZeppelin’s SafeERC20, Ownable, and ReentrancyGuard for robust security.

A notable integration was Flow’s native Cadence Arch precompile for randomness, providing secure, verifiable, and fully on-chain random number generation without relying on external oracles. This was essential for more dynamically and fairly resetting the countdown timer after each bid.

The token used, stFLOW, is an interest-bearing staking derivative from Increment Finance. By burning portions of this token, the game uniquely contributes to the Flow blockchain’s stability.

For the frontend our plan was to integrate interactive 3D graphics using Spline's 3D runtime commanded directly from Next.js, which we showcased in a pixellated-style interactive banner containing the logo, but didn't implement for the rest of the interface (~5 extra hours could've helped to integrate this further for all other UI elements as well).

Some generative AI was used as well: a part from writing portions of the code, we generated the assets, including the logo and the mascotte cat, which was generated, then animated and finally segmented for cropping using Meta's SAM 2 segmentation model.

background image mobile

Join the mailing list

Get the latest news and updates