-
Notifications
You must be signed in to change notification settings - Fork 105
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: add dynamic unbound period #990
Conversation
unbondingPeriodInEpochs, | ||
minEpochDuration, | ||
}: EpochInfo): number => { | ||
const duration = unbondingPeriodInEpochs * minEpochDuration; |
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.
Could someone confirm if this calculation is correct?
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.
I did some calculation these last days using and it looks correct :)
@@ -141,6 +152,9 @@ const Unstake = (): JSX.Element => { | |||
return ""; | |||
})(); | |||
|
|||
const unboundPeriod = |
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.
Small thing: could we change instances of unboundPeriod
to unbondPeriod
for consistency, and rename getUboundingPeriod
to getUnbondingPeriod
? Might be a little more clear, matching the definition in EpochInfo
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.
ops, yes, thanks! done :)
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.
LGTM!
Closes #973
Add dynamic unbound period