package astroport import ( "github.com/galacticship/terra" "github.com/shopspring/decimal" ) type XykPair struct { *terra.BasePair } func NewXykPair(querier *terra.Querier, contractAddress string, token1 terra.Token, token2 terra.Token, lpToken terra.Cw20Token) (*XykPair, error) { bp, err := terra.NewBasePair(querier, contractAddress, token1, token2, lpToken, decimal.NewFromFloat(0.003), terra.NewAssetInfoFactory()) if err != nil { return nil, err } return &XykPair{ bp, }, nil } type StablePair struct { *terra.BasePair } func NewStablePair(querier *terra.Querier, contractAddress string, token1 terra.Token, token2 terra.Token, lpToken terra.Cw20Token) (*StablePair, error) { bp, err := terra.NewBasePair(querier, contractAddress, token1, token2, lpToken, decimal.NewFromFloat(0.0005), terra.NewAssetInfoFactory()) if err != nil { return nil, err } return &StablePair{ bp, }, nil }