Sell
Function to sell NFTs to a pool
Sells user's nftIds
to the liquidityPairs
belonging to a pool
, throws an error if the finalPrice
is lower than minimumPrice
.
This function is usually combined with some of following query functions:
getPool
- In order to get thepool
from the collection's address and pool token.getSellQuote
- In order to get the best (highest price)liquidityPairs
to sell into and theminimumPrice
for the sell operation.
Returns the finalPrice
for the sell operation.
Last updated