Skip to main content

Module plan

Module plan 

Source
Expand description

Pure plan functions for the Ramses family.

Structs§

ExactInputSingleParams
exactInputSingleCall
Function with signature exactInputSingle((address,address,int24,address,uint256,uint256,uint256,uint160)) and selector 0xa026383e.
exactInputSingleReturn
Container type for the return parameters of the exactInputSingle((address,address,int24,address,uint256,uint256,uint256,uint160)) function.

Functions§

add_liquidity
add_liquidity_slipstream
build_gauge_claims
Group raw earned grids into claimable GaugeClaims, pruning per-pair zeros. A reward token is kept only if some position earns it; a position is kept only if it earns some token. A gauge emptied by pruning is dropped. Never inspects isAlive — de-listed gauges still hold claimable earned. Mirrors arbitrage filter_items_with_non_zero_rewards.
claim_cl_gauge_rewards
Encode a batched Ramses-family CL gauge reward claim.
claim_cl_gauge_rewards_from_grids
Prune raw earned grids and encode the batched claim in one step. Returns None when nothing survives pruning — the caller’s “never submit an empty claim tx” contract. voter is caller-supplied. Pure, so the None-collapse is unit-testable without a provider (the async facade is a thin wrapper).
claim_gauge
Encode a single-token Velodrome/Aerodrome gauge claim (getReward(uint256) on the gauge). Hoisted from the Slipstream facade so the selector is interface-locked in wp-evm-velodrome-interfaces.
collect_fees
increase_liquidity
remove_liquidity
remove_liquidity_and_collect
Build an atomic multicall(decreaseLiquidity, collect) plan fragment for a Ramses-family NFPM position.
swap_exact_in