Skip to main content

MathUtil

bigint math with explicit rounding, matching Alephium’s integer semantics.
Native bigint / truncates toward zero. For negative values that differs from the contracts. Use alphDiv whenever you reproduce on-chain math with signed amounts.

NumericUtils

Token ordering

Address normalization

Integrator fee validation

Rules are listed in Integrator fees.

Logging

Each module logs through a named logger (CpmmModule, ClmmModule, StakingModule, TokenModule). The default level is Error.
setLoggerLevel works before or after Powfi.load. Module names are case-sensitive, and a misspelled name silently does nothing. You can also create your own logger with createLogger(name). It returns a Logger with error, warning, info, and debug methods.