Documentation
¶
Index ¶
- Constants
- func FromDestToSrc(destAmount string, rate string, srcDecimals int, destDecimal int) (*big.Int, error)
- func FromSrcToDest(srcAmount string, rate string, srcDecimals int, destDecimal int) (*big.Int, error)
- func GetAmountEnableFirstBit(amount float64, decimals int) *big.Int
- func GetOrAmount(amount *big.Int) *big.Int
- func StringToWei(amount string, decimals int) (*big.Int, error)
- func ToToken(amount string, decimals int) (*big.Float, error)
- func ToWei(amount float64, decimals int) *big.Int
- type UserInfo
Constants ¶
View Source
const ( // ETHAddr ethereum address ETHAddr = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" // ETHSymbol ethereum symbol ETHSymbol = "ETH" )
Variables ¶
This section is empty.
Functions ¶
func FromDestToSrc ¶
func FromSrcToDest ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.