Estimate Exact Output #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently a user can type an output amount into the second token box, but it doesn't do anything. We need to add a view in the contracts to estimate the required amount-in for a given amount out, then call that method from the website when a user desires exact-output semantics instead of exact-input. We will still use the exact input swap function, but we will estimate the input amount from the user-supplied output amount.