-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix spelling of isDeauthorizationReqestActive #658
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ cypress/plugins | |
# Yarn | ||
node_modules/ | ||
yarn-error.log | ||
|
||
.cosine/ | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,7 @@ | |
_appData.pendingAuthorizationDecrease.toString(), | ||
remainingAuthorizationDecreaseDelay: | ||
_appData.remainingAuthorizationDecreaseDelay.toString(), | ||
isDeauthorizationReqestActive: _appData.isDeauthorizationReqestActive, | ||
isDeauthorizationRequestActive: _appData.isDeauthorizationRequestActive, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The builds are failing because code is not formatted. Please run If you do that (and just that) in a separate commit, then additionaly add that commit hash to |
||
deauthorizationCreatedAt: | ||
_appData.deauthorizationCreatedAt?.toString(), | ||
} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Unrelated to the file] Let's also change this typo in those two places: token-dashboard/src/pages/Staking/AuthorizeStakingApps/AuthorizeApplicationsCardCheckbox/index.tsx Line 49 in bbdc890
and token-dashboard/src/pages/Staking/AuthorizeStakingApps/AuthorizeApplicationsCardCheckbox/index.tsx Line 69 in bbdc890
Without those changes the error appears here: token-dashboard/src/pages/Staking/AuthorizeStakingApps/index.tsx Lines 98 to 109 in bbdc890
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -59,7 +59,7 @@ export interface StakingProviderAppInfo< | |||||
* call `joinSortitionPool` or `updateOperatorStatus` to activate the request. | ||||||
* In that case we can't estimate when the deauthorization request started. | ||||||
*/ | ||||||
isDeauthorizationReqestActive: boolean | ||||||
isDeauthorizationRequestActive: boolean | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While we are at it, let's also fix the similar typo in the comment above:
|
||||||
/** | ||||||
* Timestamp when the deauthorization request was created.Takes an undefined | ||||||
* value if it cannot be estimated | ||||||
|
@@ -321,21 +321,21 @@ export class Application implements IApplication { | |||||
remainingAuthorizationDecreaseDelay.toString() | ||||||
) | ||||||
|
||||||
let isDeauthorizationReqestActive = true | ||||||
let isDeauthorizationRequestActive = true | ||||||
if (_remainingAuthorizationDecreaseDelay.eq(MAX_UINT64)) { | ||||||
// If a `remainingAuthorizationDecreaseDelay` is equal `MAX_UINT64` the | ||||||
// deauthorization reqest is pending and an operator have to call | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's also fix a similar typo in this comment
Suggested change
|
||||||
// `joinSortitionPool` or `updateOperatorStatus` to activate the request. | ||||||
// In that case we can't estimate when the deauthorization request | ||||||
// started. | ||||||
isDeauthorizationReqestActive = false | ||||||
isDeauthorizationRequestActive = false | ||||||
} | ||||||
|
||||||
// If the deauthorization request is not active or the | ||||||
// `_remainingAuthorizationDecreaseDelay` is equal `0` we can't estimate | ||||||
// when the deauthorization was requested. | ||||||
const deauthorizationCreatedAt = | ||||||
!isDeauthorizationReqestActive || | ||||||
!isDeauthorizationRequestActive || | ||||||
_remainingAuthorizationDecreaseDelay.eq(ZERO) | ||||||
? undefined | ||||||
: BigNumber.from(requestTimestamp.toString()) | ||||||
|
@@ -346,7 +346,7 @@ export class Application implements IApplication { | |||||
authorizedStake, | ||||||
pendingAuthorizationDecrease, | ||||||
remainingAuthorizationDecreaseDelay, | ||||||
isDeauthorizationReqestActive, | ||||||
isDeauthorizationRequestActive, | ||||||
deauthorizationCreatedAt, | ||||||
isOperatorInPool, | ||||||
operator, | ||||||
|
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.
What is this directory? 🤔