The Accountant contract tracks the exchange rate between account shares and the underlying asset. Equivalent to SDK’s internalDocumentation Index
Fetch the complete documentation index at: https://developers.paxoslabs.com/llms.txt
Use this file to discover all available pages before exploring further.
getRateInQuoteWithAssetDecimals().
Contract Method
getRateInQuoteSafe(quote)
Returns the amount of the quote asset per 1e18 account 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 Account 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 account share ≈ 1.05 USDC.