Skip to main content
Reclaim the remaining USDC collateral for options you wrote after the series has been settled. The payout is the writer’s original collateral minus the portion allocated to holder payouts. Contract: ConvallaxCore0xc760F8f6B8830463822be9F68eB10e1b5Dace378

Function Signature

function claimWriterCollateral(uint256 seriesId) external

Parameters

seriesId
uint256
required
The settled option series ID.

Payout Calculation

writerPayout = writerCollateral × writerPoolRemaining / totalCollateral
Where writerPoolRemaining = totalCollateral − holderPool (total collateral minus all holder payouts).
This is a one-shot operation. The writer’s recorded collateral is zeroed after claiming. Call it once per series.

Prerequisites

  • The series must be settled
  • The caller must have deposited collateral by previously calling mint() for this series
  • The caller’s recorded collateral must be greater than zero

Example

const core = new ethers.Contract(
  '0xc760F8f6B8830463822be9F68eB10e1b5Dace378',
  ['function claimWriterCollateral(uint256 seriesId) external'],
  signer
);

const tx = await core.claimWriterCollateral(seriesId);
await tx.wait();