irisnet / irishub

A BPoS blockchain that enables cross-chain interoperability through a unified service model -- built with Cosmos-SDK
Apache License 2.0
304 stars 127 forks source link

[p3] Incorrect description of error prompt when user try to swap all the tokens from the liquid-pool #1931

Closed shilei-wang closed 5 years ago

shilei-wang commented 5 years ago

To Reproduce pool: iris token 10 10

exchange(15iris, 10tokens) return: Msg 0 failed: {"codespace":"coinswap","code":108,"message":"insufficient funds, want:10, actual:10"}

It would be better if it returns: "tokens to be brought could not greater than or equal to 10"

shilei-wang commented 5 years ago

confirm fixed