Preparing search index...
The search index is not available
Carrot Protocol Documentation
Carrot Protocol Documentation
@carrot-protocol/common
amountToUsd
Function amountToUsd
amountToUsd
(
amount
:
BN
,
decimals
:
number
,
price
:
number
)
:
number
Converts a token amount to its USD value based on price and decimals.
Parameters
amount
:
BN
decimals
:
number
price
:
number
Returns
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Carrot Protocol Documentation
Loading...
Converts a token amount to its USD value based on price and decimals.