utils

package
v0.0.0-...-8b20efb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DenormalizeAmount

func DenormalizeAmount(token string, amount *big.Int, tokenInfos daemons.TokenInfos) (*big.Float, error)

func NormalizeAmount

func NormalizeAmount(token, amount string) (common.Address, *big.Int, error)

@param token left empty will return with a default decimals of "18"

func TokenDecimals

func TokenDecimals(symbol string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL