-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in query curve_info for cw20-bonding #2
Comments
Interesting. It would be good if you provide the data you're using / a path for reproducing this. Perhaps it can be encoded as a unit test, or in any case, an integration test. |
Thanks for your reply. In addition, I haven't tried all the different cases, but...
|
I think this may be an overflow when converting from our Thanks for the report. We will fix this asap. |
ah, 18 decimals... this causes all kinds of math overflows. Why do you use that (besides habit from Ethereum)? I mean, 6 or 9 decimals seems to suffice for almost any project. |
We can still avoid panic when converting, basically by checking / limiting the range of allowed values / decimal places. |
I don't have to plan to use 18 decimals. |
I fully agree... a readable error message to the user is always better than a panic. Removing the error condition (precision limit) can be discussed if there is a clear need. We would need to eg use u256 internally for all calculations, which may be a good idea? But checks/limits are 💯 need |
btw, cw20-bonding was written like 1 year ago and just updated to match versions. I think I have an outstanding issue to allow cw20 as the input tokens, not just native |
Hello, i'm having the same issue. i'm working with U256... here is some debug logs:
|
I am also having trouble executing a message on cosmwasm contract, and I am getting the same exact method in the OP:
I am estimating the gas for a MsgExecute on a custom contract. Is there any way to get a better error message or some stacktrace? |
I am getting this error, for this setup command from cosmwasm document can anyone help me out in resolving? |
Hi,
I get the following error:
|
If you use a cosmwasm 1.0.0 (no more rc) VM, ie. wasmd 0.27 or something that imports it, there is help. Add See "But there's more..." in this article https://medium.com/cosmwasm/cosmwasm-1-0-0-finalized-fadc148f9e18 |
I am upgrading to wasmd 0.27 and cw 1.0.0 to try and see.
|
I tried cw20-bonding and got the following error.
Conditions
The text was updated successfully, but these errors were encountered: