Documentation

Currency
in package

Table of Contents

Methods

convertToDecimals()  : string
Method for safe conversion from coin/token decimals.
getConversionFactor()  : int
Get the conversion factor based on the coin or token symbol.

Methods

convertToDecimals()

Method for safe conversion from coin/token decimals.

public static convertToDecimals(string $amount, NetworkSymbol $coinSymbol[, TokenSymbol|null $tokenSymbol = null ]) : string
Parameters
$amount : string
$coinSymbol : NetworkSymbol
$tokenSymbol : TokenSymbol|null = null
Return values
string

getConversionFactor()

Get the conversion factor based on the coin or token symbol.

private static getConversionFactor(string $coinSymbol[, string|null $tokenSymbol = null ]) : int
Parameters
$coinSymbol : string
$tokenSymbol : string|null = null
Return values
int

        
On this page

Search results