Program

One Anchor program, landed, holds the cap and takes the fee.

Address

CxNSs1eMErcnPUmk2AxPPBw8koQRx18cEZebQrGjGdz

Accounts

AccountHolds
ConfigThe fee rate, the admin, the supported venues
FeeVaultThe fees, in SOL
TicketOne trade’s arrival price, balances, side and cap; created in open, closed in close

Instructions

InstructionDoes
initializeCreates Config and FeeVault.
set_rateSets the fee rate, bounded above by a constant in the program.
open(side, cap_bps, venue)Checks the pool accounts belong to the venue for the mint, reads the arrival price and your SOL and token balances, and writes them to a Ticket.
close()Requires that open ran earlier in the same transaction. Measures your balance change, adds the transaction’s network fee, reverts above the cap, transfers the fee to FeeVault, emits Fill and closes the Ticket.

The Fill event

close emits Fill carrying the arrival price, the amounts, the cap, the loss, the fee. Every receipt, position and Compare figure for Landed is built from these events.

Venues

The swap is the venue’s own instruction, placed between open and close. Supported: pump.fun, PumpSwap, Raydium CPMM, on SOL-quoted pools. All math is in integers.