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).
Parameters
Section titled “Parameters”string | number
decimals
Section titled “decimals”number
Returns
Section titled “Returns”bigint