> For the complete documentation index, see [llms.txt](https://l1x-sdk.gitbook.io/l1x-foundation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://l1x-sdk.gitbook.io/l1x-foundation/l1x-technology-explained/l1x-components-example-use-cases/l1x-fungible-token-smart-contract.md).

# L1X Fungible Token Smart Contract

L1X Fungible Token smart contracts empower businesses to reimagine loyalty programs, creating a win-win scenario for both customers and the organization. The implementation of these contracts not only enhances customer loyalty but also offers numerous benefits such as cost efficiency, interoperability, transparency, and data-driven insights. Recognizing the potential of L1X Fungible Token smart contracts in transforming traditional business models can lead to substantial long-term returns.

## **Example:**

Let's consider the scenario of a loyal WYD Mart customer who frequently shops at their stores. With the implementation of L1X Fungible Token Smart Contracts, the customer now receives loyalty tokens every time he makes a purchase. These tokens are stored securely on the L1X blockchain, providing transparency and trust to all stakeholders involved.

### **Technical Workflow**

<figure><img src="/files/Rz8sYf8dhVFoIog4iDK4" alt=""><figcaption><p>Figure 14 L1X Fungible Token Smart Contract Workflow</p></figcaption></figure>

### Workflow explained

1. Customer purchases trigger the issuance of loyalty tokens based on a predetermined algorithm, such as a percentage of the transaction value or specific criteria.
2. The loyalty tokens are automatically assigned to Customer's digital wallet, which can be accessed via a mobile application or web interface.
3. The customer can view his accumulated tokens, check their current value, and explore the available redemption options.
4. WYD Mart's loyalty program integrates partnerships with other businesses, allowing the customer to use his tokens not only within WYD Mart but also at partner establishments.
5. When the customer decides to redeem his tokens, he can choose from a variety of options, including discounts on future purchases, exclusive products, or even converting tokens into other digital assets.
6. The redemption process is executed seamlessly through the L1X Fungible Smart Contract, ensuring instant and transparent settlement.
7. WYD Mart can analyze the transaction data recorded on the L1X blockchain to gain insights into customer behavior, preferences, and overall program effectiveness.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://l1x-sdk.gitbook.io/l1x-foundation/l1x-technology-explained/l1x-components-example-use-cases/l1x-fungible-token-smart-contract.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.
