Maple Finance 백서

Maple Finance

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 12쪽

/learn/what-is-maple-finance-syrup-fi-syrup-token) **Artemis** [Maple Finance: The Hub For On-Chain Institutional Lending in Crypto](https://www.artemis.xyz/research/maple-finance-the-hub-for-on-chain-institutional-lending-in-crypto) [Protocol Highlight: Maple](https://www.artemis.xyz/research/protocol-highlight-maple) **Reflexivity Research** [Leading DeFi Lender Maple Finance Launches SYRUP](https://www.reflexivityresearch.com/all-reports/leading-defi-lender-maple-finance-launches-syrup) **Token Terminal** [Maple Finance and the Envolving Onchain Lending Market](https://tokenterminal.com/resources/community/lending-maple-finance) **Parsec** [Guest Article w/ Maple Finance](https://parsec.substack.com/p/guest-article-wmaple-finance) **GL Capital** [Maple Finance Relative Valuation](https://x.com/GL_Capital_/status/1891842410071851114) # Data Dashboards [Artemis](https://app.artemis.xyz/project/syrup?from=sectors) [Token Terminal](https://tokenterminal.com/explorer/projects/maple-finance) [Dune Analytics](https://dune.com/maple-finance/maple-finance) # Additional Resources **Legal and Compliance** Solely SYRUP stakers are eligible to participate in governance. The staker retains ownership of their tokens for the duration of the staking period and remains free to un-stake and withdraw their SYRUP tokens at any time. All staked SYRUP tokens are not deployed to any commercial purpose while staked, they remain idle in the smart contract and serve to secure the network. The staking smart contract is a decentralized part of the protocol and is non-custodial. There is no third party service provider that takes possession of the staked tokens, nor does any third party play a role in actively managing or controlling the staked SYRUP tokens. No party holds the private keys for the staking contract; it is decentralized. Staking SYRUP does not carry a contractual, or promised return to SYRUP stakers. The protocol is under no obligation to provide rewards or to distribute funds to SYRUP stakers, directly or indirectly, in any form. Any future decision to distribute rewards for staking or participating in governance would be dependent on, and subject to, the vote of SYRUP token holders. Major protocol updates, including our Treasury report, partnership announcements, and Drips performance can be found on our [blog](https://maple.finance/category/all). Additional information on the Maple [High Yield Secured](https://docsend.com/view/s/rpnugkiyipkv3m6m), [Blue Chip Secured](https://docsend.com/view/s/pnfq487xxky4f3w3) lending pools as well as [Syrup](https://docsend.com/view/s/pb32b6hxt6jkz8vw) protocol can be found in our data room or by contacting a team member at <contact@maple.finance>. # Protocol Overview # Background ## The Maple Ecosystem Maple is a decentralized corporate credit market. Maple provides capital to institutional borrowers through globally accessible fixed-income yield opportunities. For Borrowers, Maple offers **transparent and efficient financing done entirely on-chain.** * Institutions can borrow against collateral with onchain defined terms. * Borrowers access pools of capital governed by smart contracts and liaise with Pool Delegates to confidentially complete loan assessments. For Liquidity Providers, Maple offers a **sustainable yield source through professionally managed lending pools.** * Diversified exposure across premium borrowers. * Set and forget solution with diligence outsourced to Pool Delegates. * Interest is accrued and reinvested to enable capital to compound over time. ## Flow of Funds ![Flow of Funds](https://github.com/user-attachments/assets/dfe348c3-efeb-4d6a-9031-73576bbdfd57) # Protocol Actors: Roles and Permissions This page outlines all of the different actors in the Maple protocol and gives a short description of each of their roles. ### Pool Delegate A Pool Delegate is an address used to administer a pool. The Pool Delegate address configures pool parameters, manages strategies, and performs loan administration as permitted by protocol roles. ### Liquidity Provider Liquidity Providers (LPs) add capital to the Pools to be used to fund strategies. LPs are lenders that want to earn yield on their capital by allowing Maple Direct to underwrite strategies and earn interest. LPs earn interest by holding ERC-4626 compliant LP tokens representing their share in the pool, which appreciates in value over time as interest is earned. LPs can choose which Pool they want to deposit their capital in based on multiple factors, such as the historical performance and underlying collateral. ### Borrowers The primary Maple strategies are loans for institutions (borrowers) that want to borrow capital from the Maple protocol. After agreeing terms with Maple, a Pool Delegate address can fund the loan with funds available in the pool. ### Governor The [Governor](/technical-resources/admin-functions/governor-admin-actions) is the on‑chain `GovernorTimelock` contract, which is managed by a multisig (and other designated roles). It administers protocol‑level configuration (e.g., MapleTreasury, Globals parameters, pause controls). Governor‑privileged transactions execute via the timelock with a schedule → delay → execution window. Administrative changes are proposed and queued, then executed only after the configured delay within a bounded window. ### Security Admin A Security Admin is an account that has the ability to call the emergency [pause function](/technical-resources/security/emergency-protocol-pause) that can pause every function in the protocol. This is only to be used in the case of critical incident response, during which action must be taken to prevent and/or stop damage from occurring to the protocol. ### Operational Admin The Operational Admin is endowed with the authority to execute a subset of operational functions essential for the routine management of the protocol. It possesses limited powers compared to the Governor, ensuring a balance between operational efficiency and security. # Smart Contract Architecture ## Overview In this section, the architecture of the Maple V2 protocol is outlined, including the rationale behind each decision. ![V2 Protocol Architecture](https://2107472351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLg9y0GYo0LxapRXEes%2Fuploads%2Fgit-blob-a08d434cd9abdc065abb9728401fa0c34ed2b827%2FSystemArchitecture.png?alt=media) ## [Pool](/technical-resources/pools/pools) The pool implements the vault standard ([ERC4626](https://erc4626.info/)) and its intentionally kept as simple as possible, containing mostly token and deposit/withdrawal functionality. It's the only contract that LPs need to interact with to participate in the protocol. Due to immutability, some of the logic is delegated to the contract called `PoolManager`, which is the only external facing contract that the Pool interacts with. ## [PoolManager](/technical-resources/pools/pool-manager) Pools and PoolManagers currently have a one-to-one relationship (architecturally this is allowed to change), meaning that a single Pool contract is associated with a single PoolManager and vice versa. Its main responsibility is to hold almost all of the administrative functions, as well as serve as the interface between the Pool and the other parts of the protocol architecture. The main actors that interact with the PoolManager are the Pool Delegate, Governor and other Maple contracts. No external facing actor is expected to use the Pool Manager directly. The Pool Delegate uses the PoolManager to administrate strategies, performing actions such as funding and refinancing, and setting Pool parameters, such as liquidity cap and fees. Other contracts use the PoolManager to route calls to the Pool to perform operations such as withdrawals. ## LoanManagers (Primary yield strategy) The LoanManager is used to keep track of all outstanding Loan accounting. A PoolManager can have many LoanManagers, but a given LoanManager only interacts and reports to a single PoolManager. The accounting is done on a separate contract and not directly on the Pool because it allows for future flexibility. With multiple LoanManagers it is possible to completely change the existing value accrual mechanism, or support multiple value accrual mechanisms in parallel in the future, without needing to migrate pool tokens. In the current architecture, LoanManagers are attached to the PoolManager as strategies via `addStrategy` using the appropriate LoanManager factory. There are two types of LoanManagers in the Maple protocol: fixed-term LoanManagers and open-term LoanManagers. ## Loans A MapleLoan is the contract that represents the agreement between a Lender and a Borrower, defining all of the rules of the engagement. In it, all of the term details are set and enforced. This includes Loan terms, payment schedules, fee structures, and default conditions. Loans are the mechanism through which the revenue is generated for Pool Delegates and the Maple protocol, as well as yield for Liquidity Providers. There are two types of Loans in the Maple protocol: fixed-term Loans and open-term Loans. ## External Strategies (Secondary yield strategy) External strategies such as Aave and Sky are used to deposit cash into the pool to earn yield as a secondary yield source for the Pool. A Pool can have many external strategies but a strategy can only interact with one Pool Manager. ## WithdrawalManager In order to maximize capital efficiency, at any given time, the majority of the assets deposited by Liquidity Providers are directed towards funding loans and therefore, are not available to be withdrawn by LPs. Although depositors are entitled to the full value of their position, full liquidity might not be available at any given time. To address this in an equitable way, the WithdrawalManager contract is used. WithdrawalManagers are developed to cater for a specific pool's needs with regards to liquidity management, giving Pool Delegates the flexibility to configure the best withdrawal mechanic for their needs. ## [Maple Globals](/technical-resources/singletons/globals) MapleGlobals is a singleton contract responsible for holding protocol-wide parameters. The administrative actor of MapleGlobals is the `Governor` which can configure all the needed parameters in a central place. The `Governor` acts on behalf of the Maple DAO. The MapleGlobals contract is also used to perform and control [time-locked](/technical-resources/admin-functions/timelocks) actions, such as smart contract upgrades, which can directly affect depositors. ## Factories Within the Maple protocol there will be multiple instances of each contract described above, so for efficiency of deployment, a factory pattern is employed. Factories are contracts that are responsible to create new instances of specific contracts and to manage and perform upgrades. Factories are managed in an allowlist in MapleGlobals, maintained by the Governor. This allows protocol contracts to verify on-chain that contracts have been vetted by the Maple DAO. For example, a Loan Manager can check if it is funding a Loan that is part of the Maple protocol, as to avoid funding a Loan with malicious smart contract logic. Further, some (and eventually more/all) factories rely on MapleGlobals to determine if their caller is allowed to deploy an instance. # Glossary ### General Concepts | Term | Definition | | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Asset` | An external ERC-20 token that is used to transfer value through the protocol (e.g., USDC, WETH, WBTC). | | `Collateral Asset` | An asset that is posted as collateral for a loan. | | `Cover` | The first-loss capital that Pool Delegates need to provide as a prerequisite of launching a pool. | | `Default` | Occurs when a Borrower fails to make a payment on a loan. Recognizes the full value of the outstanding unpaid Loan as a loss to the Pool. | | `Funds Asset` | An asset that is added as liquidity by LPs and used to facilitate Loans to Borrowers. | | `Governor` | The entity responsible for managing Global protocol parameters. | | `Impairment` | Allows a Pool Delegate to set the due date of a payment to the current date, putting the Borrower immediately in arrears. It also represents an unrealized loss in the Pool. | | `Liquidation` | The process to convert a collateral asset into the funds asset after a default is triggered. | | `Liquidity Provider (LP)` | An entity that deposits assets into a pool. | | `Loan` | A contract between Pools and Borrowers, where the Pool provides capital and the Borrower is committed to repaying on an agreed schedule with agreed terms. | | `Loan Term` | The conditions, such as number of payments and interest rate, that are specified in a loan agreement between a Borrower and a Pool Delegate. | | `Oracle` | A smart contract that provides an input of off-chain information to the blockchain such as current asset price. | | `Pool` | The contract in which a collection of LPs' deposited assets to be managed by a given Pool Delegate. | | `Pool Delegate` | The entity responsible for managing Pool assets and parameters, as well as perform all Loan underwriting and due-diligence, risk management, and liquidity management on behalf of LPs in exchange for management fees. | | `Proxy` | An intermediary smart contract that allows upgrading contracts to newer versions. | | `Refinance` | The process to renegotiate the terms associated with a Loan. | ### Technical Terms | Term | Definition | | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `accountedInterest` | The amount of outstanding interest that has been accounted by the LoanManager, but not yet received. | | `accruedInterest` | The time-dependent amount of interest represented in the LoanManager since `domainStart`. Accrues over time according to the `issuanceRate`. | | `calledPrincipal` | The amount of principal that has been called and must be returned on the next loan payment. | | `closingRate` | The fee rate (applied to principal) to close the Loan. | | `dateCalled` | The date on which the loan was called. | | `dateFunded` | The date on which the loan was funded. | | `dateImpaired` | The date on which the loan was impaired. | | `datePaid` | The date on which the loan was last paid. | | `domainEnd` | The timestamp after which the `issuanceRate` is no longer valid and interest stops accruing. | | `domainStart` | Defines the timestamp from which the `issuanceRate` is valid. | | `drawableFunds` | The amount of funds in a given Loan that can be drawn down by its Borrower. | | `gracePeriod` | An amount of seconds that a payment can be late before a default can be triggered on a Loan. | | `incomingNetInterest` | The amount of interest expected to be paid by the end of the payment interval for a given Loan, net of management fees. | | `issuanceRate` | The amount of interest per second accrued by the LoanManager, representing the aggregate current rate of accrual of interest across all outstanding Loans. This value is scaled up to 30 decimal places for improved precision. | | `lateFeeRate` | A flat rate against principal that is charged when a Loan makes a late payment. | | `lateInterestPremiumRate` | The rate at which to increase the interest rate by for late payments. | | `liquidityCap` | The maximum amount of value that a Pool can manage. It can be less than the current value of the Pool, preventing additional deposits. Deposits are limited by this value, where the maximum deposit amount is the difference between the current `liquidityCap` and the current value of the Pool. | | `noticePeriod` | The number of seconds remaining after a loan is called when the borrower is considered to be in default. | | `principalOut` | The aggregate amount of outstanding principal across all Loans in a given Pool. | | `refinanceInterest` | An amount of interest that was accrued during the payment interval prior to a refinance. This amount is added to the first payment post-refinance. | | `unrealizedLosses` | An amount of losses that is accounted and represented in the Pool's value, but it still can be recovered, either through repayments or liquidations. | # Smart Contract Addresses | Chain | List of addresses | | ---------------- | ---------------------------------------------------------------------------------------------- | | Ethereum Mainnet | [list](https://github.com/maple-labs/address-registry/blob/main/MapleAddressRegistryETH.md) | | Base L2 | [list](https://github.com/maple-labs/address-registry/blob/main/MapleAddressRegistryBASEL2.md) | Developer reference * Solidity source for the on-chain registries (addresses embedded in contracts) can be reviewed here: * Ethereum: <https://github.com/maple-labs/address-registry/blob/main/contracts/MapleAddressRegistryETH.sol> * Base L2: <https://github.com/maple-labs/address-registry/blob/main/contracts/MapleAddressRegistryBASEL2.sol> # Fees ## Defi Strategies fees A performance fee is charged on the yield generated from each strategy. A snapshot is taken of the strategy's total assets during `deposit()`, `withdraw()`, and `setStrategyFeeRate()` function calls as `lastRecordedTotalAssets`. This snapshot is then compared at the next interaction, and if yield has been generated, the fee is charged and sent to the Maple Treasury. The strategy fee is calculated using the formula: $$ \huge \text{strategyFee} = \dfrac{\text{yieldAccrued} \times \text{strategyFeeRate}}{1 \times 10^6} $$ **Where:** * `yieldAccrued` is the total yield accrued since the last `deposit()`, `withdraw()`, or `setStrategyFeeRate()` function call. * `strategyFeeRate` is the fee rate for the strategy, which can be no greater than `1 x 10^6`. * `1 x 10^6` represents the scaling factor for 100%, declared as the constant `HUNDRED_PERCENT` in the contracts. The fee rate is set by the protocol admins on a per-strategy basis and can be changed at any time. ### Reactivation of Strategies Protocol admins can impair and deactivate strategies, with the ability to reactivate them at any time. During reactivation, a boolean flag indicates whether the accounting should be updated, which directly affects fee calculations. If admins choose to update the accounting, a new snapshot of total assets will be taken and fees won't be charged for the deactivated period. However, if they opt not to update the accounting, fees will be charged retroactively for the entire period. This flexibility is valuable because strategies are implemented as external contracts, making it impossible to predict potential future issues and determine the optimal accounting approach in advance. ## Loan Fees Fees in the Maple protocol can be separated into three categories: 1. **Origination Fees (fixed-term only)**: Fees paid by borrowers during loan funding and refinance operations, deducted from their drawable balance of principal. 2. **Service Fees**: Fees paid by borrowers during loan payments, added to gross interest. 3. **Management Fees**: Fees taken as a portion of gross interest paid by Borrowers when payments are made. All categories of fees are paid to two actors: 1. The Pool Delegate that manages the pool that has funded the Loan. 2. The `MapleTreasury` contract. The naming convention for fees in the smart contracts is: `actorCategoryType`. So for example, `delegateManagementFeeRate` would refer to the rate (type) that is used to calculate the management fee (c
프로젝트로 돌아가기