Redemption queue

A redemption always fixes its price and burns its tokens in the transaction. If the Issuer cannot pay the USDC at once, the redemption becomes a claim at that price, and claims are paid in order of arrival as USDC reaches Elysium, usually within minutes.

Claims wait at the gate in the order they arrived, and leave as USDC comes in.

When a redemption queues

The Issuer pays redemptions from the USDC it holds on Elysium. Not all of that balance is free: fees not yet withdrawn and USDC already owed to earlier claims are reserved.

availableLiquidity = balance − accruedFees − queuedOwed gross ≤ availableLiquidity → paid now gross > availableLiquidity → queued
The gross is compared, not the net, because the fee is reserved the moment the redemption happens.

Because queuedOwed is subtracted, a new redemption can never be paid ahead of a claim already waiting, even when the balance would cover it. Everything else about the redemption is identical either way: same price, same fee, same checks, same Redeemed event.

What a claim records

Issuer.sol
struct Claim {
  address recipient; // who gets the USDC
  uint96  amount;    // USDC owed, net of the fee, 6 decimals
  address holder;    // whose tokens were burnt
  uint96  fee;       // redeem fee booked for this claim
  uint128 tokens;    // tokens burnt, 18 decimals
  uint32  perpIndex; // the market
}

mapping(uint256 claimId => Claim) public claims;
uint256 public nextClaim;  // oldest unpaid claim
uint256 public claimCount; // claims ever queued = next id
uint256 public queuedOwed; // USDC owed to all open claims

Claim ids count up from zero in the order redemptions queued. A claim keeps what was burnt and the fee it was charged, so that it can be undone exactly (below). A paid claim is deleted: claims(id).amount reads zero once it is paid or voided.

From queued to paid

  1. claim #41120.00 USDCpaid
  2. claim #4248.10 USDCvoided
  3. claim #43300.00 USDCnext
  4. claim #4415.75 USDCwaiting
  5. claim #45990.00 USDCwaiting
USDC arriving on Elysium pays from the head of the line
The queue is first in, first out. payClaims pays from the oldest claim while the balance covers it; a voided slot is skipped; a claim that does not fit waits, and nothing behind it jumps ahead.
  1. 1
    Queuedredeem burns your tokens, books the fee, stores the claim, adds its amount to queuedOwed and emits RedeemQueued(claimId, perpIndex, recipient, amount). Your price is fixed from here on.
  2. 2
    USDC arrivesWhile claims are waiting, Ported's operator sends USDC from the treasury on HyperEVM to the Issuer over Elysium's canonical bridge, whose only possible recipient is the Issuer.
  3. 3
    PaidpayClaims(maxCount) pays claims oldest first, each one in full, emitting ClaimPaid(claimId, recipient, amount). The operator calls it when USDC lands; anyone else may call it too.

How payClaims works

  • It starts at nextClaim and walks forward, paying up to maxCount claims.
  • It pays a claim only in full. At the first claim the balance cannot cover, it stops: the queue is strictly first in, first out, and a smaller claim behind a large one waits for it.
  • It may spend the Issuer's whole balance, fees included. Queued holders come before the protocol's fees.
  • Voided slots are skipped.
  • It is permissionless, so payment does not depend on any one caller. It stops while redemptions are paused (RedeemsArePaused).

Owed USDC cannot leave

USDC owed to the queue is reserved against everything else the Issuer does:

Bridge-outs
Every transfer back to HyperEVM is limited to availableLiquidity(), which excludes queuedOwed.
Fees
withdrawFees can only take from balance − queuedOwed.
The counter
queuedOwed goes down only when a claim is paid or voided.

Voiding a claim

voidClaim(claimId), callable by the guardian or the owner, deletes an unpaid claim and puts its holder back where they were before redeeming:

  • The burnt tokens are minted back to the holder, the address that redeemed (not the recipient).
  • The claim's amount leaves queuedOwed and its fee is taken off accruedFees.
  • ClaimVoided(claimId, holder, tokens) is emitted. The holder can redeem again at a fresh price.

It exists for two cases: a claim priced by a faulty or compromised quote, which would otherwise be locked in and paid from the treasury, and a recipient that cannot receive USDC, which would otherwise hold the whole queue. It cannot take anything from the holder: they get back exactly the tokens they burnt.

Pauses and settlement

SituationEffect on claims
Redemptions pausedNew claims cannot form and payClaims reverts. Open claims keep their price and are paid in order once redemptions reopen.
Mints pausedNo effect.
Bridge-outs pausedNo effect on payment. USDC still arrives from HyperEVM.
Market wound downClaims queued before keep their price. Claims queued after are priced at the settlement price.
Settlement price correctedClaims already queued keep the price they were queued at.

What the site shows

  • Before you sign, the trade panel compares the gross of your redemption with the Issuer's free USDC and tells you whether it will be paid at once or queued.
  • After a queued redemption it shows the amount as on the way and follows the claim until it is paid, then shows it as paid to your wallet.
  • Your portfolio lists every claim to your address that is still open, under On the way, from the RedeemQueued events.
  • You can close the page. Payment does not need you to do anything: the USDC arrives in the recipient wallet on its own.

Contracts that redeem on a user's behalf should treat the return value of redeem as paid or owed, and look for RedeemQueued in the receipt. See Events and errors.