Restake
How to Restake
Unstake using PolkadotJs

Unstake

The first step to exit restake is to unstake your tokens. This is done by calling the unstake function. This function releases the locked assets and returns them to the deposit vault. Then you can withdraw your assets from the deposit vault, see withdraw for more information.

The unstake is a two step process:

  1. Call the schedule_unstake function to schedule the unstake.
  2. Call the execute_unstake function to execute the unstake after the unstake period.

Schedule Unstake

To unstake, you need to call the schedule_unstake function. This function schedules the unstake.

Step 1: Access the PolkadotJS Interface

Alternatively, you can access it via the tangle explorer:

Step 2: Schedule Unstake

  • Navigate to the Extrinsics tab on PolkadotJS.

PolkadotJS Extrinsics

  • Under the MultiAssetDelegation section, select ScheduleUnstake and enter the amount of assets to unstake.

PolkadotJS Schedule Unstake

Sign and submit the transaction. Make sure the account you are using has enough balance to cover the transaction fee.

Cancel Delegator Unstake

To cancel the unstake, you need to call the cancel_delegator_unstake function. This function cancels the unstake.

Step 1: Access the PolkadotJS Interface

Alternatively, you can access it via the tangle explorer:

Step 2: Cancel Delegator Unstake

  • Navigate to the Extrinsics tab on PolkadotJS.

PolkadotJS Extrinsics

  • Under the MultiAssetDelegation section, select CancelDelegatorUnstake and enter the amount of assets to unstake.

PolkadotJS Cancel Delegator Unstake

Sign and submit the transaction. Make sure the account you are using has enough balance to cover the transaction fee.

Execute Delegator Unstake

To execute the unstake, you need to call the execute_unstake function. This function executes the unstake. This function can only be called after the unstake period.

Step 1: Access the PolkadotJS Interface

Alternatively, you can access it via the tangle explorer:

Step 2: Execute Delegator Unstake

  • Navigate to the Extrinsics tab on PolkadotJS.

PolkadotJS Extrinsics

  • Under the MultiAssetDelegation section, select ExecuteDelegatorUnstake and enter the amount of assets to unstake.

PolkadotJS Execute Delegator Unstake

Sign and submit the transaction. Make sure the account you are using has enough balance to cover the transaction fee.