
Moonwell · 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.