The portcullis is still down. Beyond this gate lies the rest of the kingdom, and the road is not open yet.
- King
- Crowning buy
- To take it now
- Earned this reign
The bar melts from the king's buy down to the minimum. Buy more than the bar and the crown is yours, along with every fee that comes in while you wear it.
Buy on Programmable open ↗Simulated in your browser: minimum buy 0.05 ETH, the bar melts over 10 minutes, and villagers buy and sell on a timer so you can watch the crown move.
“The law is short enough to shout across the market.”
- The fees fill the royal purseA share of every swap's fee flows to the crown in WETH. While a king reigns, all of it is his.
- Buy more than the barA buy strictly above the bar takes the crown in the same transaction. Only buys through Uniswap's Universal Router count.
- The bar meltsIt starts at the king's buy and falls in a straight line to the minimum buy. The crown itself never expires.
- A king who sells loses itThe throne stands empty and the fees pile up in the reserve. The next buyer over the minimum takes the crown and the whole pile.
holders live inside the walls. Each villager you see is one wallet. A holder who is on the site with a connected wallet walks for real, address over the head; the rest wander on their own. Click any villager to see the wallet behind it.
There is never a second crown. It is not staked, voted or claimed. It follows the buy, and any of them can wear it by tomorrow.
The monks write down every head that wore the crown, what it paid, what it earned and how it ended.
| King | Buy | Reign | Earned | Fate |
|---|
“No magic. Just a module, and you can read every line.”
The crown runs on the King of the Hill module of Programmable, on a Uniswap v4 pool on Ethereum.
- One crown per token, and a fixed supply of 1,000,000,000.
- The king is the wallet that signed the buy. Buys through bots and aggregators do not count.
- Rewards are paid in the pool's quote token (WETH), never in the token itself.
- Anyone can trigger a payout; the money only goes to the wallet it was recorded for.
- Everything is public on the module:
king()crownBuy()crownThreshold()reserve()owed(wallet)
Module id: programmable.foundation.king-of-the-hill.v1
- Wallet
- Holds
- Share
- Rank
- Holder since
- Crowns worn
- Earned as king
- Still to be paid
Wallet on Etherscan open ↗ Its transfers of this token open ↗ Collect the earnings on Programmable open ↗
What it is
One wallet is king. While it reigns, the crown's whole share of the swap fees is credited to it, in WETH.
Taking the crown
Buy at least the minimum buy and strictly more than the bar. Only buys through Uniswap's Universal Router count, and the king is the wallet that signed the swap. A king can outbid himself, which restarts his bar.
The bar
bar = min + (kingBuy − min) × timeLeft / decay
It starts at the king's buy and falls in a straight line. After the decay time it equals the minimum buy. The crown itself never expires.
Losing it
A bigger buy takes it. A king who sells through the Universal Router gives it up and the throne stands empty. A sale through any other router does not remove the crown.
The empty throne
Fees pile into the reserve. The first buyer at or over the minimum takes the crown and the whole reserve.
Who gets the crowning swap's fees
Fees are counted before the crown moves, so what came in up to that swap goes to the old king.
Getting paid
Earnings sit on the module as owed(wallet). Anyone can trigger pay for up to 16 wallets at once; the WETH only ever goes to the wallet it was recorded for.
Numbers
- Supply: 1,000,000,000, 18 decimals.
- Platform fee 0.30%. Creator fee up to 10%; a set share of it feeds the crown.
- Minimum buy and decay time (1 minute to 30 days) are fixed at launch.
- One King of the Hill module per token.
Read it on-chain
king() crownBuy() crownedAt() crownThreshold() minimumBuy() crownDecaySeconds() reserve() owed(wallet)
Events: CrownChanged, RewardAccrued, RewardPaid.