Page cover

Maximum token balance

3.7 Maximum token balance

In order to efficiently implement the oracle mechanism, DEX Raiden v1.1 only support reserve balances of up to 2(112) − 1.

This number is high enough to support 18-decimal-place tokens with a totalSupply over 1 quadrillion. If either reserve balance does go above 2(112) − 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