ConvallaxRFQSettlement contract. The taker calls this function with the signed Order and makerSignature received from POST /execute.
Contract: ConvallaxRFQSettlement — 0xC6Eb814Cc01189e20B2DB2D2a22Ed2DcAC404992
Function Signature
Parameters
The EIP-712
Order struct signed by the market maker.EIP-712 signature from the maker over the
Order struct.Behavior
makerSelling | Options flow | USDC flow |
|---|---|---|
true | Maker → Taker | Taker → Maker |
false | Taker → Maker | Maker → Taker |
Prerequisites
Before callingfill(), ensure:
- USDC approval — The paying party must have approved
ConvallaxRFQSettlementto spend their USDC - ERC-1155 approval — The party sending options must have called
setApprovalForAllonConvallaxOptionTokenforConvallaxRFQSettlement - Sufficient balances — Both parties must hold the required token amounts
Example
Nonce Cancellation
Makers can pre-emptively cancel a nonce to prevent a pending order from being filled:NonceAlreadyUsed if someone tries to fill it.
Reverts
| Condition | Reason |
|---|---|
optionAmount or premiumAmount is zero | InvalidAmount |
| Nonce already used or cancelled | NonceAlreadyUsed |
block.timestamp > validUntil | OrderExpired |
Recovered signer ≠ order.maker | InvalidSignature |
order.taker ≠ address(0) and ≠ msg.sender | InvalidTaker |
| Insufficient balance | ERC-20/ERC-1155 revert |
