-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Current implementation checks for diff between existing staked items and new ones. Add retry logic, so that it is more resilient.
Same goes for un-staking flow.
rose-app/stake/src/pages/UnstakePage/index.tsx
Lines 138 to 144 in e7a68e1
| // This should work in 99% of cases! | |
| const [diff] = undelegations.filter( | |
| und => | |
| !prevUndelegations.some(prevUnd => { | |
| return FormattingUtils.serializeObj(prevUnd) === FormattingUtils.serializeObj(und) | |
| }) | |
| ) |
rose-app/stake/src/pages/StakingAmountPage/index.tsx
Lines 104 to 109 in e7a68e1
| const [diff] = delegations.filter( | |
| d => | |
| !prevDelegations.some(prevD => { | |
| return FormattingUtils.serializeObj(prevD) === FormattingUtils.serializeObj(d) | |
| }) | |
| ) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels