Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xinran chen committed Jul 12, 2023
1 parent 97d6c27 commit 4c86e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner-api/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (p *ProverTaskService) GetTotalRewards(pubkey string) (decimal.Decimal, err
if err != nil {
return decimal.Decimal{}, err
}
var rewards decimal.Decimal
rewards := decimal.New(0, 0)
for _, task := range tasks {
rewards.Add(task.Reward)
}
Expand Down

0 comments on commit 4c86e2f

Please sign in to comment.