Oracle
Dywe Oracle Engine
Dywe uses an oracle system to retrieve and update information about trading asset rates. Data is transferred to oracle smart contracts via trusted entities, ensuring synchronisation of values at the smart contract and user interface level.
Oracle Architecture
The oracle system comprises two key components: the Node and the Gateway.
Node
Node is a service responsible for collecting information about rates of trading pairs. Main functions:
Obtaining asset rate data from third-party sources.
Aggregation and pre-processing of data.
Transmission of updated data to Gateway.
Gateway
Gateway acts as a distribution node, receiving information from the Node and passing it to the oracle smart contract and to the frontend. The main functions are:
Receiving course data from the Node.
Sending data to the oracle smart contract.
Transferring data to the user interface to synchronise the displayed values.
Data Update Mechanism
Node receives asset rate information and passes it to Gateway.
Gateway sends the data to the oracle smart contract where it is stored.
The values are updated every 5-10 seconds depending on the trading pair.
To receive data from the oracle it is necessary to send a message with a certain opcode, after which the smart contract returns the relevant information.
All transmitted data is synchronised between the oracle smart contract and the user interface.
Each trading pair has a unique token_feed identifier, which is used to access oracle data.
Security and Reliability
The oracle system is designed taking into account the following parameters:
Decentralisation of data transmission - information is received by the oracle from several independent sources.
Update frequency - minimal delay in data update ensures the relevance of quotes.
Synchronisation with the frontend - eliminates discrepancies between displayed rates and actual values in the oracle.
Use of smart contracts - prevents data manipulation.
The Dywe oracle system provides accurate, fast and secure data transfer necessary for correct functioning of trading operations.
Last updated