Architectural Design
The protocol’s architecture can be summarized as follows, where the components of the protocols are modular, hence the implementation of the such components relies on the actual implementation under proxy which are updated on regular basis. The possible key modules of the protocols are:
Chain: Manages protocol’s cross-chain messages, in order to achieve multichain modularity and enabling seamless trade execution for end-users.
Market: Manages protocol’s market-places, by allowing any users to permissionlessly create, modify or remove markets and adjust market related parameters.
Order: Accepts and handles protocol’s core functions, such as swaps & futures actions
Asset: Responsible for asset creation, management and adjustment asset related parameters
Oracle: Handles pricing logics and sources which includes off-chain and on-chain sources.
Role: Handles protocol’s roles which defines whitelisted actors for proper and secure functioning of the protocol.
Storage: Responsible for storing, updating and removing protocols storage state variables.
Keeper: Manages off-chain and on-chain keepers logics, their implementations and whitelisted keepers.
Router: Handles cross-contract communication for the protocol.
OrderBook: Responsible for storage and maintainence of orderbooks.
Solver: Handles intent-based solver system which lives fully onchain.
Last updated
Was this helpful?