package
1.0.1
Repository: https://github.com/tdex-network/tdex-daemon.git
Documentation: pkg.go.dev

# Functions

Add takes two uint64 numbers and sum them x + y and returns the result as decimal.Decimal.
AddDecimal takes two decimal.Decimal numbers and sum them x + y and returns the result as decimal.Decimal.
BigAdd takes two int64 numbers and sum them x + y and returns the result.
BigDiv takes two int64 numbers and sum them x - y and returns the result.
BigMul takes two int64 numbers and sum them x - y and returns the result.
BigSub takes two int64 numbers and sum them x - y and returns the result.
Div takes two uint64 numbers and divides them x / y and returns the result as decimal.Decimal.
DivDecimal takes two decimal.Decimal numbers and divides them x / y and returns the result as decimal.Decimal.
LessFee calculates an amount with a subtracted given a int64 amount and a fee expressed in basis point (ie.
Mul takes two int64 numbers and multiply them x * y and returns the result as decimal.Decimal.
MulDecimal takes two decimal.Decimal numbers and multiply them x * y and returns the result as decimal.Decimal.
PlusFee calculates an amount with a fee added given a int64 amount and a fee expressed in basis point (ie.
Sub takes two uint64 numbers and subtract them x - y and returns the result as decimal.Decimal.
SubDecimal takes two decimal.Decimal numbers and subtract them x - y and returns the result as decimal.Decimal.

# Constants

TenThousands ...

# Variables

BigOne represents a single unit of an asset with precision 8.
BigOneDecimal represents a single unit of an asset with precision 8 as decimal.Decimal.