Skip to main content
The Accountant contract tracks the exchange rate between vault shares and the underlying asset. Equivalent to SDK’s internal getRateInQuoteWithAssetDecimals().

Contract Method

getRateInQuoteSafe(quote)

Returns the amount of the quote asset per 1e18 vault shares. Returns: 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.