🏗️Architecture and Design
This page explains the technical breakdown of how LayerPixel enhances TON's DeFi landscape through a modular approach.
Last updated
This page explains the technical breakdown of how LayerPixel enhances TON's DeFi landscape through a modular approach.
Last updated
LayerPixel uses a modular design to overcome TON's asynchronous limitations and leverage its sharding benefits. This modular approach includes several layers, each serving a specific function:
The Settlement Layer acts as a secure bank vault, storing all funds and facilitating atomic swaps.
Secure Storage: Funds are held in smart contracts with robust security measures, protecting against unauthorized access and ensuring safe storage.
Atomic Transactions: Ensures transaction integrity across asynchronous shards by managing the finalization process.
The Funding Layer includes PixelWallet (with Account Abstraction features) and EQA Wallet, providing virtual asset storage and token approval functions.
Virtual Account Abstraction: Separates the actual asset storage from the user interface, allowing for more flexible and secure asset management.
Token Approval Mechanism: Enables users to authorize smart contracts to interact with their assets, a functionality not natively supported by TON’s decentralized ledger.
The Execution Layer comprises multiple trading engines, including Automated Market Maker (AMM), weighted pool, and Liquidity Bootstrapping Pool (LBP) engines. These engines handle trade execution and provide a robust trading infrastructure.
Asynchronous Execution Handling: Each engine is designed to handle transactions independently, leveraging TON’s asynchronous nature to process multiple transactions concurrently without conflicts.
Custom Algorithms: Supports advanced trading algorithms such as AMM, weighted pools, and liquidity bootstrapping pools, enabling sophisticated trading strategies and liquidity management.
The Extension Layer is built by third parties and can incorporate additional features such as Anti-Money Laundering (AML) modules and other compliance tools. This ensures that LayerPixel can adapt to regulatory requirements and market needs.
Modularity: Allows for the integration of external modules that can interact with the core components of LayerPixel, enhancing functionality without altering the core system.
Interoperability: Ensures seamless operation with the existing infrastructure.
Security: Allows for the integration of the external security layers.
Enhanced Security and Compliance: Each layer can be independently secured and managed. The Settlement Layer employs stringent security protocols to protect funds, while the Extension Layer adds compliance tools to meet regulatory requirements.
Flexibility and Customization: Developers can extend LayerPixel’s functionality without altering the core system, allowing for rapid feature development and customization to meet evolving user and market needs.
Improved User Experience: Features like account abstraction and gasless transactions simplify blockchain interactions, making DeFi more accessible to users.
Optimized Performance: The modular architecture ensures that each component operates efficiently within its layer, resulting in faster transactions, lower latency, and a more reliable user experience.