Skip to content

Commit

Permalink
Update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime committed Mar 7, 2024
1 parent d53292c commit 667a804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/x/prices/keeper/slinky_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ func (k Keeper) GetIDForCurrencyPair(ctx sdk.Context, cp slinkytypes.CurrencyPai
func (k Keeper) GetPriceForCurrencyPair(ctx sdk.Context, cp slinkytypes.CurrencyPair) (oracletypes.QuotePrice, error) {
id, found := k.GetIDForCurrencyPair(ctx, cp)
if !found {
return oracletypes.QuotePrice{}, fmt.Errorf("currency pair %s not found", cp.String())
return oracletypes.QuotePrice{}, fmt.Errorf("id for currency pair %s not found", cp.String())
}
mp, err := k.GetMarketPrice(ctx, uint32(id))
if err != nil {
return oracletypes.QuotePrice{}, fmt.Errorf("currency pair %s not found", cp.String())
return oracletypes.QuotePrice{}, fmt.Errorf("market price not found for currency pair %s", cp.String())
}
return oracletypes.QuotePrice{
Price: math.NewIntFromUint64(mp.Price),
Expand Down

0 comments on commit 667a804

Please sign in to comment.