Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2696 from bandprotocol/fix-price-bug
Browse files Browse the repository at this point in the history
fix no ask count when save
  • Loading branch information
Benzbeeb authored Oct 2, 2020
2 parents cf4d271 + dc3b655 commit 9e3d6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/pricer/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (app *App) handleEventRequestExecute(evMap EvMap) {
obi.MustDecode(result.ResponsePacketData.Result, &output)
for idx, symbol := range input.Symbols {
price := pricecache.NewPrice(input.Multiplier, output.Pxs[idx], result.ResponsePacketData.ResolveTime)
err := app.cache.SetPrice(pricecache.GetFilename(symbol, result.RequestPacketData.MinCount, result.RequestPacketData.MinCount), price)
err := app.cache.SetPrice(pricecache.GetFilename(symbol, result.RequestPacketData.MinCount, result.RequestPacketData.AskCount), price)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 9e3d6ba

Please sign in to comment.