Question about max/min weighting in Balancer pools

Hi,

Just a general question for the Balancer dev team. In the Balancer AMM it uses a maximum/minimum weighting for the tokens which is 0.99/0.01. I wanted to know if there is any particular reason for restricting the weights to those levels and whether it is to do with slippage of the AMM or something else. Like if I wanted to increase the weighting to 0.99999 or something, is there a reason why that can’t be done?

Hello @denizen0687,

Weighted math has some limitations regarding precision. If one of the weights goes too close to fixed-point 1, the other one will be very small, and the math inside the pool will not behave properly.

In our case it doesn’t make any practical sense to go beyond those boundaries; you can probably push it a bit further, but testing is needed to ensure that nothing breaks in the process.

For questions like these feel free to reach the dev channel in our discord.

Cheers,