Templates
Templates are tested contracts that AskHook configures for you instead of writing from scratch. Ask in chat:
Show me the templates
AskHook shows them as a gallery. Each card's Use this button starts it; you can change the numbers in plain words ("a winner every 50 buys", "a 30-minute countdown").
Games
Games pay a pot in HYPE to buyers, by rules anyone can read on-chain. They need to see every buy, so they run as the hook of your own pool, not on a launchpad.
| Template | How it works | You can set |
|---|---|---|
| Nth-buy pot | A share of every buy goes into a pot; every Nth buyer wins the whole pot in the same transaction. | Pot share (default 1%), N (100 buys), smallest buy that counts (0.01 HYPE) |
| Last buyer wins | Each buy adds to the pot and restarts a countdown. When it runs out with no new buy, the last buyer wins. | Pot share (1%), countdown (10 minutes), smallest buy (0.01 HYPE) |
| Biggest buyer wins | Each round, the wallet with the single biggest buy wins that round's pot. | Pot share (1%), round length (60 minutes), smallest buy (0.01 HYPE) |
Good to know:
- Rule-based, not random. Nothing on Elysium can draw a fair random winner on-chain, so every game is decided by rules. The Nth-buy counter is public, so the next winning slot can be raced.
- Only exact-input buys with HYPE count. Sells never pay into a pot.
- The winner is the wallet that sent the buy. A buy made through a smart-contract wallet's bundler may credit the bundler.
- A pot is paid automatically: by the winning buy (Nth-buy pot), or by the next buy or anyone calling
settle()once a countdown or round ends.
On Montra
These plug into a Montra launch's creator fees.
| Template | How it works |
|---|---|
| Buyback and burn | Fees buy the token back in its own pool and burn it. See the recipe. |
| Diamond hands | Holders lock the token to earn the fees in HYPE. No lock earns 1x, 30 days 1.5x, 90 days 2x, 180 days 3x. Holders use the launch's lock page (app.askhook.fun/lock/<contract>) to lock, claim and unlock. |
| Holder rewards | Montra's own option: fees paid to every holder, continuously in HYPE. |
More hooks
| Template | How it works | You can set |
|---|---|---|
| Auto burn on buys | Every buy burns a share of the tokens it buys, inside the swap. | Share burned (default 1%) |
Safety
Every template was tested end to end on a fork of Elysium: the game hooks through the same compile, deploy and launch steps the app runs, and Diamond hands against Montra's live contracts. They are still unaudited, like everything AskHook writes. See Security.