Skip to content
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

Can't create liquidity pool #4

Closed
greggsoft opened this issue Apr 21, 2022 · 2 comments
Closed

Can't create liquidity pool #4

greggsoft opened this issue Apr 21, 2022 · 2 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@greggsoft
Copy link
Contributor

When pool fees have decimal part error occurs:
Error: Broadcasting transaction failed with code 2 (codespace: sdk). Log: math/big: cannot unmarshal "0.01" into a *big.Int: tx parse error

Linked issue in imvered repo imversed#25

@greggsoft greggsoft self-assigned this Apr 21, 2022
@greggsoft greggsoft added the bug Something isn't working label Apr 21, 2022
@greggsoft
Copy link
Contributor Author

cosmos/cosmos-sdk#10863

@greggsoft
Copy link
Contributor Author

Workaround:

const swapFeeDec = 0.001
const swapFee = Math.floor(swapFeeDec * 10**18).toString()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant