Overview
Factorial is built on The Open Network (TON), utilizing its parallelism and scalability to provide a decentralized, permissionless lending solution. The core components of the system include the Pool and Account contracts, which allow users to supply assets as collateral, borrow against their collateral, and manage their lending positions efficiently. The architecture ensures data integrity and prevents race conditions through a robust lock mechanism.
Features
Factory-Based Deployment:The protocol uses a factory contract to streamline the deployment of lending contracts. This approach simplifies the process for users and allows for efficient management and scaling of lending operations within the TON network.
TVM Compatibility: The architecture is specifically designed to align with the TVM's parallel processing capabilities. To manage the concurrent operations effectively, we implemented a read-write lock mechanism on user-specific data, ensuring data integrity and preventing race conditions during transactions.
Modular Design with Minimal Message Overhead: While modularity is a core principle of the architecture, the design also prioritizes minimizing the number of messages exchanged within the network. This approach helps to reduce transaction costs and latency, enhancing the overall efficiency of the protocol.
External DeFi Integration: The architecture supports seamless integration with external DeFi protocols through a plugin system. Each plugin acts as an independent contract responsible for managing connections to external DeFi services, thereby isolating this functionality and allowing the core protocol to remain focused on lending operations.
Last updated