Architecture
Last updated
Last updated
lendOS operates through three key components:
Lending Contract: This contract enables users to deposit and withdraw funds for both borrowing and margin trading purposes. It utilizes derivative tokens representing liquidity providers (LP). The borrowing and repayment process is facilitated through the lending mechanism, which allows users to access additional capital.
Collateral Vault Contract: This contract is a centralized hub for managing the assets within the protocol. All deposited assets and NFTs are securely stored in this contract, which includes mechanisms for valuing the collateral value of NFTs and interacts with price oracles to ensure accurate asset valuations.
Margin Positions Contract: This contract allows users to open and close margin positions by borrowing funds from the Lending Contract. This functionality enhances the trading experience by enabling users to benefit from margin trading and amplify their potential gains.
In addition, lendOS operates within multichain Modules, including:
Price Oracle: The Price Oracle module provides external price data, primarily used by the exchange modules.
Order Book: The heart of the each chain, this module enables fully decentralized spot and derivative exchange.
Token Factory: This module allows for the permissionless creation of new bank denom tokens.
Bank Module: This module handles multi-asset coin transfers between accounts and tracks pseudo-transfers that must operate differently with specific kinds of accounts (notably delegating/undelegating for vesting accounts).