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.
|
// This should work in 99% of cases! |
|
const [diff] = undelegations.filter( |
|
und => |
|
!prevUndelegations.some(prevUnd => { |
|
return FormattingUtils.serializeObj(prevUnd) === FormattingUtils.serializeObj(und) |
|
}) |
|
) |
|
const [diff] = delegations.filter( |
|
d => |
|
!prevDelegations.some(prevD => { |
|
return FormattingUtils.serializeObj(prevD) === FormattingUtils.serializeObj(d) |
|
}) |
|
) |
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
rose-app/stake/src/pages/StakingAmountPage/index.tsx
Lines 104 to 109 in e7a68e1