Expiration closes some paths, not every obligation
Track start, cooldown and expiration independently; treat rolling as a new transaction with its own failure conditions.
Start, cooldown and expiration
For a new position, start = deploymentTimestamp + initializationPeriod, with initialization of at least three days. Initial cooldown = start, and expiration = start + duration. A veto requires now < start; minting requires now > cooldown and now < expiration. Exactly at start, neither veto nor initial mint is available.
Raising a liquidation price imposes a three-day cooldown. Averting a challenge imposes one day, and a successful challenge imposes three days. These restrictions affect minting and withdrawal differently: repayment can remain available, while collateral withdrawal still requires no challenge and a timestamp strictly after cooldown.
At and after expiration
No mint or new challenge can begin at or after expiration. Existing challenges and settlement still matter, and collateral withdrawal remains blocked while a challenge is open. Repayment does not have the before-expiration modifier and can remain possible.
If there is no open challenge, the expired forced-sale path starts at 10× liquidation price at expiration, reaches 1× after one challenge period and reaches zero after two. It is distinct from an ordinary challenge auction. See the exact challenge and expired-sale boundaries.
What rolling actually does
The PositionRoller can atomically use a local-currency flash loan to repay a source position, withdraw source collateral, mint into a target position and repay the flash loan from the caller's resulting funds. Source and target must use the same collateral, the caller must own the source, both positions must be recognized, and both hubs must recognize the roller. Collateral allowances, target capacity, backing, fees, cooldowns, challenges and expiration still apply.
If the target is not already owned by the caller or its expiration differs from the requested expiration, the roller clones it. Otherwise it can use the existing target. Excess collateral or insufficient target minting can leave the caller needing additional local currency to repay the flash loan; review the exact amounts rather than assuming a self-funding roll.
Custom expiration needs full simulation
rollFully uses the target's existing expiration. rollFullyWithExpiration accepts another expiration, but its helper still derives a mint candidate with target.getMintAmount(repay), which uses the target's current-expiration fee getter. It does not substitute the custom expiration into that quote. Target fee, required collateral and available mint can therefore differ from the helper's estimate.
A custom-expiration roll requires simulation of the complete transaction and is not guaranteed by the view helpers. Check source repayment, withdrawal restrictions, clone constraints, child expiration, target capacity, target mint and final flash-loan repayment together. On the approved USD testnet runtime, the guided flow performs a fresh static call and gas estimate before explicit MetaMask confirmation; other runtimes remain read-only, and no roll is submitted automatically.
Maturity checklist
- Read source and target owners, hubs, roller, collateral, family terms and current block.
- Compare start, cooldown, expiration and challenge state with exact strict/non-strict boundaries.
- Calculate repayment using current reserve coverage and the correct target expiration for any new quote.
- Keep enough collateral and local currency allowances/funding for the chosen external execution path.
- After any separately authorized transaction, read both positions and all wallet balances again; do not infer success from a plan.