Architecture
Last updated
Last updated
Entangle's UDF operates in three main stages.
In the data collection and processing stage, Transmitters gather raw transactional data from centralized exchanges (CEXes), store it in local databases, and preprocess it into standardized metrics like Volume Weighted Average Price (VWAP). Deterministic data is stored directly on-chain, while floating data undergoes additional processing to ensure accuracy and integrity.
The data finalization stage involves a smart contract that aggregates and finalizes data through a voting mechanism. Transmitters submit votes based on processed data, which are filtered for validity. The final value is determined using the median of valid votes, with additional calculations applied if necessary. Transmitters contributing to the final value are rewarded through a staking system, promoting accuracy and network participation.
In the data distribution stage, finalized data is disseminated to external systems. Transmitters detect finalized data events and submit updates if necessary. The Master contract validates updates and triggers an event for off-chain Executor agents to deliver the updated data to external blockchains and designated dApps. This ensures reliable, timely data integration for decentralized applications.