Quantillon Protocol

IExecutionPricing

Git Source

Title: IExecutionPricing

Volume-dependent execution pricing and admission for a single vault.

Functions

vault

Vault authorized to consume quoted liquidity.

Uses the documented units and preserves reference-price accounting.

Notes:

  • security: Uses explicit contract access boundaries and checked arithmetic.

  • validation: Validates the documented preconditions; view interface reads delegate to the target contract.

  • state-changes: None.

  • events: None.

  • errors: Propagates invalid input, freshness, capacity or downstream contract errors as applicable.

  • reentrancy: No state changes.

  • access: Public read access.

  • oracle: Reference EUR/USD and observed venue depth where required; no oracle dependency for role and version reads.

function vault() external view returns (address);

Returns

NameTypeDescription
<none>addressresult Calculated result in the units described by this operation.

outstanding

Total admitted EUR exposure awaiting acknowledgment, in 18 decimals.

Uses the documented units and preserves reference-price accounting.

Notes:

  • security: Uses explicit contract access boundaries and checked arithmetic.

  • validation: Validates the documented preconditions; view interface reads delegate to the target contract.

  • state-changes: None.

  • events: None.

  • errors: Propagates invalid input, freshness, capacity or downstream contract errors as applicable.

  • reentrancy: No state changes.

  • access: Public read access.

  • oracle: Reference EUR/USD and observed venue depth where required; no oracle dependency for role and version reads.

function outstanding() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256result Calculated result in the units described by this operation.

consumeMint

Consume buy liquidity for net USDC input (6 decimals).

Uses the documented units and preserves reference-price accounting.

Notes:

  • security: Uses explicit contract access boundaries and checked arithmetic.

  • validation: Validates the documented preconditions; view interface reads delegate to the target contract.

  • state-changes: Updates consumed liquidity counters.

  • events: LiquidityConsumed.

  • errors: Propagates invalid input, freshness, capacity or downstream contract errors as applicable.

  • reentrancy: Vault settlement is nonReentrant; publisher and reporter methods have no external state-changing callbacks.

  • access: Configured vault only.

  • oracle: Reference EUR/USD and observed venue depth where required; no oracle dependency for role and version reads.

function consumeMint(uint256 netUsdc, uint256 referencePrice)
    external
    returns (uint256 qeuroOut, uint256 backingUsdc);

Parameters

NameTypeDescription
netUsdcuint256Input after protocol fees.
referencePriceuint256Reference USD per EUR in 18 decimals.

Returns

NameTypeDescription
qeuroOutuint256Minted quantity in 18 decimals.
backingUsdcuint256Reference-valued backing in 6 decimals.

consumeRedeem

Consume sell liquidity for QEURO input (18 decimals).

Uses the documented units and preserves reference-price accounting.

Notes:

  • security: Uses explicit contract access boundaries and checked arithmetic.

  • validation: Validates the documented preconditions; view interface reads delegate to the target contract.

  • state-changes: Updates consumed liquidity counters.

  • events: LiquidityConsumed.

  • errors: Propagates invalid input, freshness, capacity or downstream contract errors as applicable.

  • reentrancy: Vault settlement is nonReentrant; publisher and reporter methods have no external state-changing callbacks.

  • access: Configured vault only.

  • oracle: Reference EUR/USD and observed venue depth where required; no oracle dependency for role and version reads.

function consumeRedeem(uint256 qeuroIn, uint256 referencePrice) external returns (uint256 executionUsdc);

Parameters

NameTypeDescription
qeuroInuint256Quantity redeemed.
referencePriceuint256Reference USD per EUR in 18 decimals.

Returns

NameTypeDescription
executionUsdcuint256Payout before protocol fees, in 6 decimals.