Mainnet: OPUL/ALGO Pool Returning Wrong Quote
See original GitHub issueRunning the following on mainnet:
ALGO = client.fetch_asset(0)
OPUL = client.fetch_asset(287867876)
pool = client.fetch_pool(OPUL, ALGO)
quote = pool.fetch_fixed_input_swap_quote(ALGO(2500), slippage=0.01)
returns, for example, 2955 as quote
.
In reality, this is actually 0.2955, so the quote is actually is off by exactly 10000 for some reason.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Tinyman Python SDK - PythonRepo
pooling1.py This example demonstrates retrieving the current pool position/share for an ... Mainnet: OPUL/ALGO Pool Returning Wrong Quote.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@albertshin, Can you please share an example? It would be great to share an example code with expected and real values.
Sorry, you have already did.
I see what you mean. Re-reading Fergal’s original reply that everything is expressed in microunits makes more sense now. Thanks!