
Moonwell · Reads onchain state
Reads whether an account has entered a Moonwell market as collateral. checkMembership answers true once the account has entered the market, whether through enterMarkets or by borrowing from it, and false after it exits. Reach for it to enter a market only when the account is not in it yet, or to confirm a supply backs the account's borrows.