balancer / frontend-monorepo

Balancer frontend apps and packages. Includes the official Balancer web application.
https://balancer.fi
MIT License
8 stars 2 forks source link

Disable single-sided adds #86

Closed garethfuller closed 1 month ago

garethfuller commented 1 month ago

The single asset join does not work when the single asset is > 25% of the pool liquidity. Detect this case, block single join and show a warning with a clear explanation.

If single asset join AND input > 25% of pool's token balance

Block action Show warning "You can only add up to 25% of a single asset to the pool in one transaction"