Get underlying price

Get underlying price on Moonwell

Base
Base

Reads onchain state

Reads the price Moonwell values an asset at. The comptroller's oracle prices the market's asset in USD for every liquidity check, borrow and liquidation; the action reads that oracle and reports the price of one whole token at 18 decimals. Reach for it to act on the same price the market will judge the account by, rather than a spot price that can drift from it.

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