Skip to main content

JBAccountingContext

Git Source

struct JBAccountingContext {
address token;
uint8 decimals;
uint32 currency;
}

Properties

NameTypeDescription
tokenaddressThe address of the token that accounting is being done with.
decimalsuint8The number of decimals expected in that token's fixed point accounting.
currencyuint32The currency that the token is priced in terms of. By convention, this is uint32(uint160(tokenAddress)) for tokens, or a constant ID from e.g. JBCurrencyIds for other currencies.