Architecture Overview
GRVT's hybrid exchange architecture overview
Last updated
GRVT's hybrid exchange architecture overview
Last updated
GRVT adopts a hybrid architecture that matches and stores data off chain and provides smart contract level guarantees of their execution on chain. GRVT adopted this architecture to improve throughput by processing transactions off the Ethereum Mainnet.
All user actions are initially processed off-chain by GRVT servers. Only actions impacting user funds, such as trades or account creation, are eventually pushed on-chain by GRVT. Non-fund-related actions, like KYC, remain off-chain. The GRVT servers forward relevant user actions to the GRVT chain. Key user actions that are pushed on-chain include transactions processed by the following:
Matching Engine: Orders that are matched by the matching engine are sent on-chain
Risk Engine: Liquidations are sent to the chain
Account Management: Creation of entities such as trading accounts or addition of wallets that can use funds
Fund Management: Internal and external transfer of funds
A subset of the off chain actions are pushed to the GRVT chain. These actions are then published as zero-knowledge proofs to verify off-chain transactions on Ethereum.
Trade Settlement: Matched orders are settled on chain
Risk Engine Validation: Liquidations are validated on chain as being fair based on smart contract logic
Account Management Validations: Account Management actions are validated on chain
Fund Management: Fund transfers are validated and settled on chain