diff --git a/pkg/parser/kyberswap/parser.go b/pkg/parser/kyberswap/parser.go index ec66391..630feba 100644 --- a/pkg/parser/kyberswap/parser.go +++ b/pkg/parser/kyberswap/parser.go @@ -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(), diff --git a/pkg/parser/oneinchv6/parser.go b/pkg/parser/oneinchv6/parser.go index c04e47d..4445ec5 100644 --- a/pkg/parser/oneinchv6/parser.go +++ b/pkg/parser/oneinchv6/parser.go @@ -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 }