Skip to content

Restore reward eligibility by operator address#182

Merged
dimpar merged 2 commits intomainfrom
eligible-by-address
Jul 14, 2022
Merged

Restore reward eligibility by operator address#182
dimpar merged 2 commits intomainfrom
eligible-by-address

Conversation

@pdyraga
Copy link
Copy Markdown
Member

@pdyraga pdyraga commented Jul 12, 2022

Refs threshold-network/keep-core#3008

The off-chain client can monitor the reward eligibility and restore it when the
time comes but it is easier for the client to use the operator address instead
of the operator ID.

Looking at the public API so far, the reward eligibility was getting restored
using the address so it makes sense to have all other reward-eligibility-related
functions use the operator address as well, for consistency.

The off-chain client can monitor the reward eligibility and restore it when the
time comes but it is easier for the client to use the operator address instead
of the operator ID.

Looking at the public API so far, the reward eligibility was getting restored
using the address so it makes sense to have all other reward-eligibility-related
functions use the operator address as well, for consistency.
Comment thread test/sortitionPoolTest.js Outdated

await pool.connect(owner).setRewardIneligibility([bobID], now + 100)

await expect(await pool.isEligibleForRewards(bob.address)).to.be.false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the await before expect can be removed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈 7038dcb

@dimpar
Copy link
Copy Markdown
Contributor

dimpar commented Jul 13, 2022

lgtm, no more comments

@dimpar dimpar merged commit edf4690 into main Jul 14, 2022
@dimpar dimpar deleted the eligible-by-address branch July 14, 2022 07:46
@pdyraga pdyraga added this to the v2.0.0 milestone Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants