unstake: TxDescriptor<{ dao_id: number; value: bigint }>

Start unbonding process and unstake balance from the dao.

The unstaked amount will no longer be eligible for rewards but still won't be unlocked. User needs to wait for the unbonding period to finish before being able to withdraw the funds via withdraw_unstaked call.

In case remaining staked balance is below minimum staking amount, entire stake will be unstaked.

  • dao_id: Id of the dao to unstake from.