Documentation ¶
Index ¶
- type ProgrammedPoolManagerInterface
- func (p *ProgrammedPoolManagerInterface) GetNextPoolId(ctx sdk.Context) uint64
- func (p *ProgrammedPoolManagerInterface) ProgramPoolDenomsOverride(poolId uint64, overrideDenoms []string, overrideErr error)
- func (p *ProgrammedPoolManagerInterface) ProgramPoolSpotPriceOverride(poolId uint64, quoteDenom, baseDenom string, overrideSp osmomath.Dec, ...)
- func (p *ProgrammedPoolManagerInterface) RouteCalculateSpotPrice(ctx sdk.Context, poolId uint64, quoteDenom, baseDenom string) (price osmomath.BigDec, err error)
- func (p *ProgrammedPoolManagerInterface) RouteGetPoolDenoms(ctx sdk.Context, poolId uint64) (denoms []string, err error)
- type SpotPriceInput
- type SpotPriceResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgrammedPoolManagerInterface ¶
type ProgrammedPoolManagerInterface struct {
// contains filtered or unexported fields
}
func NewProgrammedAmmInterface ¶
func NewProgrammedAmmInterface(underlyingKeeper types.PoolManagerInterface) *ProgrammedPoolManagerInterface
func (*ProgrammedPoolManagerInterface) GetNextPoolId ¶
func (p *ProgrammedPoolManagerInterface) GetNextPoolId(ctx sdk.Context) uint64
func (*ProgrammedPoolManagerInterface) ProgramPoolDenomsOverride ¶
func (p *ProgrammedPoolManagerInterface) ProgramPoolDenomsOverride(poolId uint64, overrideDenoms []string, overrideErr error)
func (*ProgrammedPoolManagerInterface) ProgramPoolSpotPriceOverride ¶
func (*ProgrammedPoolManagerInterface) RouteCalculateSpotPrice ¶
func (*ProgrammedPoolManagerInterface) RouteGetPoolDenoms ¶
type SpotPriceInput ¶
type SpotPriceInput struct {
// contains filtered or unexported fields
}
TODO, generalize to do a sum type on denoms
type SpotPriceResult ¶
Click to show internal directories.
Click to hide internal directories.