getRateInQuoteWithAssetDecimals().
Contract Method
getRateInQuoteSafe(quote)
Returns the amount of the quote asset per 1e18 vault shares.
| Parameter | Type | Description |
|---|---|---|
quote | address | The token address to quote the rate in (e.g., USDC address) |
uint256 rateInQuote — amount of the quote asset per one full share (1e18)
ABI
Usage
Call on the Accountant contract (vault.accountantModuleId from Vault Discovery).
For deposits (calculating minimumMint)
For withdrawals (converting want amount to shares)
The rate uses the quote asset’s decimals. For example, if quoting in USDC
(6 decimals) and the rate is
1050000, that means 1 vault share ≈ 1.05 USDC.