Introduction
Lair is a dungeon you own by holding a coin. Every 500,000 LAIR in your wallet is one mob standing in a torchlit corridor. Heroes walk in from daylight, your mobs fold them, and whatever the heroes were carrying lands in your pile as loot.
You never connect a wallet to play. The lair reads your balance, spawns the mobs and keeps them on the floor while you hold. This page covers the rules, the numbers and the small module that holds both.
Quick start
- Buy at least 500,000 LAIR. That's one mob. 3,000,000 fills all six slots.
- Pick a kind for each slot. Slime, Skeleton, Goblin and Bat are open from the start.
- Let the heroes come. Loot piles up by the chest whether you watch or not.
- Press Exchange to turn the pile into LAIR. Once a minute, any amount.
Holding more than 3,000,000 doesn't add mobs past six. The overflow becomes a loot multiplier, up to x66 at 30,000,000.
How the lair works
Every wave the corridor fills with heroes. Each hero walks until the first mob that is still standing, then trades hits with it. Every mob in range hits the hero back. Ranged kinds like the Bat, Lich and Wraith reach further down the hall.
Mobs don't die. A mob at zero takes a three second nap and comes back at full health. Heroes do die, and drop loot when they do. If every mob is napping at once, a hero can reach the chest and run off with 10% of the pile plus five. That's the only way to lose anything.
| Event | What happens |
|---|---|
| Hero reaches a mob | Hero hits the front mob every 0.9 s, mobs in range hit back every 1.1 s |
| Mob at 0 HP | Naps for 3 s, returns at full HP |
| Hero at 0 HP | Drops loot × multiplier into the pile |
| Hero reaches the chest | Takes ceil(pile × 0.1) + 5, leaves |
| You poke a hero | 4 damage, on top of whatever your mobs are doing |
Mobs and kinds
One mob per 500,000 LAIR, six on the floor at most. Each mob is an NFT in your wallet. Its level, tricks and scars go with it when it is sold or sent, so a veteran Skeleton stays a veteran in somebody else's corridor.
| Kind | HP | Damage | Range | Unlocks |
|---|---|---|---|---|
| Slime | 14 | 2 | 14 | From the start |
| Skeleton | 12 | 3 | 14 | From the start |
| Goblin | 10 | 4 | 14 | From the start |
| Bat | 8 | 2 | 50 | From the start |
| Mimic | 20 | 5 | 14 | Knight Captain raid |
| Lich | 10 | 4 | 70 | Archmage raid |
| Ogre | 26 | 6 | 16 | Paladin raid |
| Wraith | 12 | 4 | 40 | Saint raid |
Drop under 500,000 LAIR and your last mob goes back into the dark. It keeps its level and comes back exactly as it was when you buy back in.
Heroes and raids
Four kinds of hero walk the corridor, each carrying a different amount of loot. Three floors are open, twelve waves each, and every floor ends in a raid: one named hero with a cape, more HP and a grudge. Beating a raid unlocks a new kind as a free extra NFT.
| Hero | HP | Damage | Loot |
|---|---|---|---|
| Knight | 40 | 3 | 30 |
| Archer | 24 | 2 | 18 |
| Wizard | 22 | 4 | 26 |
| Priest | 30 | 1 | 20 |
Loot and grades
Besides the pile, heroes drop items. An item is fully described by a seed: the same seed always gives the same grade, slot, name, stats and mods. Ten grades, each 20% more base than the one under it, with more lines and more sockets as you climb.
| # | Grade | Base | Sockets |
|---|---|---|---|
| 0 | Rusty | x1.00 | 0 |
| 1 | Dented | x1.20 | 0 |
| 2 | Polished | x1.44 | 0 |
| 3 | Blessed | x1.73 | 1 |
| 4 | Gilded | x2.07 | 1 |
| 5 | Heroic | x2.49 | 1 |
| 6 | Legendary | x2.99 | 2 |
| 7 | Mythic | x3.58 | 2 |
| 8 | Ancestral | x4.30 | 2 |
| 9 | Heirloom | x5.16 | 3 |
Merging
Nine items of one grade make one item of the next. The new item's seed is built from the nine seeds joined with |, so a merge is as reproducible as a drop. Heirloom is the ceiling.
The exchange
The exchange quotes the price of 1,000 loot in LAIR, read live from the lair pools. You can exchange any amount, once a minute. The pools fill from every buy, so the busier the cave, the deeper the exchange.
import { quote } from "https://lairsol.vercel.app/lib/lair.js"; // 2,400 loot at 232.2 LAIR per 1,000 loot quote(2400, 232.2); // → { loot: 2400, lair: 557.28 }
# Price of LAIR in the pool, once the coin is live curl -s https://api.dexscreener.com/latest/dex/tokens/$CA \ | jq '.pairs[0].priceUsd'
Keepers
A keeper is any wallet holding 500,000 LAIR or more. The home page reads the 20 largest token accounts straight from a public Solana RPC and shows the top three, with their share of supply and how many mobs that buys.
curl -s https://solana-rpc.publicnode.com -H 'content-type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"getTokenLargestAccounts","params":["'$CA'"]}'
import { mobsFor } from "https://lairsol.vercel.app/lib/lair.js"; const r = await fetch("https://solana-rpc.publicnode.com", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "getTokenLargestAccounts", params: [CA] }) }).then(r => r.json()); r.result.value.map(a => ({ account: a.address, ...mobsFor(a.uiAmount) }));
lib/lair.js
Every rule on this page lives in one small ES module served by the site. No package to install, import it straight from the address.
import { mobsFor, rollLoot, merge, lootFrom } from "https://lairsol.vercel.app/lib/lair.js"; mobsFor(30000000); // → { units: 60, mobs: 6, lootMultiplier: 66, nextMobAt: 30500000 } lootFrom("knight", 3000000); // → 30 rollLoot("wave-12/knight-3").name; // → same item, every time, for this seed
<script type="module"> import { mobsFor } from "https://lairsol.vercel.app/lib/lair.js"; document.body.textContent = mobsFor(3000000).mobs + " mobs"; </script>
| Export | Returns |
|---|---|
mobsFor(balance) | { units, mobs, lootMultiplier, nextMobAt } |
lootFrom(heroId, balance) | Loot one hero drops for this balance |
rollLoot(seed) | One item: grade, slot, name, stats, mods, sockets |
merge(items) | One item of the next grade from exactly nine |
quote(loot, pricePer1000) | { loot, lair } |
KINDS, HEROES, GRADES | The tables on this page, as data |
UNIT, SLOTS, EXCHANGE_COOLDOWN | 500000, 6, 60 |
Try it
This runs the real module in your browser.
Press a button.
Spec and formats
Mob metadata
{
"name": "Skeleton #0412",
"kind": "skeleton",
"level": 112,
"tricks": ["rattle", "reassemble"],
"scars": { "heroesFolded": 418, "naps": 97 },
"floor": 2
}
Numbers
| Constant | Value |
|---|---|
| LAIR per mob | 500,000 |
| Mobs on the floor | 6 |
| Loot multiplier past 6 units | round(units × 1.1) |
| Mob nap | 3 s |
| Hero theft at the chest | ceil(pile × 0.1) + 5 |
| Exchange cooldown | 60 s |
| Merge | 9 → 1, next grade |
Limits
- Six mobs on the floor, no matter how big the bag. Past that, it's the multiplier.
- The exchange quotes from the pools. A thin pool means a worse quote, there is no hidden bank under the cave.
- The home page shows the top 20 token accounts, not owners. One person with two accounts shows up twice.
- The corridor on the home page plays in your browser. Its pile and exchange are a taste of the floor, not your wallet.
$LAIR
No tax, liquidity burned when the curve fills, mint and freeze authority gone.
FAQ
Do I need to connect a wallet?
No. The lair reads balances from the chain. Holding is the whole login.
Can my mob die?
No. It naps for three seconds and gets back up. Heroes don't get that deal.
What happens if I sell?
Under 500,000 your last mob goes back into the dark with its level intact. Buy back and it climbs out again.
Why can't I have more than six mobs?
The corridor is only so wide. Every 500,000 past 3,000,000 goes into the loot multiplier instead.