Closed jubeira closed 1 month ago
Big unbalanced joins and exits are equivalent to swaps, and pools might need to limit them.
Weighted pool in V2 limits invariant ratio and swap sizes. We need a way to do this in V3 that is pool-specific.
For computeBalance it's kinda trivial since we get the invariant ratio as an argument. For computeInvariant we might need to rework BasePoolMath.
computeBalance
computeInvariant
BasePoolMath
Closed via #812
Big unbalanced joins and exits are equivalent to swaps, and pools might need to limit them.
Weighted pool in V2 limits invariant ratio and swap sizes. We need a way to do this in V3 that is pool-specific.
For
computeBalance
it's kinda trivial since we get the invariant ratio as an argument. ForcomputeInvariant
we might need to reworkBasePoolMath
.