Executing a Trade
This section demonstrates how to use a quote to construct and execute a trade on the Storyhunt V3 protocol.
Introduction
Constructing a Route from Pool Information
async function getPoolInfo() {
const [fee, liquidity, slot0] = await Promise.all([
poolContract.fee(),
poolContract.liquidity(),
poolContract.slot0(),
]);
return {
fee,
liquidity,
sqrtPriceX96: slot0[0],
tick: slot0[1],
};
}