Use casesHow it worksDocsLaunch app

Blog · September 16, 2026

Fitting a liquidation into one transaction

1,400,000 compute units, 1,232 bytes, 64 accounts — budgeting a borrow, a liquidation, a swap and a repay.

A liquidation with a flash loan is four instructions: borrow the debt asset, repay the unhealthy position and seize collateral, swap the collateral back, repay the loan. The compute units fit comfortably; the bytes usually do not.

Without an address lookup table every account key costs 32 bytes, and a liquidation touches twenty or more accounts. With a table, each key costs one byte. Extend the table a slot before you need it — new entries are not usable in the same slot.

Request a compute units limit with about 10% headroom over what simulation reports. The priority fee is charged on the limit you request, not the units you use, so a lazy 1,400,000 request on a 400k route pays three and a half times the fee it needs.

← All posts