Estimate Exact Output #3

Closed
opened 2025-10-23 18:39:00 +00:00 by tim · 0 comments
Owner

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.

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.
surbhi added the
high-pri
label 2025-10-23 21:51:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Liquidity.Party/web#3
No description provided.