Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch/Add staking type to cryptotaxcalculator withdraw delegator rewards pa… #537

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
)
Loading