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