(IDL v0.4.1)

Overview

This Solana Anchor-based Automated Market Maker (AMM) program enables users to create liquidity pools, provide liquidity, remove liquidity, and swap between two tokens. The program also includes functionality for TWAP (Time Weighted Average Price) calculation.


Instructions

createAmm

Initializes a new AMM pool.

addLiquidity

Adds liquidity to an existing AMM pool.

removeLiquidity

Removes liquidity from the pool.

swap

Swaps between base and quote tokens.