Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Dec 12, 2024
1 parent ef30d0b commit 0344912
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/v2/db/client/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ func (v2dbclient *V2Database) IncrementStakerStats(
upsertUpdate := bson.M{
"$inc": bson.M{
"active_tvl": int64(amount),
"total_tvl": int64(amount),
"active_delegations": 1,
"total_delegations": 1,
},
}
return v2dbclient.updateStakerStats(ctx, types.Active.ToString(), stakingTxHashHex, stakerPkHex, upsertUpdate)
Expand Down Expand Up @@ -323,9 +321,7 @@ func (v2dbclient *V2Database) IncrementFinalityProviderStats(
SetUpdate(bson.M{
"$inc": bson.M{
"active_tvl": int64(amount),
"total_tvl": int64(amount),
"active_delegations": 1,
"total_delegations": 1,
},
}).
SetUpsert(true)
Expand Down

0 comments on commit 0344912

Please sign in to comment.