# Manual Unstaking from the deprecated AST Staking contract

By [agrimony](https://paragraph.com/@agrimony-2) · 2022-04-05

---

I wrote this tutorial as a guide to those who are stuck on the deprecated AST contract.

Manual Unstaking
----------------

Navigate to the deprecated staking contract in [etherscan](https://etherscan.io/address/0x704c5818b574358dfb5225563852639151a943ec#readContract) (or the V2 [contract](https://etherscan.io/address/0x579120871266ccd8de6c85ef59e2ff6743e7cd15#code)) -> contract -> read contract

### Check the AST balance in the contract

Under `balanceOf`, input your `address` and click query (querying the chain does not require gas)

Check to ensure that the amount tallies with the amount of AST you have staked

_Note: The amount displayed is multiplied by 10,000 to account for the decimal places_

![Check your AST balance in the deprecated contract](https://storage.googleapis.com/papyrus_images/cc77bb57e18b46bc733a663d04853f6c5058c0776225948d095ee43373b76766.png)

Check your AST balance in the deprecated contract

### Check the balance available to unstake

Under `available`, input your `address` and under `index`, input `0`

This number represents the amount of AST available to be unstaked currently. Make sure that this number tallies with the number of AST in `balanceOf` if you want to withdraw the full amount.

_Note: If you have made multiple stakes into this contract, you can check the balance available for each staking event by changing_ `index`_._

![Check your AST balance available to unstake. If you have made multiple stakes, you can change the index to cycle through the various stakes](https://storage.googleapis.com/papyrus_images/af47bb36ef1f568009422b7abe3683907ff5c3d4becb74460fa5a37fe25bc486.png)

Check your AST balance available to unstake. If you have made multiple stakes, you can change the index to cycle through the various stakes

If the number does not tally, either, you have to wait longer to unstake the full amount (20 weeks), or you had staked in multiple batches. Check your historical interactions with this contract in [etherscan](https://etherscan.io/token/0x704c5818b574358dfb5225563852639151a943ec#balances) to find out when you staked, and how many stakes you had made.

### Unstake

Finally, to unstake, head to `write contract` and scroll to the `unstake` function.

Input the amount you wish to unstake (it has to be less than the `available` balance from above). If you had staked multiple times, you can batch unstake by providing the input in an array format `[unstake1,unstake2,unstake3...]`.

Sign the transaction with your web3 wallet and pay the gas fee to unstake.

_Note: Remember to multiply the AST you wish to unstake by 10,000 to account for decimals!_

![Connect your wallet to etherscan](https://storage.googleapis.com/papyrus_images/813ddef55c50480207c5cb0fab8066309936a8fe2684e617bb81112b8a125329.png)

Connect your wallet to etherscan

![Enter the amount you wish to unstake, and hit "Write". You will have to pay a gas fee to unstake](https://storage.googleapis.com/papyrus_images/c3942d5e1836ab238bd33131e56e6d67112bca39ab7ab62536939a36e12130a8.png)

Enter the amount you wish to unstake, and hit "Write". You will have to pay a gas fee to unstake

---

*Originally published on [agrimony](https://paragraph.com/@agrimony-2/manual-unstaking-from-the-deprecated-ast-staking-contract)*
