# Convert

### Overview

The "convert" feature allows users to obtain stZIL immediately, rather than having to wait for the usual 14-day unbounding period. Without this feature, a user who has already staked their ZIL with an SSN node would have to first unstake their delegated ZIL before being able to receive stZIL. However, with the convert feature, the process can be done almost instantly.

Also users who have delegated ZIL and want to withdraw it from staking to ZIL without waiting an unbounding period can use convert feature to obtain stZil first. Then this stZIL can then be exchanged for regular ZIL using Avely Swap, a service that allows users to trade one type of cryptocurrency for another. This process is faster than the usual 14-day wait for ZIL to be unstaked, but it may incur fees.

### &#x20;How does it work?

The conversion process consists of two steps:

Step 1: Transfer Stake to stZIL

Step 2: Mint stZIL using transferred stake from step 1

Note: If the user completes the first step but fails/missed the second, the system will return the funds to the user at the beginning of the next cycle.

### Why My Convert Is Locked?

We cannot process your stake if you see the red alert box on top of the conversion block.

<img src="https://lh3.googleusercontent.com/UGLJ9ZCgtX_t8ZuXGAmoecSJ9ttwJjq7KpSP82kkOACw7g9feU2GxB-vFw_H9xyhkkvsqaEWl0MReugSa2Hij9duIoTCuMjZrir9WtgBrt10eOgZpi6PDg7YTshzkE68Wra_0xdHsJGokWuy-1J5SOmGGlhmbiwFyhImCCYX01A-T5VJjA17QpBjXbkd9A" alt="" data-size="original">

There can be several cases when a user cannot use a convert feature. All of them are connected to native staking technical reasons.

#### **Reason #1**: User has fresh stake top-ups (aka “buffered stake”)

<img src="https://lh5.googleusercontent.com/6cmRIIejQ68aXdt1Y4arxNP3w2bwEuUV06e1jNPvoGKfQuhQWtyVMhzpCgN0Ib1NsaRd8CyWMvQX8JSahpApxofB8sQf7d0_sNaxITFaZ03HcA1oySr_2WFwDLT92m2h0oKnRkmBiCez5SAyaUSN6P1t-Wgfle2IZnrBcJfClBKCciZ2m5Sbig3INTWbbg" alt="" data-size="original">

The most common reason is the user has recently staked in native staking. It could be treated as as in-out protection on the native staking contract. Due to this restriction user's stake could not be touched next 2 cycles. Currently, 1 cycle takes \~24 hours.

Alternative cause of the problem - the user delegated stake using the native staking feature.

Solution: Just wait :) After 2 full cycles, your deposit will be un-freeze and be able to convert.

#### **Reason#2**: User has unclaimed rewards

<img src="https://lh6.googleusercontent.com/tZ0CHBekJY9AqJcMfqNC1xv-WCqYbpCY0bI0Nsx1yZ21nS5T4sibxAcknlGeYEhsMKHWHf15zZoYpb6EBDwrfeeSiNgUr_wGQQ-9ftbtgtgVk3pUXDt8z3JTQMt7ml71U6Psv3bwjt87F3kgtnkbF7X0ktjY1hxjVZ4PNQIfy07F27a8VxGsVARi0LjT4g" alt="" data-size="original">

We are not able to start the conversion process if you have unclaimed rewards on native staking.&#x20;

Solution: Please, claim rewards from all SSN Providers you have.

<img src="https://lh4.googleusercontent.com/c0IBbLIYFD7ZX1HEao5d6-ZH0ite0lZV01ieQu8wKnJzH4fzEy0TwAQuYoLjzyQe11q5hNLfYUTg56Z6BOqKMpySrhfOOeY5_HS2PmoMvZ6ABP0pzXn4edhD-34DLW9t1WD0J91mRsM5ISA8gDZ2_dw5X66WwUUFmNlDJJg6oQYyGnIQiW0peJkZo--83w" alt="" data-size="original">

#### **Reason#3**: User has unfinished rewards

<img src="https://lh4.googleusercontent.com/tACEGXCd6z-s4JO4KaSQCM0dnC3vyzp_JL69hLjutWx4ePFc6u18XfwYDRl8Vr3AAbHi5VC5StklM4qf-FfrX0LN6eE0rX5nSU2Nv0x-0oe4fZ5fhF-bj7142Aq2kAS6yRjpId_bb4MQCvfJNTtsQhnCvFi8cgVyCGJnueRRR2rZZW-jN-EnDYHbs1g3ng" alt="" data-size="original">

If the user has an active withdrawal(-s) of funds its blocks the conversion first step.&#x20;

Solution: Please, complete the withdrawal process on the native staking provider side.&#x20;

#### **Reason#4**: Unknown

If your convert is blocked for this reason, please write in our Telegram chat <https://t.me/avelyfinance> and we will find a solution.

### &#x20;Troubleshooting

#### The lock system is designed to prevent a user from errors in the conversion process. However, the state of the blockchain is changed every block and it could lead to a tiny chance to face a problem.

First, do not be worried If you see an error during the conversation. All operations happen on-chain and the funds are safe.&#x20;

Sometimes you could run a convert in the middle of cycle changing (which is 1 time per day) and see an error due to the sync process between stZIL and the native staking smart contract.&#x20;

Try to refresh the page and do the convert a bit later again.

<br>

<br>

<br>

<br>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avely.fi/how-it-works/convert.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
