Documentation
¶
Index ¶
- func GetAffiliateRefereeLowestTakerFeeFromTiers(tiers []*types.PerpetualFeeTier) int32
- func GetLowestMakerFeeFromTiers(tiers []*types.PerpetualFeeTier) int32
- func NewMsgServerImpl(keeper types.FeeTiersKeeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAffiliateRefereeLowestTakerFee(ctx sdk.Context) int32
- func (k Keeper) GetLowestMakerFee(ctx sdk.Context) int32
- func (k Keeper) GetPerpetualFeeParams(ctx sdk.Context) (params types.PerpetualFeeParams)
- func (k Keeper) GetPerpetualFeePpm(ctx sdk.Context, address string, isTaker bool) int32
- func (k Keeper) HasAuthority(authority string) bool
- func (k Keeper) InitializeForGenesis(ctx sdk.Context)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) PerpetualFeeParams(c context.Context, req *types.QueryPerpetualFeeParamsRequest) (*types.QueryPerpetualFeeParamsResponse, error)
- func (k Keeper) SetPerpetualFeeParams(ctx sdk.Context, params types.PerpetualFeeParams) error
- func (k *Keeper) SetRevShareKeeper(revShareKeeper types.RevShareKeeper)
- func (k *Keeper) SetVaultKeeper(vk types.VaultKeeper)
- func (k Keeper) UserFeeTier(c context.Context, req *types.QueryUserFeeTierRequest) (*types.QueryUserFeeTierResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAffiliateRefereeLowestTakerFeeFromTiers ¶
func GetAffiliateRefereeLowestTakerFeeFromTiers(tiers []*types.PerpetualFeeTier) int32
GetAffiliateRefereeLowestTakerFeeFromTiers returns the minimum of - the taker fee of the tier that has the max absolute volume requirement - the taker fee of the referee starting fee tier
func GetLowestMakerFeeFromTiers ¶
func GetLowestMakerFeeFromTiers(tiers []*types.PerpetualFeeTier) int32
func NewMsgServerImpl ¶
func NewMsgServerImpl(keeper types.FeeTiersKeeper) types.MsgServer
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, statsKeeper types.StatsKeeper, affiliatesKeeper types.AffiliatesKeeper, storeKey storetypes.StoreKey, authorities []string, ) *Keeper
func (Keeper) GetAffiliateRefereeLowestTakerFee ¶
func (Keeper) GetLowestMakerFee ¶
GetLowestMakerFee returns the lowest maker fee among any tiers.
func (Keeper) GetPerpetualFeeParams ¶
func (k Keeper) GetPerpetualFeeParams( ctx sdk.Context, ) ( params types.PerpetualFeeParams, )
GetPerpetualFeeParams returns the PerpetualFeeParams in state.
func (Keeper) GetPerpetualFeePpm ¶
func (Keeper) HasAuthority ¶
func (Keeper) InitializeForGenesis ¶
func (Keeper) PerpetualFeeParams ¶
func (k Keeper) PerpetualFeeParams( c context.Context, req *types.QueryPerpetualFeeParamsRequest, ) ( *types.QueryPerpetualFeeParamsResponse, error, )
Params processes a query request/response for the Params from state.
func (Keeper) SetPerpetualFeeParams ¶
SetPerpetualFeeParams updates the PerpetualFeeParams in state. Returns an error iff validation fails.
func (*Keeper) SetRevShareKeeper ¶
func (k *Keeper) SetRevShareKeeper(revShareKeeper types.RevShareKeeper)
func (*Keeper) SetVaultKeeper ¶
func (k *Keeper) SetVaultKeeper(vk types.VaultKeeper)
SetVaultKeeper sets the `VaultKeeper` reference in `FeeTiersKeeper`. The reference is set with an explicit method call rather than during `NewKeeper` due to the circular dependency `Clob` -> `Vault` -> `FeeTiers` -> `Clob`.
func (Keeper) UserFeeTier ¶
func (k Keeper) UserFeeTier( c context.Context, req *types.QueryUserFeeTierRequest, ) ( *types.QueryUserFeeTierResponse, error, )