Skip to content

Commit

Permalink
fix trade side (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
halink0803 committed Jan 12, 2022
1 parent 1e64c9f commit bc3c637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounting/cex-trade/http/trades.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (s *Server) processBinanceConvertTrade(trade zerox.ConvertTradeInfo, origin
ethAmount = (inTokenAmount * trade.InTokenRate) / trade.ETHRate

// find side and rate
if trade.IsBuyer {
if !trade.IsBuyer {
symbol, side, rate = convertRateToBinance(inTokenAmount, ethAmount, inToken, eth)
} else {
symbol, side, rate = convertRateToBinance(ethAmount, inTokenAmount, eth, inToken)
Expand Down

0 comments on commit bc3c637

Please sign in to comment.