LogoLogo
  • Discover
    • 🌜About Moonwell
    • 👥Contributors
    • 🌐Networks
    • 🔗Quick Links
  • Moonwell Overview
    • 🌙Getting Started
      • Wallet Connection
    • 🤝Lend
      • Supply
      • Withdraw
      • Claiming Rewards
      • Lend FAQ
    • 🤝Borrow
      • How to Borrow
      • Loan Repayment
      • Credit and Liquidations
      • Borrow FAQ
    • 🏦Vaults
      • Interacting with Morpho Vaults
      • Fund Wallet and Deposit
    • 🌐Virtual Accounts
      • Create Virtual Account
      • Accessing Virtual Account
      • FAQ
    • 🦋Isolated Markets
      • Interacting with Isolated Markets
    • 💲USDC Anywhere
      • Supply USDC
      • Borrow USDC
    • 💳Moonwell Card
      • Get Started
      • Load and Spend
      • Auto Load
      • FAQ
    • 💡Smart Wallet
      • Create
      • Connect
      • Getting Started
    • 🌙Tokens
      • WELL Transparency Report
      • WELL Transfer
      • WELL Migration (Base)
      • MFAM Transparency Report
    • 🫂Stake
      • How to Stake
      • How to Unstake
      • Claim Staking Rewards
  • Governance
    • 🗳️Moonwell Governance
      • 🪙Delegate
      • 📜Proposals
      • 🗳️Voting
      • 🔢Parameters
      • ❔FAQ
      • 📜DAO Constitutions
        • Moonwell DAO Constitution
        • Moonwell Apollo DAO Constitution
      • 🗣️Forum
    • 🏛️Moonwell Foundation
      • 🏦Treasury
      • 🔒Security Council
      • 📃Governing Documents
        • Foundation Bylaws
        • Foundation M&A
  • Protocol Information
    • ‼️Protocol Information
    • 📊Asset Risk Parameters
    • 📈Interest Rate Curves
    • ⚖️Reserve Auctions
    • 🛡️Security
    • 🔎Audits
    • 📜Contracts
    • 🖊️Terms of Service
  • Developers
    • 🪙mTokens
      • 📝Contract Interactions
    • 👮‍♀️Comptroller
      • 📝Contract Interactions
      • 🚦Risk Parameters
      • 🛡️Guardian Roles
    • 🏦4626 Vaults
      • 👷‍♂️ERC20 Vault Deployment
        • 🗒️4626 ERC20 Vault Interface
      • 👷‍♀️ETH Vault Deployment
        • 🗒️4626 ETH Vault Interface
        • 📍4626 ETH Router
    • 💻Moonwell SDK
    • 🔨Contribution Guidelines
Powered by GitBook
On this page
  • Collateral Factor
  • Price Oracle
  • Close Factor
  • Liquidation Incentive
  • Market Borrow Cap
  • Gas Amount
  • Reward Speed
  1. Developers
  2. Comptroller

Risk Parameters

PreviousContract InteractionsNextGuardian Roles

Last updated 10 months ago

The following risk parameters are adjustable within the Moonwell Comptroller. Most of these correspond with the variables.

Collateral Factor

The Collateral Factor is the percentage of a supplied asset that is treated as liquidity, and is set per market. If CF=0.6 for an asset, then every $1 of that asset supplied allows for $0.60 of borrowing power within the protocol. Stored in the collateralFactorMantissa variable and set via .

Price Oracle

This is the price oracle contract address used by the protocol to determine the prices of specific assets within the market.

Stored in the oracle variable, and set via .

Close Factor

The Close Factor is the percentage of a specific borrowers position that can be liquidated in one transaction.

Stored in the closeFactorMantissa variable and set via .

Liquidation Incentive

The Liquidation Incentive is the discount on collateral that a liquidator receives for liquidating a position.

Stored in the liquidationIncentiveMantissa variable and set via .

Market Borrow Cap

The Market Borrow Cap is the maximum amount of borrows allowed for a specific market.

Gas Amount

The Comptroller Gas Amount parameter sets the amount of gas that a transaction to send the native token on a chain will use - this is helpful to enable things like withdraws to smart contracts like Gnosis Safe, but if set too high can be an avenue for re-entrancy issues within the protocol.

Reward Speed

The Comptroller is responsible for disbursing rewards, and supports different emission speeds for borrowers and suppliers. These speeds are set per market and per emission token where rewardType 0 = WELL, and 1 = GLMR

Stored in the borrowCaps variable and set via .

Stored in the gasAmount variable and set via .

The reward speeds for a market are stored in the supplyRewardSpeeds and borrowRewardSpeeds variables and set via .

👮‍♀️
🚦
Comptroller Storage
this function
this function
this function
this function
this function
this function
this function