Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-docs-audit-1775035615.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
IValueFactory
TheIValueFactory interface provides a standardized way to retrieve dynamic on-chain values at runtime within ComposableCoW’s programmatic order system.
Key Function
bytes32 value.
Primary Use Cases
- Temporal data: Block timestamps and epoch calculations
- Price information: Oracle prices and exchange rates
- Dynamic parameters: Portfolio balances and collateralization ratios
Implementation Examples
CurrentBlockTimestampFactory
Returnsblock.timestamp as a bytes32 value.
BlockNumberFactory
Returnsblock.number as a bytes32 value.
ChainlinkPriceFactory
Fetches the latest oracle price from a Chainlink price feed.BalanceFactory
Queries token balances for specific addresses.DynamicStrikeFactory
Calculates market-adjusted strike prices based on current oracle data.Critical Requirements
- Factories should maintain view functions only and avoid state modifications
- Validate external oracle data
- Optimize for gas efficiency