DOCS
The full specification of the wheel in one place: what it takes from Montra as given, how the coin is launched, what the contract stores, every formula and constant, and what it depends on.
EVERYTHING ON THIS PAGE IS A RULE OR A CONSTANT.
MONTRA, AS THE WHEEL USES IT
Montra launches a coin in one transaction. The whole supply goes into a Uniswap v4 pool as one position that no function can remove, and trading starts in that pool from the first block. There is no curve to graduate from and no migration.
Every trade pays one fee, the same on buys and sells, in the pair asset. The creator chooses the total from a short list. Montra's part is 0.4% at every level and the rest follows the creator fee route.
The route can be the creator, another address, a split of two to four addresses, or the coin's holders. A holder route is permanent. The creator can lower the fee later and can never raise it.
Anyone can add liquidity to a Montra pool beside the locked position. Sells cannot push a pool below its opening tick. Montra marks two levels on every pool, a graduation mark at 16.8 times the opening price and an LP line at 142.6 times, and neither changes the pool's liquidity.
MONTRA FEE LEVELS
| TOTAL FEE | MONTRA | CREATOR ROUTE |
|---|---|---|
| 1% | 0.4% | 0.6% |
| 2% | 0.4% | 1.6% |
| 3% | 0.4% | 2.6% |
| 5% | 0.4% | 4.6% |
| 10% | 0.4% | 9.6% |
LAUNCH SETTINGS
These are the values the wheel contract sends to Montra's launcher. They are fixed in the contract's code and are not chosen by a person at launch.
SETTINGS SENT TO THE LAUNCHER
| SETTING | VALUE |
|---|---|
| Creator | the wheel contract |
| Supply | 1,000,000,000 |
| Pair asset | HYPE |
| Total fee | 3% |
| Creator fee route | one address, the wheel contract |
| First buy by the creator | none |
| Coins held back for a team | none |
Because the wheel is the creator, there is no creator wallet holding supply, and no wallet that the fee route or the fee level could later be changed from.
THE CONTRACT
The wheel is one contract on Elysium, chain id 99901. It has no owner, no roles, no pause and no proxy. It holds HYPE, positions in up to sixteen other coins, and one liquidity position.
FUNCTIONS ANYONE CAN CALL
| FUNCTION | WHAT IT DOES |
|---|---|
| turn() | runs one turn and pays the caller 0.5% of the HYPE collected |
| mount(poolId) | nominates a Montra pool; if it passes every check it takes a stand place |
| wheel() | returns angular velocity, direction, rim mass, inertia, hub balance, fee step and turn count |
| spokes() | returns the twelve spoke places with coin, tension, HYPE collected and score |
| stand() | returns the four stand places with coin, tension, HYPE collected and turns served |
| recent(n) | returns the last n turns as recorded |
There are no other functions that change state. In particular there is no withdraw, no sweep, no setter for any constant and no function that removes rim liquidity.
STATE
WHAT THE CONTRACT STORES
| NAME | MEANING |
|---|---|
| omega | angular velocity, a signed number from −1 to +1 |
| lastTick | the pool's tick at the end of the last turn |
| openTick | the pool's tick at launch |
| rimMass | total MONTRA ever added to the rim |
| feeStep | 0, 1 or 2, for the 3%, 2% and 1% fee |
| turnCount | number of turns so far |
| hub | HYPE held, read from the contract's balance |
| spoke[12] | coin, tension, HYPE collected in the score window, turn mounted |
| stand[4] | coin, tension, HYPE collected in the trial, turn placed |
| carry | small remainders of the coin or MONTRA left over from a rim add |
ONE TURN
The steps always run in the same order, and a failure in an optional step does not stop the ones after it. If a spoke sale or a stand sale reverts, that sale is skipped. If a buy would exceed a pool's tick limit, it is cut down. Collecting, paying the caller, blending and storing the tick always happen.
ORDER OF A TURN
| STEP | DETAIL |
|---|---|
| Collect | creator fee of the coin's pool, in HYPE; this amount is F |
| Collect spokes | holder rewards on each spoke and stand coin, in HYPE, added to their collected totals |
| Collect rim | rim fees in the coin and MONTRA, added back to the position; MONTRA added counts toward rim mass |
| Pay caller | 0.5% of the HYPE collected in the first two steps |
| Read | tick and in range liquidity of the coin's pool; k is derived from them |
| Blend | V, g, d, I and a are computed and omega is updated |
| Spend | forward, reverse, deep reverse or stalled, by the new omega |
| Judge | each stand coin at 64 turns is scored against the weakest spoke |
| Step | if rim mass has reached a mark, the wheel lowers the pool fee one level |
| Store | lastTick is set to the pool's tick now; a record of the turn is emitted |
FORMULAS
c is 0.026 at fee step 0, 0.016 at fee step 1 and 0.006 at fee step 2. k is the HYPE needed to move the coin's pool by one tick at its current in range liquidity.
The forward spend is divided 55% to the rim, 36% to the lowest tension spoke and 9% to the lowest tension stand coin. The rim's 55% is divided evenly between buying MONTRA and buying the coin. The reverse spend is used whole to buy the coin, and what is bought is sent to the dead address.
CONSTANTS
EVERY CONSTANT IN THE CONTRACT
| CONSTANT | VALUE |
|---|---|
| Caller share of intake | 0.5% |
| Base inertia | 0.25 |
| MONTRA per unit of inertia | 100,000 |
| Forward at or above | +0.20 |
| Reverse at or below | −0.20 |
| Deep reverse at or below | −0.60 |
| Rim share of a forward spend | 55% |
| Spoke share of a forward spend | 36% |
| Stand share of a forward spend | 9% |
| Spoke places | 12 |
| Stand places | 4 |
| Trial length and score window | 64 turns |
| Most a spoke or stand buy may move its pool | 100 ticks |
| Most a burn buy may move the coin's pool | 150 ticks |
| Rim pool fee | 0.30% |
| Rim pool tick spacing | 60 |
| Fee step to 2% at rim mass | 250,000 MONTRA |
| Fee step to 1% at rim mass | 1,000,000 MONTRA |
| Ticks in one revolution | 6,932 |
EVENTS
Each turn emits one record. Everything a reader needs to check the wheel's behaviour against the rules on this site is in that record.
FIELDS OF A TURN RECORD
| FIELD | MEANING |
|---|---|
| turn | the turn's number |
| caller | the account that called |
| fee | creator fee collected, F |
| rewards | holder rewards collected |
| callerPaid | HYPE sent to the caller |
| tickBefore | tick read at the start |
| reading | d |
| weight | a |
| omega | angular velocity after the blend |
| direction | forward, stalled, reverse or deep reverse |
| rimMontra | MONTRA added to the rim this turn |
| rimCoin | amount of the coin added to the rim this turn |
| spokeBought | place and HYPE spent, if any |
| standBought | place and HYPE spent, if any |
| burned | amount of the coin sent to the dead address |
| spokeSold | place and HYPE received, if any |
| feeStep | fee step after the turn |
| tickAfter | tick stored for the next turn |
Two smaller records exist beside it. Mounted is emitted when a coin takes a stand place or a spoke place, and Dismounted when a position is sold, each with the coin, the place and the HYPE involved.
REVOLUTIONS
A tick in a Uniswap pool is a price step of one hundredth of one percent. 6,932 of them multiply the price by two. The wheel uses that as its revolution, so the angle of the wheel is a way of reading how many times the price has doubled since the opening tick.
PRICE, TICKS AND REVOLUTIONS
| PRICE AGAINST THE OPENING PRICE | TICKS ABOVE THE OPENING TICK | REVOLUTIONS |
|---|---|---|
| ×2 | 6,932 | 1.000 |
| ×4 | 13,864 | 2.000 |
| ×8 | 20,795 | 3.000 |
| ×16 | 27,727 | 4.000 |
| ×16.8, graduation mark | 28,215 | 4.070 |
| ×32 | 34,659 | 5.000 |
| ×64 | 41,591 | 6.000 |
| ×128 | 48,523 | 7.000 |
| ×142.6, LP line | 49,603 | 7.156 |
| ×256 | 55,455 | 8.000 |
Past the LP line Montra can switch on a separate fee for liquidity providers in the pool. The wheel does not depend on it and none of its rules read it.
WHAT THE CONTRACT DEPENDS ON
The wheel is built on top of Montra and can only do what Montra's contracts allow. These are the behaviours it relies on.
BEHAVIOURS OF MONTRA THE WHEEL RELIES ON
| BEHAVIOUR | USED FOR |
|---|---|
| A contract can launch a coin and be its creator | putting the fee route and the fee level under the wheel's rules |
| The creator fee can be routed to one address | filling the hub |
| The creator can lower the fee and cannot raise it | the two fee steps |
| A holder route pays every holder by balance, contracts included | the spokes |
| A pool's route and stage can be read on chain | the checks in mount |
| Outside accounts can trade any Montra pool through the pool manager | buying and selling spokes, buying the coin |
| Sells cannot cross below the opening tick | the dial never going under zero |
If Montra changes any of these, the part of the wheel that depends on it stops working and the rest carries on. A wheel that cannot buy spokes still builds rim and still burns in reverse.
WHAT THE WHEEL DOES NOT DO
It does not pay holders. It does not stake anything. It does not vote, vest, lock or unlock. It does not bridge. It does not hold a stable asset. It does not sell montrawheel's coin under any rule.
It does not act on a schedule and does not need one. If trading stops, turns stop, and the wheel sits exactly as it was left: the same angular velocity, the same hub balance, the same spokes, the same rim.
It does not predict anything. Angular velocity is a description of what the pool has already done, smoothed by the weight of the rim.
RISKS
The contract is new and unaudited code on a new chain. A flaw in it could lock or lose what it holds, and with no owner there is nobody who could step in.
Montra's hook is not the wheel's code. The wheel depends on it behaving as it does today.
Spoke and stand coins are small coins. They can lose most of their value quickly, their rewards depend entirely on their own trading, and a position may not be sellable when the wheel wants to sell it.
MONTRA is one asset. The rim is half MONTRA by construction, and the triangle that feeds the hub also exposes the rim to every move in MONTRA's price.
Forward turns buy the coin while it is rising and reverse turns buy it while it is falling. The wheel never sells it. That does not mean the price cannot fall. It means the wheel will keep spending what it has until it has nothing left to spend.