Skip to content

Commit

Permalink
Merge branch 'dev' into elcontracts_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodeymo authored Sep 30, 2024
2 parents e4c860c + ed4b05c commit d71ccdf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions chainio/clients/elcontracts/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,18 @@ func (r *ChainReader) GetRootIndexFromHash(opts *bind.CallOpts, rootHash [32]byt
return r.rewardsCoordinator.GetRootIndexFromHash(opts, rootHash)
}

func (r *ChainReader) GetCumulativeClaimed(
opts *bind.CallOpts,
earner gethcommon.Address,
token gethcommon.Address,
) (*big.Int, error) {
if r.rewardsCoordinator == nil {
return nil, errors.New("RewardsCoordinator contract not provided")
}

return r.rewardsCoordinator.CumulativeClaimed(opts, earner, token)
}

func (r *ChainReader) CheckClaim(
opts *bind.CallOpts,
claim rewardscoordinator.IRewardsCoordinatorRewardsMerkleClaim,
Expand Down

0 comments on commit d71ccdf

Please sign in to comment.