Technology Architecture
Last updated
Last updated
The diagram illustrates the high-level architecture of Dextr, depicting the interaction between its core components, data flow, and integration points with external systems.
Dextr integrates several key components to enhance liquidity provision, price discovery, and user experience:
Oracle Network: Dextr leverages a decentralized oracle network to ensure low-latency, reliable and secure price feeds for various assets.
Modular Smart Accounts: Dextr utilizes Account Abstraction to introduce Modular Smart Accounts, empowering users with advanced capabilities to manage trading and liquidity provision strategies. Key features include:
Gas Abstraction: Simplifies gas management, optimizing transaction costs by handling gas fees efficiently.
Session Keys: Enhances security with temporary access keys for specific actions, limiting exposure and access duration.
Spending Limits and Allowances: Allows users to set spending limits and allowances for different assets within their Smart Account.
Transaction Batching: Groups multiple transactions into a single batch, reducing gas costs and enhancing blockchain efficiency.
Intent Registry: This registry serves as a central hub for user instructions, defining what users aim to achieve through their interactions with the platform.
Hooks: enable developers to integrate custom functionalities into existing operations without modifying the core codebase. Within Dextr, hooks are pivotal for executing different swap conditions such as advanced conditional orders, price range adjustment, liquidity management, and dynamic fee adjustment.
Dextr will soon unveil resources and detailed guides aimed at empowering developers to build innovative Hooks for enhanced liquidity management, offering a glimpse into the future of decentralized finance.
Liquidity Aggregators: Dextr integrates with liquidity aggregators to optimize trade execution through smart routing algorithms, ensuring the best prices across diverse liquidity sources in real time. This approach includes sourcing liquidity from various centralized exchanges (CEXs) and decentralized exchanges (DEXs), mitigating missed opportunities during periods of low liquidity for specific pairs on Dextr.
Actively Validated Service (AVS): Dextr breaks new ground by implementing an AVS. This innovative feature leverages re-staking protocols like EigenLayer to provide a robust economic guarantee for Dextr's off-chain order-matching algorithms. This ensures penalizing malicious actors in the network and compensates users in case of any MEV exploits.
ZK Co-processors: Empower smart contracts to read from and utilize the full historical on-chain data from any chain, and run customizable computations in a completely trust-free way.
Dextr utilizes the following technology stack to achieve its objectives:
Programming Languages: Solidity for smart contract development, JavaScript and TypeScript for frontend and backend development.
Frameworks and Libraries: Ethereum/ EVM blockchain for decentralized execution, Web3.js for blockchain interaction, React for frontend development, and node.js and Express for APIs.
Infrastructure: Deployed on cloud infrastructure providers like AWS and Google Cloud, leveraging Kubernetes for container orchestration and Docker for containerization.
Standardization Protocols:
ERC-20: Standard interface for fungible tokens used within the system.
EIP-191 & EIP-712: Standards for secure data signing and hashing.
EIP-4337: Standard for account abstraction model to simplify the user experience.
ERC-721: Standard for non-fungible tokens (NFTs).
ERC-1155: Interface for contracts that manage multiple token types.
Supported Account Types:
Externally Owned Accounts (EOAs): Standard Ethereum accounts controlled by private keys.
Modular Smart Accounts: Advanced accounts utilizing smart contracts for more intricate interactions and functionalities.