PrimeDAO / prime-launch-dapp

https://launch.prime.xyz
6 stars 13 forks source link

Feedback reason for blank input on large numbers #420

Open dkent600 opened 3 years ago

dkent600 commented 3 years ago

When entering large numbers in the LBP Dashboard form, with a non-Lbp funding token, SOR will return a blank value for the estimated number of purchasable project tokens. Discover why and feed back appropriately to the user.

dkent600 commented 3 years ago

Hoping to save time, I have posed the question to Balancer.

dkent600 commented 3 years ago

See also: https://github.com/PrimeDAO/prime-launch-dapp/issues/434

The behavior happens when the amount of project tokens exceeds the "total capacity of the pools" (still trying to understand this from balancer).

dkent600 commented 2 years ago

I don't honestly know what is the reason for SOR to return zero. But we are doing a good job of preventing the user from trying to execute such a swap, even if the validation error does not explain much.