You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, adding liquidity to an exchange contract requires three steps:
Deposit some amount of asset A using deposit()
Deposit some amount of asset B using deposit()
Add liquidity using add_liquidity()
A Sway script can do this atomically.
Specification
The script should accept asset IDs and the amounts to be deposited to add liquidity by using up at least one of the assets (this depends on the ratio of the values of the two assets). Should refund any extra amount.
The text was updated successfully, but these errors were encountered:
Motivation
Currently, adding liquidity to an exchange contract requires three steps:
deposit()
deposit()
add_liquidity()
A Sway script can do this atomically.
Specification
The script should accept asset IDs and the amounts to be deposited to add liquidity by using up at least one of the assets (this depends on the ratio of the values of the two assets). Should refund any extra amount.
The text was updated successfully, but these errors were encountered: