# Basic FNFT Mechanics

## What is Revest?

Revest is a new protocol for locking ERC-20 tokens into ERC-1155 NFTs – the resulting Financial Non-Fungible Tokens representing a new asset class within the crypto ecosystem.&#x20;

## How Locking Works

![](/files/-MjfvDkH57WFea_x_WbA)

As described by the above figure, FNFTs are created when a set amount of ERC-20 tokens is deposited into a Revest Smart Vault. The newly created Smart Vault will only return the underlying tokens to actors who satisfy the following two conditions:&#x20;

1. Possession of the FNFT itself
2. One of the three possible locking mechanisms ([Time](/fnft-token-locking/time-locks.md), [Value](/fnft-token-locking/value-locks.md), or [Address](/fnft-token-locking/address-locks.md)) placed on the vault at creation has unlocked

For the underlying value to be retrieved from the Smart Vault, the FNFT representing a packet of that underlying (200 ERC-20s, in the above example) must be burned and the locking mechanism on the Smart Vault must be satisfied.

*For example: If I hold three of the above eight FNFTs, I am entitled to 600 ERC-20s when the lock attached to this series of FNFT has unlocked. For the sake of example, if that lock were set to unlock in a week, once that week had elapsed, I could exchange the FNFT with the Revest Smart Vault to retrieve the underlying 600 ERC-20s.*&#x20;

*NB: If the lock has not unlocked, I cannot use the FNFTs I hold to retrieve the underlying assets.*\
*NB: If I do not hold any of the FNFTs for this particular smart vault, I cannot retrieve the underlying assets.*&#x20;

## FNFTs are NFTs

FNFTs possess all the attributes of typical NFTs and are fully compatible with all marketplaces, wallets, and interfaces that support typical ERC-1155s. **FNFTs can be bought and sold just as a typical ERC-1155 would** be, and this flexibility means that Revest has unprecedented portability as financial instruments, with no need for proprietary marketplaces or additional tools. All existing NFT marketplaces can just as easily be utilized as FNFT marketplaces.

## Value in FNFTs is Locked

While FNFTs may be freely transferred between wallets and smart contracts, the value underlying them remains locked in the Revest Smart Vault until the lock is released and the FNFT redeemed. So while the actual FNFT itself may be traded, the transfer will not and cannot directly effect the market value of the assets underlying the FNFT.

## FNFT Interface

Through the use of a novel and groundbreaking javascript interface, FNFTs can display up-to-date information on their contents and their locked state.

The color of an FNFT indicates whether it is locked or unlocked:&#x20;

* Green means unlocked
* Amber means locked

![Two different FNFTs. The one on the left is unlocked, while the one on the right is locked](/files/-MjfpinUsK4xnCdQnSQ1)

FNFTs can also be in a state where they are "unlockable" but not "unlocked". This doesn't occur for [Time Locks](/fnft-token-locking/time-locks.md), but can for both of the other two choices. In this state, you'll be able to unlock the FNFT if you own one, unlocking it for everyone else who owns it as well; they'll still have to withdraw from it to get the underlying value out though!

Whether an FNFT is unlockable is easily determined by the appearance of central padlock on the FNFT itself:

![The FNFT on the left is unlocked. The FNFT on the right is unlockable](/files/-MjftulWmy1oOZdq5mZz)


---

# 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.revest.finance/fnft-token-locking/basic-fnft-mechanics.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.
