Data Flow
The data flow architecture of Wattlet defines how information moves between the on-chain and off-chain components of the ecosystem. This system ensures that every transaction, oracle update, and liquidity event is synchronized across all layers — maintaining transparency, accuracy, and real-time responsiveness.
1. Data Flow Overview Data within Wattlet travels through three primary pathways:
Market Data Flow (Off-chain → On-chain): Retail electricity prices and exchange rates are fetched by the Oracle Network from verified public sources and transmitted to the blockchain layer.
User Interaction Flow (App → Blockchain): User actions such as swaps, staking, or governance votes are signed in the Wattlet App and submitted to smart contracts for execution.
Feedback Flow (On-chain → App): The application retrieves confirmed transaction data, updated balances, and oracle-verified prices for display in the user interface.
These three flows create a continuous feedback loop, allowing Wattlet to reflect real-world market dynamics on-chain in near real time.
2. Oracle Data Process
Oracle nodes collect retail electricity data from approved sources (e.g., national energy agencies or utility price indexes).
The data is validated through cross-source comparison and signed by multiple nodes.
Aggregated values are published on-chain via the Oracle contract.
Smart contracts reference these oracle values for KWT pricing, ensuring market accuracy.
3. Transaction Execution Flow
A user initiates a transaction (e.g., buy KWT using USDT).
The request is signed locally by the user’s wallet and broadcast to the blockchain.
The AMM contract calculates exchange ratios using the latest oracle data.
The transaction is executed, recorded on-chain, and confirmed.
The Wattlet App displays updated balances and transaction receipts instantly.
4. Liquidity and Reward Synchronization
Liquidity pool metrics (volume, ratio, utilization) are continuously tracked on-chain.
When a liquidity provider adds or removes assets, the AMM recalculates pool ratios.
Reward contracts adjust WATT distribution based on updated pool performance metrics. This real-time synchronization ensures that liquidity depth and incentive calculations remain transparent and verifiable.
5. Data Feedback to Interface The Wattlet front end continuously queries blockchain data through Web3 and API endpoints. It compiles live market charts, energy value analytics, and user portfolio summaries. All numerical data — from KWT pricing to staking yields — is cross-verified with the most recent oracle feed before being displayed.
6. Security and Data Validation Every data packet entering Wattlet’s on-chain environment is digitally signed. Oracle feeds include redundancy checks, time-stamps, and cryptographic proofs of origin. This eliminates the risk of tampered data or misinformation affecting token valuation or settlement accuracy.
Through this structured data flow, Wattlet maintains consistent alignment between blockchain records, market data, and user interfaces — ensuring integrity from energy source to on-chain asset representation.
Last updated