Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy committed Sep 11, 2024
1 parent a08d7c4 commit b140706
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions protocol/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ func (app *App) createProposalHandlers(
priceUpdateDecoder,
)
}
strategy := currencypair.NewDeltaCurrencyPairStrategy(app.PricesKeeper)
strategy := currencypair.NewDefaultCurrencyPairStrategy(app.PricesKeeper)
var priceUpdateGenerator prices.PriceUpdateGenerator = prices.NewDefaultPriceUpdateGenerator(app.PricesKeeper)

veCodec := compression.NewCompressionVoteExtensionCodec(
Expand Down Expand Up @@ -1682,7 +1682,7 @@ func (app *App) initOracle(pricesTxDecoder process.UpdateMarketPriceTxDecoder) {
app.Logger(),
vote_extensions.NewOraclePrices(app.PricesKeeper),
time.Second,
currencypair.NewDeltaCurrencyPairStrategy(app.PricesKeeper),
currencypair.NewDefaultCurrencyPairStrategy(app.PricesKeeper),
compression.NewCompressionVoteExtensionCodec(
compression.NewDefaultVoteExtensionCodec(),
compression.NewZLibCompressor(),
Expand Down
2 changes: 1 addition & 1 deletion protocol/x/prices/keeper/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (k Keeper) CreateMarket(
marketPriceStore.Set(lib.Uint32ToKey(marketPrice.Id), priceBytes)

// add the pair to the currency-pair-id cache
// k.AddCurrencyPairIDToStore(ctx, marketParam.Id, currencyPair)
k.AddCurrencyPairIDToStore(ctx, marketParam.Id, currencyPair)

// Generate indexer event.
k.GetIndexerEventManager().AddTxnEvent(
Expand Down
1 change: 0 additions & 1 deletion protocol/x/prices/keeper/slinky_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ func (k Keeper) RemoveCurrencyPairFromStore(ctx sdk.Context, cp slinkytypes.Curr
}

func (k Keeper) GetPriceForCurrencyPair(ctx sdk.Context, cp slinkytypes.CurrencyPair) (oracletypes.QuotePrice, error) {
fmt.Println("GetPriceForCurrencyPair")
id, found := k.GetIDForCurrencyPair(ctx, cp)
if !found {
return oracletypes.QuotePrice{}, fmt.Errorf("currency pair %s not found", cp.String())
Expand Down

0 comments on commit b140706

Please sign in to comment.