Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TargetAmount ¶
TargetAmount converts the provided source amount to a target amount, based on the source & destination decimals Example: sourceDecimals 8, targetDecimals 8, source amount 1 000 => target amount 1 000 Example: sourceDecimals 9, targetDecimals 8, source amount 1 000 => target amount 100 Example: sourceDecimals 8, targetDecimals 9, source amount 1 000 => target amount 10 000
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.