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
  • Public Functions
  • Enter Market
  • Exit Market
  • Claim Reward
  • Admin Functions
  • Set Price Oracle
  • Set Pause Guardian
  • Set Gas Amount
  • Set Mint Paused
  • Set Borrow Paused
  • Set Transfer Paused
  • Set Seize Paused
  • Set WELL Address
  • GrantWell
  1. Developers
  2. Comptroller

Contract Interactions

PreviousComptrollerNextRisk Parameters

Last updated 11 months ago

Public Functions

By calling this function you'll specify the mTokens that you wish to "enter" the market for. This marks your supplied position in a market to be used for collateral calculations, and is a pre-requirement for borrowing assets from the protocol.

Does the opposite of "Enter Market" - marks a supplied position as no longer to be used for collateral calculations. Can not occur while actively borrowing against this market and cannot succeed if doing so will plunge your position underwater.

The Claim Reward function in the comptroller sends the invoker the owed protocol rewards for their supply/borrow activity.

Admin Functions

Only the protocol admin can call these functions!

Sets the price oracle to be used by the protocol

Sets the address of the pause guardian used across the protocol

Sets the amount of gas sent with any native token sends from the protocol, useful to support things like Gnosis Safe, but should be set to the minimum threshold necessary to hedge against reentrancy issues.

Disables minting for a specified market

Disables borrowing for a specified market

Disables transfers of mTokens between two addresses. Does *NOT* prevent supplying, borrowing, repaying, or liquidations.

Disables liquidations across the entire protocol

Sets the WELL address used for sending out rewards

Sends a specific amount of well from the comptroller to a specified address

👮‍♀️
📝
Enter Market
Exit Market
Claim Reward
Set Price Oracle
Set Pause Guardian
Set Gas Amount
Set Mint Paused
Set Borrow Paused
Set Transfer Paused
Set Seize Paused
Set WELL Address
GrantWell