getBN()
getBN()
function getBN(value, decimals): BN;Defined in: utils.ts:11
Used for conversion of token amounts to their Big Number representation. Get Big Number representation in the smallest units from the same value in the highest units.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | number | Number of tokens you want to convert to its BN representation. |
decimals | number | Number of decimals the token has. |
Returns
BN