Fees

Landed’s fee is at most 0.50% of the trade, and it is paid last: from the room the fill leaves under your cap.

The formula

fee = min(rate × trade, (cap − loss before fee) × trade)

When the fill leaves at least the rate’s worth of room, Landed takes the full rate. When it leaves less, Landed takes what is left. When the fill used the whole cap, Landed takes nothing.

Three fills under a 3% cap

Cost before fee 1.64%. Fee 0.50%, the full rate.
Cost before fee 2.72%. Fee 0.28%.
Cost before fee 3.00%. Fee 0.

What always holds

loss before fee + fee ≤ cap

Your total never exceeds your cap. The program computes the fee from balances it read itself and is the only thing that moves it.

Where the fee goes

Fees are paid in SOL into the fee vault. What happens to them is on the LANDED page.