the fee path
A trader signs a swap on the LODE/ETH pool. The pool calls our hook before the swap settles. Inside that callback the hook reads the swap amount and takes 5% of it as ETH, regardless of direction.
-
1
swap arrives. The pool manager hands the hook a delta and asks what it wants to do.
-
2
hook takes 5% in ETH. Settled against the pool manager, not held on a router. The fee is parked on the hook's internal pot for the current round.
-
3
ticket logged. The wallet that signed the swap is added to the round's ticket list, weighted by the ETH it paid.
-
4
swap settles normally. From the trader's side: one swap, one signature, one fill. The fee is part of the price; the round is the bonus side.
note — there is no off-chain step here. The fee accrual, the ticket log, and the round are all on chain. Anyone reading the hook's storage can reconstruct the current round at any block.