Skip to content

Commit

Permalink
Add staking type to cryptotaxcalculator withdraw delegator rewards pa…
Browse files Browse the repository at this point in the history
…rsers (#537)
  • Loading branch information
pharr117 committed Mar 21, 2024
1 parent 41474af commit b6bf428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions csv/parsers/cryptotaxcalculator/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ const (
Receive = "receive"
Sell = "sell"
Fee = "fee"
Staking = "staking"
)

0 comments on commit b6bf428

Please sign in to comment.