# veJELLY

When JELLY is locked up in our Sticky pool, users receive veJELLY (vested escrow JELLY) that represents their time locked position. Your locked JELLY is represented as a veNFT, holding the veJELLY balance.&#x20;

You can create and update one single veNFT using the UI ( <https://app.jelly.io/> ) or use advanced functions below to [create separate veNFTs](#creating-separate-venfts) and to [merge veNFTs](#merging-two-venfts) using Etherscan.<br>

### Creating separate veNFTs  <a href="#creating-separate-nfts" id="creating-separate-nfts"></a>

First step is to create a lock using the Jelly UI. This will give you the correct token approvals and avoid a few extra steps.

Once you have your first veJELLY, you can go to the contract address in Etherscan. This can be from the UI address or following the link in Opensea.

Once you are on Etherscan, go to Contract -> Write Contract and connect your wallet

<figure><img src="https://lh3.googleusercontent.com/rVqVXBhcbvP4GLZZBHnERW7-R1YJsD30bu5_G3x4nkHo1NSRWoCrbZa8aSD5sZVno9MTXP04g857VxwRXLUy3n-lF0VySMnVsx6OqwrOkKFwZ1obNcuv5XmwUq5ZQz45xF6KuFPJ0dNG6zLAyVjivTflepw8aynBZgxTICcRd-SUJYgIZgIXw94Few" alt=""><figcaption></figcaption></figure>

Once connected, go to function **#6 create\_lock**

<figure><img src="https://lh5.googleusercontent.com/Br3wicsuzZiv30wVKuER_nUrz2qsS9PW7hhF8HlARt5BhL3vU7WLw4j9zxqYZUkLUmz9iBBLob6y0dQg2wQh5VFDJ3lvD1p_rlh57aS8CKsLczpEuObQfJMMG9979kZszX1wOwFXYs6nxpzj4z1E_vztiiTEBFVKxkY0AtO6kpUJvCtVVMW6-ouziA" alt=""><figcaption></figcaption></figure>

The value is in wei, and the lock duration is in seconds

For example, \_value\
1 JELLY                = 1000000000000000000 \
1,000 JELLY         = 1000000000000000000000 \
1,000,000 JELLY  = 1000000000000000000000000

As for duration, the veJELLY is locked based on weekly intervals called epochs. Since you cannot stake in the current epoch, the minimum duration is 1 week. The max is 4 years. Since you cannot stake strictly more than 4 years, its best to stake 4 years minus 1 week

1 Week            = 604800 \
6 months        = 15768000 \
1 year              = 31536000 \
2 years            = 63072000 \
Max duration   = 125539200 (\~4 years)

#### Example lock:

This would create a new lock, staking 1mil $JELLY for 1 year.

<figure><img src="https://lh5.googleusercontent.com/dsCHQLoBQ1N1WX6oQrEqBhPboHbxU5tksVBfHFvfNunzYPazlJ6Hc9e4eELoyM8w13dJVKNuo1uFydc_-N1JolhF9U6V6_tfzRnwLN-5I1Z7p6ZVa2TnIRD_eJlbec4w9wwd35_s00RjG1JnX79wQvY-s6e8PAt1QBBQAYFgJFO95YVT0N-W1NK8GQ" alt=""><figcaption></figcaption></figure>

### Merging two veNFTs

You can combine two veNFTs into a single NFT. Please note this is not reversible. \
To merge two veNFTs, first connect your wallet on Etherscan, go to Contract -> Write Contract and connect.

<figure><img src="https://lh3.googleusercontent.com/rVqVXBhcbvP4GLZZBHnERW7-R1YJsD30bu5_G3x4nkHo1NSRWoCrbZa8aSD5sZVno9MTXP04g857VxwRXLUy3n-lF0VySMnVsx6OqwrOkKFwZ1obNcuv5XmwUq5ZQz45xF6KuFPJ0dNG6zLAyVjivTflepw8aynBZgxTICcRd-SUJYgIZgIXw94Few" alt=""><figcaption></figcaption></figure>

Search for function #14. Merge

<figure><img src="https://lh4.googleusercontent.com/pCe2kMCVkgDS4Tn26EAPLe-AOLGi4f9_Mth5ZaLgvxahMljmbM6K49n7s6yBr35DCdRSjkY0A5Wqc35hPV6oD0tnC3cD8UVHTXIDOutCYUbiONoE4anD9YPFeITavqjn2eSnCS2PaiQMi2kE6ETx14mkeYPmrJlHsd_LjKqm0SGWoVczsmtVUCK_" alt=""><figcaption></figcaption></figure>

\_from  = NFT that will be burnt\
\_to      = Combined NFT that will have been merged

#### Example Merge:

In this example, we are merging veNFT #5 into veNFT #3

<figure><img src="https://lh4.googleusercontent.com/NPySla33H8t-utgP__fmA24ariuotPtmsNU6uvQp7w3M0qYLNmeRyYw6qUcExO-yeMbB3hiaHIQggfag_4hskMpclOhnqLbYdUfyTj1YO8CKA303eoKPHj0WHFX9wxhuNM8qRare5AisT9LkIurdiZ7lUE0XE6sUe--PjF5KAKFLstbAWJhPvrO7" alt=""><figcaption></figcaption></figure>

The final merged NFT will have the longest expiry of the two NFTS. \
If you merge a 1 year lock into a 2 week lock, the merged NFT will have a 1 year lock. Will also be 1 year if the token orders were reversed.
