-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(BridgeReward, BridgeTracking): improve sync reward in bridge reward #14
feat(BridgeReward, BridgeTracking): improve sync reward in bridge reward #14
Conversation
7f4a17e
to
7af7490
Compare
if (pdCount == 0) revert ErrPeriodCountIsZero(); | ||
|
||
// Not settle the period that already rewarded. | ||
if (currPd <= lastRewardPd + 1) revert ErrPeriodAlreadyRewarded(currPd, lastRewardPd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is not necessary as pdCount
must be >= 1
(as last condition), combined with the following validation is sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noted, but I leave it unchanged, added in-line comment
…-reward
Description
Checklist