-
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: Bug of not showing the correct amount in today's rewards when staking later during epoch #749
base: staging
Are you sure you want to change the base?
Conversation
…t integration (lots going on)
… calculations and logging
… reward calculations
…Schema for clarity
… reward calculations and clarity
frontend/context/RewardProvider.tsx
Outdated
// if agent is not staked, return the available rewards for the epoch | ||
// i.e, agent has not yet started staking | ||
if (isNil(serviceStakingStartTime) || serviceStakingStartTime === 0) { | ||
return parseFloat(formatUnits(`${availableRewardsForEpoch}`)); |
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.
don't understand why if not staked return full amount, but if staked but not yet eligible return undefined?
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.
where are we returning undefined
?
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.
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.
ah ok, removed.
…isEpoch calculation
Proposed changes
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that apply