forked from osmosis-labs/osmosis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.go
More file actions
27 lines (21 loc) · 782 Bytes
/
constants.go
File metadata and controls
27 lines (21 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
const (
MinPoolAssets = 2
MaxPoolAssets = 8
OneShareExponent = 18
// Raise 10 to the power of SigFigsExponent to determine number of significant figures.
// i.e. SigFigExponent = 8 is 10^8 which is 100000000. This gives 8 significant figures.
SigFigsExponent = 8
BalancerGasFeeForSwap = 10_000
)
var (
// OneShare represents the amount of subshares in a single pool share.
OneShare = sdk.NewIntWithDecimal(1, OneShareExponent)
// InitPoolSharesSupply is the amount of new shares to initialize a pool with.
InitPoolSharesSupply = OneShare.MulRaw(100)
// SigFigs is the amount of significant figures used to calculate SpotPrice
SigFigs = sdk.NewDec(10).Power(SigFigsExponent).TruncateInt()
)