If an account wants to do a successful registration for fastUnstake, the following conditions needs to be meet:

1- the account has some fund staked and not being exposed in the last "erasToCheckPerBlock" 2- the account needs to have enough funds to be reserved, that will be slashed if the first condition was not met.

The erasToCheckPerBlock can be fetched via api.query.fastUnstake.erasToCheckPerBlock, but there is no way to fetch the reserved amount before submitting the transaction and the account may face the following error: https://westend.subscan.io/extrinsic/13147898-2


The fix is simply to put a #[pallet::constant] on top of type Deposit: Get<_>.

© 2022 pullanswer.com - All rights reserved.