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

Add function to return slippage estimate #29

Open
bigboydiamonds opened this issue May 24, 2022 · 1 comment
Open

Add function to return slippage estimate #29

bigboydiamonds opened this issue May 24, 2022 · 1 comment

Comments

@bigboydiamonds
Copy link
Contributor

In order to illustrate when a transaction may fail due to a priceLimit too low/high (depending on long/short), we need a function on OverlayV1Estimate to return the slippage estimate of a position attempting to be built/unwound.

@mikeyrf
Copy link
Contributor

mikeyrf commented Jun 28, 2022

bid() and ask() functions now offer this but should change to accept and oi amount as input, instead of fraction of oi cap as we currently have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants