Skip to content

Commit 8be90bc

Browse files
committed
fix: remove blockHeight specifier when getting summarized rewards to claim
1 parent 2a822fb commit 8be90bc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkg/rewards/claim.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ func batchClaim(
152152
earnerAddr,
153153
tokenAddrs,
154154
sidecarClient,
155-
blockHeight,
156155
)
157156

158157
if err != nil {
@@ -170,13 +169,11 @@ func getClaimableRewardsForEarner(
170169
ctx context.Context,
171170
earnerAddress gethcommon.Address,
172171
sidecarClient rewardsV1.RewardsGatewayClient,
173-
blockHeight uint64,
174172
) (map[gethcommon.Address]*big.Int, error) {
175173
summarizedRewards, err := sidecarClient.GetSummarizedRewardsForEarner(
176174
ctx,
177175
&rewardsV1.GetSummarizedRewardsForEarnerRequest{
178176
EarnerAddress: strings.ToLower(earnerAddress.String()),
179-
BlockHeight: &blockHeight,
180177
},
181178
)
182179
if err != nil {
@@ -208,14 +205,13 @@ func generateClaimPayload(
208205
earnerAddress gethcommon.Address,
209206
tokenAddresses []gethcommon.Address,
210207
sidecarClient rewardsV1.RewardsGatewayClient,
211-
blockHeight uint64,
212208
) (
213209
*rewardsV1.Proof,
214210
error,
215211
) {
216212
tokens := make([]string, 0)
217213
if len(tokenAddresses) == 0 {
218-
tokenMap, err := getClaimableRewardsForEarner(ctx, earnerAddress, sidecarClient, blockHeight)
214+
tokenMap, err := getClaimableRewardsForEarner(ctx, earnerAddress, sidecarClient)
219215
if err != nil {
220216
return nil, eigenSdkUtils.WrapError("failed to get claimable rewards for earner", err)
221217
}
@@ -304,7 +300,6 @@ func (c ClaimCmd) Execute(cCtx *cli.Context) error {
304300
config.EarnerAddress,
305301
config.TokenAddresses,
306302
sidecarClient,
307-
blockHeight,
308303
)
309304

310305
if err != nil {

0 commit comments

Comments
 (0)