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:
- Call the
schedule_unstake
function to schedule the unstake. - 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
- Open PolkadotJS Apps (opens in a new tab).
- Connect to the Tangle Network by selecting the appropriate network from the dropdown list.
Alternatively, you can access it via the tangle explorer:
- The Tangle Testnet is available at: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestnet-rpc.tangle.tools#/explorer (opens in a new tab)
- The Tangle Mainnet is available at: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.tangle.tools#/explorer (opens in a new tab)
Step 2: Schedule Unstake
- Navigate to the Extrinsics tab on PolkadotJS.
- Under the MultiAssetDelegation section, select ScheduleUnstake and enter the amount of assets to 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
- Open PolkadotJS Apps (opens in a new tab).
- Connect to the Tangle Network by selecting the appropriate network from the dropdown list.
Alternatively, you can access it via the tangle explorer:
- The Tangle Testnet is available at: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestnet-rpc.tangle.tools#/explorer (opens in a new tab)
- The Tangle Mainnet is available at: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.tangle.tools#/explorer (opens in a new tab)
Step 2: Cancel Delegator Unstake
- Navigate to the Extrinsics tab on PolkadotJS.
- Under the MultiAssetDelegation section, select CancelDelegatorUnstake and enter the amount of assets to 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
- Open PolkadotJS Apps (opens in a new tab).
- Connect to the Tangle Network by selecting the appropriate network from the dropdown list.
Alternatively, you can access it via the tangle explorer:
- The Tangle Testnet is available at: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestnet-rpc.tangle.tools#/explorer (opens in a new tab)
- The Tangle Mainnet is available at: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.tangle.tools#/explorer (opens in a new tab)
Step 2: Execute Delegator Unstake
- Navigate to the Extrinsics tab on PolkadotJS.
- Under the MultiAssetDelegation section, select ExecuteDelegatorUnstake and enter the amount of assets to unstake.
Sign and submit the transaction. Make sure the account you are using has enough balance to cover the transaction fee.