Documentation ¶
Index ¶
- Variables
- type Pair
- func (pair *Pair) CalcOwnership(share uint64) float32
- func (pair *Pair) CalcShare(share uint64, reverse bool) (value uint64)
- func (pair *Pair) CalcSwap(amt uint64, reverse bool) (receive uint64, fee uint64, slip float64)
- func (pair *Pair) Parse(scId string, values map[string]interface{}) (err error)
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var DEX_SC_SHA256 = "51f330aeb991da9c845b77daf45304acf6e07a0e87125b8c0b8884dadbbd9dba"
Functions ¶
This section is empty.
Types ¶
type Pair ¶
type Pair struct { SCID string NumTrustees uint64 Asset1 string Asset2 string Symbol string Quorum uint64 Fee uint64 Liquidity1 uint64 Liquidity2 uint64 AddCount uint64 // liquidity add count RemoveCount uint64 // liquidity remove count SwapCount uint64 }
func (*Pair) CalcOwnership ¶
Click to show internal directories.
Click to hide internal directories.