Documentation
¶
Index ¶
Constants ¶
View Source
const ( AmountEthUnit = "1000000000000000000" // in wei (1 eth) AmountKnstlUnit = "1000000" // in udarc (1 darc) AmountSolUnit = "1000000" // in udarc (1 qdarc) )
Variables ¶
View Source
var AmountUnitByChain = map[types.ChainType]string{ types.BSC: AmountEthUnit, types.KNSTL: AmountKnstlUnit, types.SOL: AmountSolUnit, types.ETH: AmountEthUnit, }
AmountUnitByChain is a map for getting chain unit of amount.
Functions ¶
func DecimalToSatoshis ¶
func FloatDecPlaces ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.