Skip to content

Commit

Permalink
native amount out change side
Browse files Browse the repository at this point in the history
  • Loading branch information
ductm54 committed Oct 13, 2023
1 parent 25353dd commit 5381b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/parser/native/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (p *Parser) Parse(log types.Log, blockTime uint64) (storage.TradeLog, error
Taker: o.Recipient.String(),
MakerToken: o.TokenOut.String(),
TakerToken: o.TokenIn.String(),
MakerTokenAmount: o.AmountOut.String(),
MakerTokenAmount: o.AmountOut.Abs(o.AmountOut).String(),
TakerTokenAmount: o.AmountIn.String(),
ContractAddress: o.Raw.Address.String(),
BlockNumber: o.Raw.BlockNumber,
Expand Down

0 comments on commit 5381b54

Please sign in to comment.