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 FEEMONTRACREATOR 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

SETTINGVALUE
Creatorthe wheel contract
Supply1,000,000,000
Pair assetHYPE
Total fee3%
Creator fee routeone address, the wheel contract
First buy by the creatornone
Coins held back for a teamnone

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

FUNCTIONWHAT 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

NAMEMEANING
omegaangular velocity, a signed number from −1 to +1
lastTickthe pool's tick at the end of the last turn
openTickthe pool's tick at launch
rimMasstotal MONTRA ever added to the rim
feeStep0, 1 or 2, for the 3%, 2% and 1% fee
turnCountnumber of turns so far
hubHYPE 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
carrysmall 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

STEPDETAIL
Collectcreator fee of the coin's pool, in HYPE; this amount is F
Collect spokesholder rewards on each spoke and stand coin, in HYPE, added to their collected totals
Collect rimrim fees in the coin and MONTRA, added back to the position; MONTRA added counts toward rim mass
Pay caller0.5% of the HYPE collected in the first two steps
Readtick and in range liquidity of the coin's pool; k is derived from them
BlendV, g, d, I and a are computed and omega is updated
Spendforward, reverse, deep reverse or stalled, by the new omega
Judgeeach stand coin at 64 turns is scored against the weakest spoke
Stepif rim mass has reached a mark, the wheel lowers the pool fee one level
StorelastTick is set to the pool's tick now; a record of the turn is emitted

FORMULAS

intake = F + rewards
caller = 0.005 × intake
spend = hub balance after the caller is paid
V = F / c
g = V / k
d = clamp( ( tick − lastTick ) / g, −1, +1 )
I = 0.25 + rimMass / 100,000
a = F / ( F + I )
omega' = omega + a × ( d − omega )
score = HYPE collected over the last 64 turns / tension
angle = ( tick − openTick ) / 6,932 revolutions

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

CONSTANTVALUE
Caller share of intake0.5%
Base inertia0.25
MONTRA per unit of inertia100,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 spend55%
Spoke share of a forward spend36%
Stand share of a forward spend9%
Spoke places12
Stand places4
Trial length and score window64 turns
Most a spoke or stand buy may move its pool100 ticks
Most a burn buy may move the coin's pool150 ticks
Rim pool fee0.30%
Rim pool tick spacing60
Fee step to 2% at rim mass250,000 MONTRA
Fee step to 1% at rim mass1,000,000 MONTRA
Ticks in one revolution6,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

FIELDMEANING
turnthe turn's number
callerthe account that called
feecreator fee collected, F
rewardsholder rewards collected
callerPaidHYPE sent to the caller
tickBeforetick read at the start
readingd
weighta
omegaangular velocity after the blend
directionforward, stalled, reverse or deep reverse
rimMontraMONTRA added to the rim this turn
rimCoinamount of the coin added to the rim this turn
spokeBoughtplace and HYPE spent, if any
standBoughtplace and HYPE spent, if any
burnedamount of the coin sent to the dead address
spokeSoldplace and HYPE received, if any
feeStepfee step after the turn
tickAftertick 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.

0×11×22×43×84×165×326×647×1288×256graduation, ×16.8LP line, ×142.6opening ticksells stop hererevolutions of the wheelprice in revolutions
Montra's two marks for every pool, placed on the wheel's own scale.

PRICE, TICKS AND REVOLUTIONS

PRICE AGAINST THE OPENING PRICETICKS ABOVE THE OPENING TICKREVOLUTIONS
×26,9321.000
×413,8642.000
×820,7953.000
×1627,7274.000
×16.8, graduation mark28,2154.070
×3234,6595.000
×6441,5916.000
×12848,5237.000
×142.6, LP line49,6037.156
×25655,4558.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

BEHAVIOURUSED FOR
A contract can launch a coin and be its creatorputting the fee route and the fee level under the wheel's rules
The creator fee can be routed to one addressfilling the hub
The creator can lower the fee and cannot raise itthe two fee steps
A holder route pays every holder by balance, contracts includedthe spokes
A pool's route and stage can be read on chainthe checks in mount
Outside accounts can trade any Montra pool through the pool managerbuying and selling spokes, buying the coin
Sells cannot cross below the opening tickthe 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.