Documentation ¶
Index ¶
Constants ¶
View Source
const ( ChainPrefix = "astra" Denom = "astra" BaseDenom = "aastra" Decimals = 18 )
Variables ¶
View Source
var AsaDecimalsBigInt = big.NewInt(Decimals)
Functions ¶
func BigIntToFloat64 ¶ added in v0.0.3
BigIntToFloat64 returns the normalized amount without decimals.
func Float64ToBigInt ¶ added in v0.0.3
Float64ToBigInt returns the raw big int value including the decimals.
func FormatAmount ¶
FormatAmount returns string-formatted of the given float64 number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.