Solvency & 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.