Price Update Flow
Here's the outlined process for price updating
Price Calculation for Base Assets:
Trasmitter Agents collect trade data from various Centralized Exchanges (CEXes).
This data is stored in local databases on Trasmitter agents.
Trades are aggregated by time intervals.
LP/USD Price Calculation:
CDT Price Protocol Agents perform off-chain calculations to determine the VWAP of CDT assets.
The LP/USD price is derived as such:
Voting Period and Price Updates
During the voting period, Trasmitters calculate the LP price using the most recent prices.
They push their updates to StreamDataSpotter contracts.
Finalization on the Entangle Blockchain
When the necessary conditions are met (sufficient time elapsed and enough votes gathered), the StreamData protocol aggregates the votes.
An update event is manually initiated by the Executor Agent.
Data Finalization Event
The finalization process completion emits a DataFinalized event.
Trasmitter Agents capture this event (when needed) and initiate a new operation to relay the updated price information to the Entangle CDT Price Spotter on the designated blockchain.
Operation Proposal
Trasmitter Agents submit a new operation proposal through the Photon Messenger.
Operation Approval and Execution
Upon approval of the new operation, the Executor Agent publishes the CDT/USD price update on the destination blockchain.
Last updated