THE MECHANICS OF GAMUT
A different approach
to market making.
Gamut is an algorithmic AMM on Kava focused on volatile assets. Its design connects liquidity, trading activity and pool-weight adjustments in one market-making system.
Asset swaps
A swap exchanges one asset for another through a liquidity pool. Instead of matching a trader with an order from another person, the AMM uses the pool’s token balances and pricing rules to determine the exchange.
Gamut uses a weighted-pool model. The balances, relative weights and swap fee are part of the calculation. A trade changes the composition of the pool and contributes to the next state of the market.
Liquidity provision
Liquidity providers supply the assets that traders exchange. Joining a pool contributes tokens under that pool’s rules, while a pool token represents the provider’s position. Exiting redeems a position for the corresponding assets.
Trading fees are part of the economic relationship between traders and liquidity providers. Actual outcomes depend on pool settings, trading activity and asset prices; a position’s value can fall as well as rise.
Liquidity is a market position
Providing liquidity changes how you are exposed to the underlying assets. Review the pool’s assets, weights, fees and contract controls before interacting with it.
Dynamic pool weights
A pool’s weights describe the relative influence of its assets in the pricing model. An equal-weight pool is one configuration. Different weights change how the pool responds as its balances move.
Gamut’s design incorporates adjustments to asset weights in response to trading activity. Trade size and direction influence the adjustment, which in turn affects internal pricing and opportunities for arbitrage.
This approach is intended to improve capital efficiency and reduce the impact of impermanent loss. It does not eliminate market risk or guarantee a particular financial outcome.
Explore allocation weightsThe market-making cycle
Pool creation
A pool is established with its assets and starting configuration. Initial liquidity supplies the balances used for trading.
Trade
A trader exchanges tokens through the pool, changing its asset balances.
Weight adjustment
The algorithm adjusts the relative asset weights according to the trade’s size and direction.
Arbitrage
Price differences create an incentive for arbitrageurs to trade, helping bring pool prices toward external market prices.
The architecture behind the exchange
Gamut’s smart-contract system separates pool creation, routing, asset accounting and pricing. The contract names below also appear in EtherAuthority’s review.
Factory
Creates pool contracts and connects the protocol’s pool configuration.
Pool & pool token
Define the market’s settings and the token representing a liquidity position.
Router & vault
Coordinate interactions and the accounting used by swaps, joins and exits.
Weighted math
Provides the mathematical logic for balances, weights and pool calculations.
The contracts include administrative controls. For a closer look at the audit’s scope and these controls, read the security overview.
Explore the source
Review the implementation in the Gamut smart-contract repository and the Gamut interface repository.
For project conversations, visit Gamut Exchange on X.