balancer / b-sdk

MIT License
13 stars 6 forks source link

Price Impact fails when input has too many decimals #326

Open brunoguerios opened 1 month ago

brunoguerios commented 1 month ago

See details in this FE PR

In summary: using proportional inputs to calculate price impact on Add Liquidity Unbalanced with 18 decimals is causing Price Impact code to fail

We should investigate and prevent that from happening

brunoguerios commented 1 month ago

Hey @abhinavk454 👋 Thanks for your interest, but we're handling these tasks internally for now. We'll reach out in case that changes in the future. Cheers!