Advanced
MORE Markets utilizes a singleton contract structure, where all market operations are unified within a single smart contract. This streamlined approach contrasts with systems where each market operates under its own separate contract. The singleton design not only simplifies the entire framework but also drastically reduces gas consumption when users interact with multiple markets.
Benefits of the Singleton Contract
Simplified Interactions: Users can engage with various markets through a single transaction, which notably reduces gas fees.
Concentrated Liquidity: Centralizing liquidity in one contract makes the system more efficient, particularly for flash loans, by enhancing accessibility and operational speed.
Unified Logic: The core functionalities and user interfaces are all contained within one primary file, which simplifies maintenance and improves protocol readability.
Key Features
User Interfaces: The contract includes key functions such as supply, withdraw, borrow, repay, supplyCollateral, withdrawCollateral, and liquidate.
Flash Loan Integration: Allows for simultaneous borrowing across all markets within a single transaction, useful for activities like liquidations and arbitrage, provided they are settled within the same transaction.
Callbacks: Supports callbacks with arbitrary data at critical points, such as supply and liquidate, enabling users to execute custom logic that minimizes dependencies on external flash loans and reduces gas costs.
Advanced Features
Bad Debt Resolution: The protocol immediately addresses and resolves bad debts as they occur, preventing them from accumulating and ensuring market stability.
Callbacks: Provides detailed callback mechanisms at each transactional entry point.
Flash Loans: Offers comprehensive functionality for free flash loans.
Account Management: Features an authorization system that allows users to delegate transaction permissions to other addresses, enhancing flexibility and control.
Additional Information
IRM and Oracle Integration: The contract is equipped with a variety of IRMs and Oracle adapters that are crucial for accurate market operations. These elements are discussed in detail in the dedicated sections on Oracles & Pricing and Interest Rate Model
By consolidating all markets and functionalities into a single contract, MORE Markets achieves increased efficiency, reduced gas costs, and simplified user interactions, positioning it as a robust and scalable solution within the DeFi lending landscape.
Last updated