strategy

package
v0.0.0-...-9699e71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMarketMapUpserts

func GetMarketMapUpserts(
	logger *zap.Logger,
	actual,
	generated mmtypes.MarketMap,
) ([]mmtypes.Market, error)

GetMarketMapUpserts returns the sequence of market-map updates required to translate actual (on chain) to generated. Specifically, for any markets for which actual.Markets[ticker] != generated.Markets[ticker], we'll return a MsgUpsertMarket setting actual.Markets[ticker] to generated.Markets[ticker].

func PruneNormalizeByPairs

func PruneNormalizeByPairs(
	logger *zap.Logger,
	generated mmtypes.MarketMap,
) (mmtypes.MarketMap, error)

PruneNormalizeByPairs removes any provider configs for enabled markets with providers with disabled normalized pairs from markets.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL