Verification
- Existence. The
PreparedTxPDA must exist for the specified nonce. - Replay protection. An
ExecutedFlagfor the same nonce must not already exist. - Expiry. The nonce must still be within its validity window.
Fund movements
- Recipient payment. The pool pays
publicAmount - feeto the external recipient. - Relayer payment. The pool pays the percentage fee plus gas buffer to the relayer.
Cleanup
- Execution marker. An
ExecutedFlagPDA is created to mark the nonce as consumed. - PreparedTx closure. The
PreparedTxPDA is closed and rent returned.