Skip to content
docs

fromDecimalString

fromDecimalString(value, decimals): bigint

Defined in: protocol-lending-kamino-solana/src/amounts.ts:39

Decimal string → base units, rounded down (the API reports decimals; the chain counts base units). Every figure the API reports — amounts, rates, prices — is non-negative, so a sign is refused: a negative deposit or tokensPerShare turned the guard’s minimum into permission to drain (scan 2026-10-27 modules, F10/F11).

string | number

number

bigint