Skip to content

Commit

Permalink
Merge pull request #2645 from manuelsc/nobids/withdrawalLimit
Browse files Browse the repository at this point in the history
Premium maxlimit for withdrawal api search
  • Loading branch information
manuelsc authored Nov 3, 2023
2 parents 2402176 + fac8ece commit 85c131c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3772,7 +3772,8 @@ func ApiWithdrawalCredentialsValidators(w http.ResponseWriter, r *http.Request)
limit := parseUintWithDefault(limitQuery, 10)

// We set a max limit to limit the request call time.
const maxLimit uint64 = 200
var maxLimit uint64 = utilMath.MaxU64(200, uint64(getUserPremium(r).MaxValidators))

limit = utilMath.MinU64(limit, maxLimit)

result := []struct {
Expand Down

0 comments on commit 85c131c

Please sign in to comment.