papertrade_
How it actually works

Papertrade Solvency — LP Accounting & FIFO Queue

Papertrade can be temporarily insolvent by design, using separate accounting buckets and a FIFO payout queue.

The three accounting buckets

The documentation describes treasury as the tracked LP balance, sideBucket as proceeds parked while the queue is active and the payout queue as FIFO debt owed on unpaid winning profit.

What enters the queue

Only the unpaid profit portion of a winning close is queued when reserves cannot cover it. User margin is returned to available balance separately.

Losses and liquidations

When the queue is empty, eligible LP-retained loss proceeds can credit treasury. While the queue is active, proceeds can be parked in sideBucket and used for later queue harvest.

Harvest

A permissionless harvest process pays entries from the front of the queue as backing becomes available, debiting parked backing before residual value returns to normal LP accounting.

Related Papertrade Guides

Frequently Asked Questions

What does Papertrade solvency track?

It tracks protocol-side LP accounting and whether available liquidity can settle eligible trader payouts immediately.

What is sideBucket?

The technical documentation uses sideBucket as part of the internal accounting model for certain protocol balances.

When is the FIFO queue used?

It is used when eligible winning profit cannot be settled immediately from available protocol liquidity.

Papertrade Docs · papertrade.market