A liquidity pool is a crowdsourced pool of tokens locked in a smart contract that offer liquidity in…