How Tempo works
One contract holds every plan's HYPE and runs each buy in the coin's own pool. This is all of what it does.
A plan
A plan names a coin (by its pool), how much HYPE each buy spends, the interval between buys (15 minutes at the shortest) and how many buys there are. You deposit the whole plan at once: each buy × buys.
Optionally you set a highest price, shown in the app as a market cap. A buy that would pay more waits for the next interval; the HYPE stays in the plan.
A buy
When a buy is due, the keeper calls execute(id, minOut). The contract swaps each buy − 0.3% HYPE for the coin, exact input, in the plan's pool, measures what arrived, checks it against the keeper's floor and your ceiling, and sends the coins to your wallet in the same transaction.
The keeper sets its floor 2% under what a dry run of the same buy returns a moment earlier, so a buy can't fill far from the price it just read.
Why only the keeper
If anyone could run buys, someone could push a pool's price up, trigger your buy into it and sell back. Only the keeper named by the owner can call execute. It has no other rights: it can't change a plan or touch its HYPE. If it stops, buys stop and your HYPE waits for you to cancel.
Cancelling
cancel(id), by the plan's owner, sends back every HYPE not spent yet (each buy × buys left) and closes the plan. There is no lock and no fee.
Pools
Uniswap v4 pools on Elysium's pool manager with any hook (Montra, Ascend, Volta, Kleos and the rest) and HYPE pools on KleosSwap, ElysPump and Stockium v3. A v4 pool must exist in the manager; a v3 pool must be the one its factory returns. HYPE can be native or either wrapped HYPE.
Fees
| Starting, cancelling | 0 |
| Each buy | 0.3% of the HYPE it spends: half to the keeper for gas, half to the treasury |
| Pool fee | Whatever the pool charges, as on any swap |
Safeguards
- No owner on funds. The owner can only add pool managers, v3 factories and wrapped HYPE, and name the keeper.
- Payment caps. During a buy the pool can be paid at most that buy's HYPE, and only that pool can call back.
- Not audited. Tested on forks of Elysium against real pools of every venue above.
Contract
| Tempo plans | Published at launch |
| Keeper | - |
| Treasury | - |
Elysium, chain id 99901.