We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to enter 1 for the asset in (ALGO), and it should automatically figure out how many decimals it has and convert it to 1,000,000
1
1,000,000
Couldn't seem to find an example of this.. also would it be okay to use 1000000 instead of 1_000_000 like in the example below?
1000000
1_000_000
quote = pool.fetch_fixed_input_swap_quote(ALGO(1_000_000), slippage=0.01)
The text was updated successfully, but these errors were encountered:
amount = 1 ALGO(amount * 10 ** ALGO.decimals)
🐨 works with any asset, and yea, python have underscores in numeric literals that are just (optional) visual separators
asset
Sorry, something went wrong.
Thank you for the question and answer. The issue looks like resolved.
I will close this issue, feel free to reopen it.
No branches or pull requests
I'd like to enter
1
for the asset in (ALGO), and it should automatically figure out how many decimals it has and convert it to1,000,000
Couldn't seem to find an example of this.. also would it be okay to use
1000000
instead of1_000_000
like in the example below?quote = pool.fetch_fixed_input_swap_quote(ALGO(1_000_000), slippage=0.01)
The text was updated successfully, but these errors were encountered: