Skip to content

Commit

Permalink
Merge branch 'uddugteam:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
andskur authored Jan 23, 2024
2 parents 364cb5f + f0ceed3 commit 4989315
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/service/coinAvgPrice.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ func (s *coinAVGPriceSender) listenAndSendARGPrice(tokens []string, id int, freq
continue
}

price := big.NewInt(int64(data.Value))
s.prices[id] = price
price := big.NewFloat(data.Value)
price = price.Mul(price, big.NewFloat(100000))
integer, _ := price.Int64()

s.prices[id] = big.NewInt(integer)

if len(s.prices) != len(s.tokens) {
logTrace(fmt.Sprint("wahiting for all coin prices..."), "listenAndSendARGPrice")
Expand Down

0 comments on commit 4989315

Please sign in to comment.