From 0dfe5b774321a9390e723519323437e011e02c63 Mon Sep 17 00:00:00 2001 From: pharr117 Date: Thu, 21 Mar 2024 19:23:13 -0400 Subject: [PATCH] Add staking type to cryptotaxcalculator withdraw delegator rewards parsers --- csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go | 4 ++-- csv/parsers/cryptotaxcalculator/types.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go b/csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go index a14f84e..18dece5 100644 --- a/csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go +++ b/csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go @@ -276,7 +276,7 @@ func ParseMsgWithdrawDelegatorReward(address string, event db.TaxableTransaction if err != nil { config.Log.Error("Error with ParseMsgWithdrawDelegatorReward.", err) } - // row.Label = Unstake + row.Type = Staking return *row, err } @@ -435,7 +435,7 @@ func ParseConcentratedLiquidityCollection(event db.TaxableTransaction) (Row, err func ParseValsetPrefRewards(event db.TaxableTransaction) (Row, error) { row := &Row{} - row.Type = Receive + row.Type = Staking row.Date = event.Message.Tx.Block.TimeStamp.Format(TimeLayout) err := parseAndAddReceivedAmount(row, event) diff --git a/csv/parsers/cryptotaxcalculator/types.go b/csv/parsers/cryptotaxcalculator/types.go index 400c136..675f967 100644 --- a/csv/parsers/cryptotaxcalculator/types.go +++ b/csv/parsers/cryptotaxcalculator/types.go @@ -43,4 +43,5 @@ const ( Receive = "receive" Sell = "sell" Fee = "fee" + Staking = "staking" )