Minting, Increasing, and Removing Liquidity in the Pool
This text was provided by Bernard Namangala, a talented and dedicated developer at Covey and Shido, and is available on his GitHub repository(https://github.com/Baboons-dev/shido-chain-examples/).
Setting Up the Project
git clone <repository-url> cd <repository-directory>npm installnpm start
Minting a New Position
Key Functions Involved
export const createPosition = async ( signer: Signer, fee: FeeAmount, token0DepositAmount: BigNumber, token1DepositAmount: BigNumber, token0: TokenData | null, token1: TokenData | null, poolData: PoolData ): Promise<Transaction | undefined> => { // Function implementation };export const checkAndApproveToken = async ( tokenContract: any, spender: string, amount: BigNumber, signer: Signer ): Promise<Transaction | undefined> => { // Function implementation };export const getPoolData = async (poolContract: any) => { // Function implementation };
Last updated
Was this helpful?