[x] Should list all current unstaking requests for the active user
[x] In case that there aren't any unstaking requests, it should inform the user about no requests
[x] Ability to cancel unstake requests when the Cancel button is used
This should call the rebond extrinsic or a variant of it (ie. rebondByUnlockId)
[ ] Ability to execute the unstake request when the Withdraw or Execute button is used
Using withdraw_redeem extrinsic
⚠️ The withdraw_redeem action/extrinsic was not implemented in this PR since I'm waiting for the Tangle Restaking Parachain types to be updated as well as running into some issues testing mint/redeem with the parachain's latest changes. I'll address those in my upcoming PR(s). (cc @1xstj)
[x] Show a confirmation modal when an unstaking request is canceled
[x] Show a confirmation modal when an unstaking request is executed
[x] In the future, consider adding instant-unstake functionality, which has the downside of using market rate but it is instant and bypasses the need to wait for the unstaking period. This can be done by calling stablePool::swap instead of lstMinting::redeem
[x] Estimate remaining time via BABE expected block time.
Cancel
button is usedrebond
extrinsic or a variant of it (ie.rebondByUnlockId
)Withdraw
orExecute
button is usedwithdraw_redeem
extrinsicwithdraw_redeem
action/extrinsic was not implemented in this PR since I'm waiting for the Tangle Restaking Parachain types to be updated as well as running into some issues testing mint/redeem with the parachain's latest changes. I'll address those in my upcoming PR(s). (cc @1xstj)In the future, consider adding instant-unstake functionality, which has the downside of using market rate but it is instant and bypasses the need to wait for the unstaking period. This can be done by callingstablePool::swap
instead oflstMinting::redeem
Estimate remaining time via BABE expected block time.