Check membership

Check membership on Moonwell

Base
Base

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.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More on Moonwell · 17