protofire/kyber-pool-master-proxy-contract

On getUnclaimedRewardsMember we shouldn't use getStakerDataForPastEpoch

Closed this issue · 0 comments

getStakerDataForPastEpoch returns data for epoch where staker has done any action, and since a pool member, who had delagated its stake to the pool master, probably won't do any action after delegating it stake, we can't rely on getStakerDataForPastEpoch.

Instead we sholud use getStake to get the stake for the member in the epoch, and getDelegatedAddress to check that the pool master is to whom the member had delegated it stake in that epoch