Documentation ¶
Index ¶
- Variables
- func CalculateBuyDeposit(supply *big.Int, reserve *big.Int, crr uint, wantBuy *big.Int) *big.Int
- func CalculatePurchaseReturn(supply *big.Int, reserve *big.Int, crr uint, deposit *big.Int) *big.Int
- func CalculateSaleReturn(supply *big.Int, reserve *big.Int, crr uint, sellAmount *big.Int) *big.Int
Constants ¶
This section is empty.
Variables ¶
View Source
var ( One = big.NewInt(1) MaxWeight = uint(100) MinPrecision = 32 MaxPrecision = 127 Fixed1 = hexToBig("0x080000000000000000000000000000000") Fixed2 = hexToBig("0x100000000000000000000000000000000") Ln2Numerator = hexToBig("0x3f80fe03f80fe03f80fe03f80fe03f8") Ln2Denominator = hexToBig("0x5b9de1d10bf4103d647b0955897ba80") )
Functions ¶
func CalculateBuyDeposit ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.