Skip to content

Commit

Permalink
TRD-554 add taker information for 1inch v6 trade logs (#67)
Browse files Browse the repository at this point in the history
* TRD-554 add taker information for 1inch v6

---------

Co-authored-by: minhthanh.vu <ngocthanh1389@gmail.com>
  • Loading branch information
linhnt3400 and ngocthanh1389 authored Aug 29, 2024
1 parent 5b30ccb commit 6e4898b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/parser/kyberswap/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (p *Parser) Parse(log ethereumTypes.Log, blockTime uint64) (storage.TradeLo
return storage.TradeLog{}, err
}
res := storage.TradeLog{
Taker: e.DstReceiver.String(),
Taker: e.Sender.String(),
MakerToken: e.DstToken.String(),
TakerToken: e.SrcToken.String(),
MakerTokenAmount: e.ReturnAmount.String(),
Expand Down
1 change: 1 addition & 0 deletions pkg/parser/oneinchv6/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (p *Parser) ParseFromInternalCall(order storage.TradeLog, internalCall type
return order, fmt.Errorf("error when parse contract call to order %w", err)
}

order.Taker = internalCall.From
return order, nil
}

Expand Down

0 comments on commit 6e4898b

Please sign in to comment.