♾️Maximum Token Balance
In order to efficiently implement the oracle mechanism, MTVSwap only supports reserve balances of up to 2112 − 1. This number is high enough to support 18-decimal-place tokens with a total supply over 1 quadrillion.
If either reserve balance does go above 2112 − 1, any call to the swap function will begin to fail (due to a check in the _update() function). To recover from this situation, any user can call the skim() function to remove excess assets from the liquidity pool.
Last updated