Reference documentation for RaumFi v3 Soroban CLMM functions, deployed testnet contract IDs, router methods, position manager APIs, quoter, tick lens, and wallet integrations.
Factory
Function
Description
initialize(admin, wasm_hash, position_manager)
One-time setup. Registers the default fee tiers (500 / 3000 / 10000, i.e. 0.05% / 0.3% / 1%) and stores the pool WASM hash and position manager address.
Admin-gated unless permissionless creation is enabled. Deploys a new pool at a deterministic address salted from the sorted token pair and fee, then initializes it at initial_tick (must align to that fee tier's tick spacing).
get_pool(token_a, token_b, fee) -> Address
Looks up an existing pool.
get_position_manager() -> Address
Returns the NFT position manager address every pool trusts for add_liquidity.
Callable only by the pool's registered position manager; provider must also separately authorize the token transfer. Returns amounts of token0/token1 pulled in.
remove_liquidity(...)
Inverse of add_liquidity - reduces a tick range's liquidity and returns the underlying amounts.
Core swap execution, walking across ticks until amount_specified is filled or sqrt_price_limit_x96 is hit. Reverts if the pool is paused or has zero active liquidity.
mint / burn / collect
Lower-level position lifecycle hooks used internally by add_liquidity/remove_liquidity and by the position manager's fee collection.
get_fee_growth_inside(tick_lower, tick_upper)
Fee growth accrued inside a tick range, used to checkpoint a position's owed fees.
Resolves the pool, mints a sequential NFT token_id to to, calls the pool's add_liquidity, and stores the position's tick range, liquidity, and initial fee-growth checkpoint.