Mathematical Overview
Last updated
Last updated
Kubo prices all trades via an AMM. Trades are accepted if they increase the market maker’s utility (possibly after some fee margin). The market maker’s utility function is the expected utility of its holdings evaluated at a price 4 hours in the future. Letting represent a function that produces the market maker’s wealth at a specific price, we have:
We use a negative reciprocal utility (a barrier function). Barrier utility functions in automated market-making were initially introduced by Othman and Sandholm 2012 (note: Othman was a core contributor to Kubo), building on the work of Chen and Pennock 2007:
The positive homogeneous invariant corresponding to this utility function is simply the negative reciprocal itself:
Changes in the invariant function are used to calculate the issuance of LP tokens. Because the invariant function is positive homogeneous, a user whose LP contribution doubles the market maker’s wealth in all future price states would be issued LP tokens worth half of the resulting market.
The Gauss-Hermite quadrature and the volatility of the individual underlying asset determine the set of points p used to calculate the future price and their probabilities.