How do I determine if a pool has sufficient liquidity to fulfil an order?

To determine if a pool has enough liquidity to fulfill an order, you can use the convenience function balanceToFulfillSellNFT. This function returns the minimum pool balance (in Ethereum) required to complete a trade where a user sells an NFT to the pool, after accounting for fees and royalties. If the pool's Ethereum balance is equal to or greater than the value returned by this function, the pool has sufficient liquidity to fulfill the order.

Last updated

Logo

© 2023 Collection. All rights reserved