# Welcome to uDEX

## What is uDEX？

uDEX is a social trading platform for cryptocurrencies that provides users with on-chain information and enables them to trade directly from social networks.

Users can trade without interrupting their social activities, utilizing both traditional wallets like MetaMask and social wallets verified through Google, Apple, or Telegram accounts. uDEX supports various trading features, including spot and perpetual swap trading, backed by on-chain liquidity from protocols like Uniswap.

The platform aims to drive mass blockchain adoption by offering zero entry barriers, robust security, and user-friendly interfaces within social networks.

## Why uDEX?

#### **Streamlined Swap Trading Experience**

uDEX offers an innovative swap trading experience by integrating with external decentralized exchanges (DEXs) like Uniswap. This integration allows users to conduct asset exchanges seamlessly, with the uDEX smart contract executing transactions on the DEX. The automated market maker (AMM) system calculates entry and exit prices, optimizing trades for the best prices, minimal slippage, and reduced costs. The multi-DEX routing feature of uDEX, combined with integration with DEXs like Uniswap, PancakeSwap and 1inch, ensures users save on trading costs and access optimal pricing, enhancing the overall trading experience.

#### **Advanced Margin Trading Capabilities**

uDEX revolutionizes margin trading by facilitating borrowing of one asset to trade for another, including short selling and leverage long positions. Short selling allows investors to profit from declining asset prices, while leverage long positions amplify gains when prices rise. These features cater to both speculative and hedging strategies, offering traders the opportunity to achieve larger profits with less capital. Additionally, the platform enables lenders to earn interest on their loans, providing a lucrative opportunity for passive income.

#### **Innovative Inscription Bridge Functionality**

[uDEX's inscription bridge](https://bridge.udex.one/) allows for the bridging of Bitcoin BRC-20 tokens onto the BSC chain, addressing the issue of limited liquidity in the secondary market. This feature streamlines the trading process for BRC-20, enhancing user experience and reducing transaction costs. Users can swiftly convert v-BRC20 tokens into other cryptocurrencies using Uniswap's liquidity pools, facilitating faster transactions for both selling and purchasing BRC-20 tokens.

## Project Vision

The vision of uDEX is to seamlessly connect the realms of Web2 and Web3, thereby democratizing access to blockchain technology for everyone. By infusing the Telegram platform with advanced decentralized trading functionalities, uDEX aspires to simplify and redefine the cryptocurrency experience. The ultimate goal of uDEX is to catalyze the mass adoption of blockchain technology, enabling a broad spectrum of individuals to actively participate and thrive in the digital asset economy with confidence and ease.

## Quick links

{% content-ref url="/pages/tsRLI2Wls7X131mPjJuz" %}
[Swap Trading](/feature/swap-trading)
{% endcontent-ref %}

{% content-ref url="/pages/YayI2JYKXkv2SFGvZDFT" %}
[Leverage Trading](/feature/leverage-trading)
{% endcontent-ref %}

{% content-ref url="/pages/bkhG0oMGQJSOE5pB5vGD" %}
[uBridge](/feature/ubridge)
{% endcontent-ref %}


# uDEX Luck

Welcome to [uDEX Luck](https://social.udex.one/), a pioneering service that is redefining how crypto giftboxes are distributed and collected across leading social media platforms. At the vanguard of blending blockchain technology with daily life, [uDEX Luck](https://social.udex.one/) merges cultural traditions with cutting-edge tech. This platform not only makes blockchain interactions enjoyable and captivating but also leads the way in incorporating digital identities (DID) into giftboxes, building an open and accessible blockchain environment for everyday web users.

The blockchain sector has been in search of a "killer app" that could propel widespread adoption, moving beyond just crypto enthusiasts. [uDEX Luck](https://social.udex.one/) represents this breakthrough by innovating the way we share and receive festive giftboxes. With integrations into major social media channels like Telegram, X and Instagram, [uDEX Luck](https://social.udex.one/) provides a user experience as intuitive as traditional methods, broadening its appeal to a larger audience.


# Getting Started

This article will introduce the user interface of uDEX Luck to help users quickly learn how to utilize its main features.

#### Using the [uDEX Luck Bot](https://t.me/uSocial_Bot) to Send Gift Boxes:

1. **Add the** [**uDEX Luck Telegram Bot**](https://t.me/uSocial_Bot)\
   Simply click this link: "[uDEX Luck Bot](https://t.me/uSocial_Bot)," then click the "Start" button at the bottom to begin using the uDEX Luck Telegram Bot.
2. **Make a Deposit**\
   Click "Deposit" to start adding the assets you intend to use for sending gift boxes.
3. **Create a Gift Box**\
   Click the "Create" button to open the gift box creation page. Follow the prompts to customize your gift box and complete the payment.
4. **Share the Gift Box**\
   After successfully creating the gift box, share it in your designated Telegram chat room or on the X platform.

<figure><img src="/files/ilJQ9WYLQM1sqqn1k7ll" alt=""><figcaption></figcaption></figure>


# How to Send a Giftbox?

1. Open the [uDEX Luck Bot](https://t.me/uSocial_Bot) on Telegram, click **Start**, and select **Create Gifts** to begin.
2. Tap the **Gifts** button, then choose **Send New Gifts** to create a giftbox.
3. Enter the number of giftboxes and the amount of cryptocurrency per box, then click **Confirm**.
4. Share your giftbox link on **X (formerly Twitter)** and **Telegram** to let others join the fun!

<figure><img src="/files/ILyjlnmcFRTMAvlXdNPb" alt=""><figcaption></figcaption></figure>


# How to Share and Claim uDEX Luck Gifts

## Sharing and Claiming Gifts on X

1. After successfully creating your giftbox, click **Share on X**.
2. A tweet containing the giftbox link will be automatically generated.
3. Recipients can click the link and log in using Google, Apple, Telegram, or X accounts to claim the gift. For example, choosing to log in with an X account allows seamless access.

<figure><img src="/files/Cjhhmmsgmg4SmBrzFYyU" alt=""><figcaption></figcaption></figure>

## Sharing and Claiming Gifts on Telegram

1. After successfully creating your giftbox, click **Share on Telegram**.
2. Forward the giftbox link to your Telegram contacts, where they can click the link directly within the chat to claim their gift.

<figure><img src="/files/BErcEQuRNH9lWNI2XRbD" alt=""><figcaption></figcaption></figure>


# Customize Giftbox

Before sending out your uDEX Luck Giftbox, you have the option to customize its cover and set specific DID requirements for claiming rules.

## Personalized Red Packet Cover

Create a unique Giftbox cover by customizing it with your chosen image or poster. Just upload it before sending your uDEX Luck Giftbox to add a personal touch.

<figure><img src="/files/MVQFlbjqfNR3fSb5Bfte" alt=""><figcaption></figcaption></figure>


# uGun


# Introduction

Introducing uGun, a cutting-edge trading bot developed by the uDEX team, tailored for the Solana blockchain. Designed to streamline your trading experience, uGun allows users to quickly set up trade parameters and smoothly execute buy or sell orders for meme coins on Solana. With uGun, traders can tap into the pulse of 'smart money' movements, enabling them to follow and replicate successful trading strategies effortlessly. As a key component of uDEX's expansion into becoming a social trading platform on the Solana blockchain, uGun exemplifies our commitment to integrating innovative technology with user-friendly functionalities. This tool is not just about trading; it's about making smart, informed trading accessible to everyone on one of the most dynamic blockchains in the cryptocurrency space.

<figure><img src="/files/QWyBHeKd8RFS8BSy3R8R" alt=""><figcaption></figcaption></figure>


# Features

## **Simplified Operations**

Unlike other complex trading tools, uGun boasts a clean and intuitive user interface that significantly reduces the learning curve for new users. We are committed to ensuring that every user can quickly master the platform and enjoy a smooth trading experience.

## **Rapid Social Trading**

With the instant trading functionality within Telegram chatrooms, users can quickly capitalize on market opportunities. uGun benefits from dedicated submission nodes provided by the uDEX team, which greatly enhance transaction speed, ensuring that users can take the lead at crucial moments.

## **One-Click Smart Money Following**

uGun allows you to effortlessly monitor and follow the addresses of smart money and Key Opinion Leaders (KOLs). By tracking their trade activities in real-time, you can swiftly identify and engage with emerging Memecoins, maximizing your investment returns as you catch market trends early.

## **Support for Pump.fun Inner Circle Trades**

Participate in early-stage trades on Pump.fun to seize opportunities for substantial gains, though it comes with higher market risks and significant price volatility. uGun's efficient trading capabilities enable you to closely monitor the market and react quickly, allowing for flexible responses to market changes.


# How to Quickly Buy and Sell

## Buy and Sell

* Send the token's contract address to the uGun trading bot.
* Enter the amount you wish to purchase, and the system will immediately execute the buy order.
* Similarly, send the token's contract address to the uGun trading bot.
* Specify the percentage of your holdings you wish to sell, and the system will instantly execute the sell order.

<figure><img src="/files/eNgUkAJ0qBdBIEsZnmrg" alt=""><figcaption></figcaption></figure>

## Trade Execution

* Once a trade is initiated, the system will display the transaction hash.
* Upon successful transaction, a success notification and a trade report will be shown, detailing transaction amount, number of tokens, execution price, market value, wallet balance, and actual profit or loss of the current tokens.


# How to Manage Assets

* Users can view all purchased and currently held tokens through the uGun trading bot.
* Features include viewing purchase costs, current holding value, holding profits, total returns, and holding duration.
* Direct buying and selling of held tokens are supported within the holding management interface.

<figure><img src="/files/NJ9VQeKZuRqaW48e7XC4" alt=""><figcaption></figcaption></figure>


# How to Copy Trade

* Users can opt for copy trading mode, where transactions are executed using preset gas fees and slippage.
* In copy trading mode, users can choose to follow buys of tokens they already own.
* It also allows users to decide whether to buy tokens that have not had their freeze permissions revoked.

**Note:** Copy trading by default will use the currently set gas priority fees and slippage settings.

## Copy Buying

* **Maximum Amount Buy**: When the target follow address makes a purchase, the system follows by buying up to the pre-set maximum purchase amount. For instance, if the maximum set is 0.1 SOL, and the follow address buys more than 0.1 SOL, the system will buy 0.1 SOL. If the follow address buys less than 0.1 SOL, the system will match the amount.
* **Fixed Amount Buy**: Each time the target address buys, the system will purchase a fixed amount, such as 0.1 SOL, regardless of the quantity bought by the target address.

<figure><img src="/files/SV119rvAhHVazcdMlmag" alt=""><figcaption></figcaption></figure>

## Copy Selling

* **Mixed Mode**: When hybrid mode is enabled, both follow selling and take-profit/stop-loss selling are activated. After the target follow address makes its first sale of the respective tokens, regardless of the amount, users can set a selling percentage along with take-profit and stop-loss percentages.
* **Follow Selling Only**: After the target follow address's first sale of the tokens, the system will sell a custom percentage of the held tokens, based on the user’s settings.
* **Take-Profit/Stop-Loss Only**: In this mode, only take-profit and stop-loss sales are enabled, not follow selling. Users can set the selling percentage along with take-profit and stop-loss percentages, regardless of the amount sold by the target address.

<figure><img src="/files/s59viTrWjos8eNL0Kpwl" alt=""><figcaption></figcaption></figure>


# Trading Settings Guide

## Purchase Priority Fee

* The **purchase priority fee**, or **gas priority fee**, significantly impacts the speed of transaction confirmation during buying. To accelerate the confirmation process, users can set various levels of gas priority fees, including standard, fast, and ultra-fast options.
* For users seeking quick transactions, the standard gas priority fee can be set to 0.00025 SOL, the fast option to 0.0005 SOL, and the ultra-fast can be elevated to 0.002 SOL or higher. Actual gas priority fees can be customized according to trading preferences.

## Selling Priority Fee

* Similarly, the **selling gas priority fee** also significantly affects the speed of transaction confirmations. Like buying settings, the gas fees for selling transactions can be customized based on user needs.
* For rapid transactions, we recommend setting the standard gas priority fee at 0.00025 SOL, fast at 0.0005 SOL, and ultra-fast at 0.002 SOL or higher, adjustable according to individual trading habits.

## Slippage Tolerance

* **Slippage tolerance** refers to the allowable difference between the expected price and the actual execution price, with a variance factor = 1/(1 - slippage). For example, a 50% slippage tolerance means accepting up to a 2x price difference, while 100% indicates no limit on the price gap.
* Slippage controls the range of price variation you are willing to accept upon trade execution. uGun currently supports a high-speed mode, allowing slippage settings from 0% to 100%.
* In high-speed trading modes, it is advisable to set lower slippage to avoid potential sandwich attacks.


# Language Support

uGun supports multiple languages. By clicking on the "Language" option, users can view the currently available languages, which include English and Simplified Chinese. Simply click on the desired language to switch instantly with just one click. This feature enhances the user experience by providing a more accessible and personalized interface, catering to a global user base.

<figure><img src="/files/J1Rezf4uIlBjsdTG24On" alt=""><figcaption></figcaption></figure>


# Swap Trading

Swap trading is one of the key features of uDEX, transforming decentralized trading by integrating with external DEXs like Uniswap, PancakeSwap, and 1inch through a smart contract for asset exchange. This integration allows uDEX to optimize trades by seeking the best prices and minimizing slippage, significantly reducing trading costs for users. Integrated with the 1inch DEX aggregator, uDEX enables trades to be routed through multiple DEXs for optimal pricing, resulting in a substantial reduction in trading costs. Users benefit from insights on optimal trade costs, exchange rates, price impact, and gas consumption, thus enhancing the trading experience.

In its operation, uDEX connects to major decentralized exchanges, comparing rates across them to find the best trading conditions. The platform's routing algorithm strategically searches for the most favorable rates, often splitting orders across several exchanges, especially effective for large transactions. For example, in certain trades, the algorithm may choose a multi-step conversion process to ensure the best rate, illustrating uDEX's commitment to offering efficient, cost-effective trading solutions for its users.

<figure><img src="/files/J6vzM2i1keQUlpPtk1TT" alt=""><figcaption></figcaption></figure>


# Leverage Trading

Leverage trading on uDEX allows traders to borrow assets for immediate trading, utilizing strategies like short selling and leverage long positions. In short selling, investors profit from declining asset prices by repaying the lender at a lower cost. Leveraged long positions involve borrowing to purchase assets, profiting from price increases. These strategies depend on price changes and leverage ratios, offering a balanced mix of risk and reward.

In practical terms, uDEX allows anyone to create lending pools for specific trading pairs, such as BNB/USDC, facilitating a wide range of leveraged trading activities. Users contribute to these pools, providing liquidity and earning interest based on utilization rates. Traders can then borrow from these pools for leveraged trades, with uDEX ensuring efficient execution and loan management. This system simplifies the trading process and enhances liquidity on the decentralized exchange, obviating the need for separate order books. When traders close their positions, uDEX handles the conversion and repayment processes, ensuring that lenders receive their due while traders settle their debts, reaping profits or bearing losses as per their trade outcomes.

<figure><img src="/files/72Hzb5YBk6kthDqsLr0L" alt=""><figcaption></figcaption></figure>


# uBridge

The uDEX protocol introduces an innovative inscription cross-chain bridge - [uBridge](https://bridge.udex.one/). It streamlines the transfer of Bitcoin BRC-20 inscriptions onto the BSC chain. This feature adeptly resolves the issue of limited liquidity for BRC-20 inscriptions in secondary markets, significantly enhancing the trading experience and reducing transaction costs. By utilizing this feature, users can effortlessly bridge their BRC-20 inscriptions, thereby gaining access to a broader trading ecosystem and fostering more dynamic market interactions.

uDEX platform ensures secure and efficient mapping of BRC-20 inscriptions. When users activate this feature, their Bitcoin chain inscriptions are securely locked within uDEX's smart contract, and corresponding v-BRC20 tokens are created on the BSC chain, maintaining a robust 1:1 relationship. This allows for the creation of liquidity pools on PancakeSwap, enabling the free exchange of v-BRC20 tokens with other tokens. When these tokens are remapped back to the Bitcoin chain, the BSC chain's v-BRC20 tokens are destroyed, ensuring a seamless and secure transaction back to the user's original Bitcoin address.

<figure><img src="/files/orhSmQYBxx5jJEEeCLmn" alt=""><figcaption></figcaption></figure>

{% content-ref url="/spaces/qSLoj8cT4wzl2Xfvt2XT/pages/BvavqinQEsGIYPR2yPhk" %}
[How to Trade After Cross-Chain?](/tutorial/how-to-trade-after-cross-chain)
{% endcontent-ref %}

##


# Pools

The uDEX protocol features lending pools for leveraged trading, where users can contribute any asset.

* By providing assets to these pools, users are rewarded with LTokens, representing their stake in the pool, along with token incentives.
* Lenders earn interest when trading pairs involve borrowing from these pools. The distribution of this interest, alongside LTokens and token rewards, is proportional to the lender's contribution compared to the pool's total assets.

To safeguard against flash loan attacks, the uDEX protocol mandates that lending and repayment cannot be executed within the same block, necessitating users to open and close their positions across different blocks.

### Risk Considerations&#x20;

Contributing assets to the uDEX protocol's lending pools carries risks. In adverse scenarios, the equity in traders' accounts may become negative, potentially resulting in losses for lenders. To address these situations, the uDEX protocol maintains a risk protection pool, managed by the DAO, which provides a certain percentage of coverage for these extreme cases.

### Customized Lending Pools&#x20;

The uDEX protocol allows anyone to create a lending pool for a trading pair, provided there's existing liquidity for that pair on a DEX.&#x20;

> For instance, someone interested in leverage trading for the SHIB/USDT pair could establish a lending pool for it, where lenders can supply SHIB solely to purchase USDT or vice versa.

### LToken Overview&#x20;

LTokens represent a key method of engagement with uDEX's lending pools, serving as interest-accumulating tokens.&#x20;

When a user deposits assets into a lending pool, they are issued LTokens in return. These tokens enable the holder to accumulate interest over time, not through direct distribution but through their intrinsic value growth. The exchange rate of LTokens increases, meaning the underlying asset value they represent grows, while the quantity of LTokens in one's possession remains constant.

In addition, various projects might offer LTokens via their yield farming programs. This strategy is designed to encourage fund providers to deposit assets, thereby facilitating leveraged trading for borrowers using these tokens.


# Liquidation

## Independent Risk Management Between Trading Pairs&#x20;

To support an open margin trading market, we have established isolated pools with targeted risk parameters, tailored to the unique volatility of each asset. Each trading pair is assigned a specific collateral ratio, determined by its inherent volatility and the blockchain's block time and processing capacity.

## Risk Assessment with AMM Prices&#x20;

Real-time pricing provided by the on-chain Automated Market Maker (AMM) model is utilized as a benchmark for risk assessment and liquidation. This approach is crucial in accelerating the development of the leveraged trading market in a decentralized environment, especially when compared to the delay in waiting for Chainlink oracles to generate or update market data. The instant price data provided by DEXs, maintained on-chain and secured by both technical and economic measures, has become the standard oracle for various DeFi applications, such as margin trading.

## Operational Restrictions&#x20;

To prevent flash loan attacks, multiple restrictions have been implemented in the protocol's design:

* Conducting open, close, or liquidation operations within the same transaction is prohibited.&#x20;
* During the liquidation process, [Oracle](/feature/oracle) ensure the validity of the liquidation price to prevent attackers from manipulating prices to trigger liquidations for profit or to cause cascading liquidation events.


# Oracle

## Oracle Application and Protection

In developing a permissionless margin trading market, we have opted not to rely on external oracles to convey off-chain price data for risk calculation purposes. Instead, we utilize the Time-Weighted Average Price (TWAP) provided by Uniswap, including its forks, to build an Oracle that updates as needed. This approach aims to prevent price manipulation in permissionless markets and allows for real-time risk calculations based on on-chain prices.

## Protection for Uniswap V2 and Its Forks&#x20;

Uniswap offers cumulative price data updated every second. To ensure the accuracy of the TWAP, we check the cumulative total at the start and end of each period.

### Additional Price Storage&#x20;

We record the cumulative total and the latest prices, representing the most recent TWAP for currency pairs on Uniswap V2.

```
struct V2PriceOracle {    
    uint32 blockTimestampLast;  // BlockTime of last update
    uint price0;                // TWAP for token0
    uint price1;                // TWAP for token1
    uint price0CumulativeLast;  // Cumulative TWAP for token0
    uint price1CumulativeLast;  // Cumulative TWAP for token1
}
```

### Price Verification Measures&#x20;

We calculate different margin ratios by comparing three reference prices to protect against price manipulation. These prices include the last recorded TWAP, the most recent TWAP, and the latest spot price. The margin ratio for each new position must exceed all three calculated ratios. Conversely, for a position to be liquidated, its margin ratio must fall below these three ratios. This approach mitigates the risk of flash loan attacks, which can only manipulate spot prices within a single block, not the TWAP. Large trade manipulations are theoretically possible but come with high risk and cost.

### Oracle Update Mechanism&#x20;

The Oracle updates only if at least 60 seconds have passed since the last update and the current TWAP differs from the last recorded TWAP by more than 5%. If the current and last recorded TWAPs differ significantly, new positions and liquidations might be paused until a manual update is done. However, closing healthy positions doesn't require an update. Successful trades also trigger an automatic update of the recorded price. Therefore, in active markets with relatively stable price fluctuations, the recorded TWAP is continuously updated, eliminating the need for frequent Oracle updates.

## Protection for Uniswap V3&#x20;

Uniswap V3 has significantly improved its TWAP oracle, allowing for the calculation of the latest TWAP over approximately the past nine days with a single on-chain call. This enables us to calculate the TWAP based on the previous two blocks. We also ensure that any new positions or liquidations meet the margin ratio requirements calculated based on these three prices: the TWAP between T-2 and T-1 blocks, the TWAP from T-1 to the present, and the spot price. Trading pairs on Uniswap V3 do not require individual Oracle updates.


# Tutorial


# Preparation for Trading: Getting Started

### Prepare your Web3 Wallet

> [Avatar Wallet](https://app.avatarwallet.io/) is recommended.

To start trading, you'll first need a crypto wallet. If you're new to cryptocurrencies and don't yet have a wallet, there's no need to worry. Simply click on the "Connect Wallet" button and then select the [Avatar Wallet](http://app.avatarwallet.io) option to easily create your wallet.

<figure><img src="/files/eeNmDtE3skS1I211EcKU" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ntmNkPNQKdrgaTa12gD0" alt=""><figcaption></figcaption></figure>

Simply log in with your Google or Apple account, and within just 5 seconds, your crypto wallet will be ready. Once you have your wallet, ensure that it is adequately funded with the currency you wish to sell, in order to purchase the cryptocurrency you plan to buy. This step is crucial for a smooth and successful trading experience on our platform.


# How to Start a Market Swap?

Market swap is a key feature of uDEX, exemplifying the advantages of a DEX. Follow these simple steps to complete a market swap:

1. Open the token dropdown by selecting the token name.

<figure><img src="/files/871hlGc1jwRrTU8oJUsW" alt=""><figcaption></figcaption></figure>

2. Find and select your swap token from the list or by searching its name or address.

> * Choose your target token by clicking another token name.
> * Locate and select your target token, either from the list or via search.

<figure><img src="/files/1D0lBSyJp4V4mbarzFrF" alt=""><figcaption></figcaption></figure>

3. Enter the swap amount or select “**Max**” to use all available tokens. Click "**Swap**".

<figure><img src="/files/AYZmlmUy6wpEt9wHJ4AA" alt=""><figcaption></figcaption></figure>

4. Review and confirm the details, then click “**Confirm**”.

<figure><img src="/files/WYCBISKeQ9Ftp8zhNmFx" alt=""><figcaption></figcaption></figure>

4. After the transaction is completed, you can view the transaction records here.

<figure><img src="/files/xncxeYhrb3VrP1dmmKTp" alt=""><figcaption></figcaption></figure>


# How to Start a Limit Swap?

Selecting a cryptocurrency operates the same as a [Limit Swap](/tutorial/how-to-start-a-market-swap).

1. Choose the Token you want to trade, set the execution price, and click **'Plan an Order'**;

<figure><img src="/files/c7BZ7wQXAPmv2ZJWBO15" alt=""><figcaption></figcaption></figure>

2. Confirm the order information and click **'Approve'**;

<figure><img src="/files/XPMBFAY89RdLyh0EFsvC" alt=""><figcaption></figcaption></figure>

2. After successfully placing the order, wait for the price to reach the position you set for automatic trading.

<figure><img src="/files/3ZNSpnFcqOBCkqzRgEJz" alt=""><figcaption></figcaption></figure>


# How to Add Trading Tokens?

uDEX supports you in adding any Token for trading.

1. Search for the Token contract address in the "Select Token" window, and then click **"Add Token"**.

<figure><img src="/files/BIZyP6WAHoprmFuRQgWN" alt=""><figcaption></figcaption></figure>

2. Choose the token pair you want to trade, and check the risk confirmation statement.

<figure><img src="/files/UoXoSqiEXzkvPbrgxhyX" alt=""><figcaption></figcaption></figure>

3. The system automatically matches DEXs that support trading. After successful addition, you can trade with the new token.

<figure><img src="/files/p29a8J8fVh3ju5DzRGXa" alt=""><figcaption></figcaption></figure>

<br>


# How to Start Futures Trading?

In this guide, we will walk you through the process of starting futures trading using the BNB-USDT trading pair with a 10X leverage.

1. Start by clicking on the trading pair "BNB - USDT." The chart for this trading pair will appear in the middle of the dApp, while the margin trading operation panel will be on the right side. Adjust the trade conditions according to your risk appetite, such as choosing between long or short positions, selecting the leverage level, and depositing margin funds.

<figure><img src="/files/BoNMYE8MdXvPKfprK7M2" alt=""><figcaption></figcaption></figure>

\
2\. Select the "Long BNB" option and use the slider to adjust the leverage to 10X.

<figure><img src="/files/rgOCNzoyBJFsImoB0QRc" alt=""><figcaption></figcaption></figure>

3. Once you have granted permission, choose "Long BNB" again and set the leverage to "10X." A confirmation page from MetaMask will appear. Please review the information provided. If you are satisfied, click the "Confirm" button to submit the transaction.

<figure><img src="/files/kw1YvdsHfaClxqtDxdrO" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/p96B9FBZZ6p6AXSGNu2Y" alt=""><figcaption></figcaption></figure>

4. To view your trades, click on "My Trades" in the menu bar. If you wish to close your position, you can click on "Close." You have the option to close a partial portion of your position by entering a specific amount in the "Input Amount" field or selecting a percentage. To avoid liquidation of your position, you can add additional margin by clicking on "Add Margin" and specifying a number or percentage based on your available wallet collateral.

<figure><img src="/files/pL4oAVfS0WKdvQRUHQYz" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/PO7OYsMQ8vHWkjq4jANR" alt=""><figcaption></figcaption></figure>


# How to Trade After Cross-Chain?

### Manually Add a Token in uDEX

1. Navigate to the "Trade" page on uDEX.
2. In the Select Token search box, input the contract address of the token you intend to add and click on "Add Token."
3. Choose the trading pair you require, ensuring it already has liquidity on the DEX, and confirm your selection.
4. Once the token is successfully added, it becomes available for trading in the Swap section.

<figure><img src="/files/LU5pMMNLf0TS0PAJPhzq" alt=""><figcaption></figcaption></figure>


# FAQ


# What should I do if the uDEX Telegram Bot is unresponsive?

If you encounter issues such as page lagging or unresponsiveness from the uDEX Telegram Bot, you can follow these steps to resolve the problem.&#x20;

Click on the button located in the top right corner and select "Reload Page" to refresh the page and restore the Bot's service.&#x20;

<figure><img src="/files/ZBL1U3OOwf00C0Te5Dfz" alt=""><figcaption></figcaption></figure>

This action should help in resolving any temporary glitches or unresponsiveness you may be experiencing.


# What should I do if I can't find the cryptocurrency I want to trade?

### If you're unable to find the token you wish to trade on our DEX.&#x20;

#### You can [Add a Custom Token](/tutorial/how-to-add-trading-tokens):

&#x20;If you're sure the token exists on the blockchain network our DEX operates on, you may have the option to add it manually using its contract address. Be cautious and verify the contract address from a reliable source to avoid scams.


# What are market orders and limit orders?

### [Market Orders](/tutorial/how-to-start-a-market-swap):&#x20;

A market order is an instruction to buy or sell a token immediately at the current market price. It's executed quickly but doesn't guarantee a specific price. This type of order is suitable when speed is more critical than price.&#x20;

### [Limit Orders](/tutorial/how-to-start-a-limit-swap):&#x20;

A limit order is an instruction to buy or sell a token at a specific price or better. You set the maximum price you’re willing to pay, or the minimum price you’re willing to accept. The trade will only execute if the market price reaches your set limit.


# What fees are associated with Swap transactions?

#### When engaging in [swap](/tutorial/how-to-start-a-market-swap) transactions on [uDEX](https://app.udex.one/), there are several types of fees that users might encounter:

#### Trading Fees:&#x20;

This is a fee charged by the uDEX for each swap transaction. It's usually a small percentage of the transaction value. The transaction fees collected are typically used to [reward](/referral-program) community members who contribute to the platform's development.

#### Network Fees (Gas Fees):&#x20;

These are fees paid to blockchain network validators for processing and validating transactions. The amount of this fee can vary greatly depending on the blockchain's current congestion and the complexity of the transaction.


# Referral Program

The [uDEX](https://app.udex.one/) Referral Program is a commission-earning mechanism where existing users invite new users to join the uDEX exchange, thereby creating a rewarding system. By inviting new users to trade, the program aims to extend the high-quality trading experience uDEX offers to a broader audience. Users generate their unique referral codes to invite new users. The more numerous and active these invited users are, the more substantial the rewards for the inviter. Each user can create a referral link and code to invite others and earn commissions.

## How to get referral link/referral code

After connecting uDEX with your wallet, you can view your referral link and code on the app.udex.one/referral page (TBD) or obtain the sharing link in [uDEX Telegram bot](https://t.me/u_dex_bot/udex). Send the referral/sharing link or code to invitees when they first connect uDEX with their wallets.

## uDEX Referral Rules

#### **Earning commissions**

1. **Generating referral codes and links**

All uDEX users are eligible to participate in the referral program. Once you connect your wallet to uDEX, the system will automatically generate a unique referral code and a dedicated link for you.

2. **Sharing the link**

You can share your referral link or code in various ways, such as sending them to friends or followers or promoting them on social media platforms, blogs, and other online channels.

3. **Joining and trading**

New users become your invitees by first using uDEX through your referral link or code, connecting their wallets to log into uDEX. Additionally, you can integrate the uDEX Telegram bot into your [Telegram group ](https://t.me/uDEX_Community)chats. Share the bot's invitation link in the group, and members can click your link to start trading through the bot. You start earning commissions when an invitee completes their first transaction.

4. **Receiving commissions**

As the inviter, you will earn up to 70% of the transaction fees paid by your direct invitees. The commission data is updated daily at 00:00 UTC.

5. **Commission settlement**

The referral commission dashboard only displays the invitation commissions on the blockchain you have currently selected. To view invitation commissions on other chains, you must switch to those chains.Referral commissions are temporarily stored off-chain and can be withdrawn to your wallet at any time.

#### **Viewing and exporting referral data**

1. **Viewing referral details**

You can easily view the number of trading users you have invited and the corresponding commission amounts on your referral commission backend details page.

2. **Exporting referral data**

You can download and examine the complete data of all users you have invited from the viewing page.

#### **Termination of referral commissions**

We reserve the right to terminate referral commissions in the following circumstances:

1. **Self-invitation**

Any attempt to gain undue advantage through self-invitation using multiple wallet accounts will be stopped.

2. **Impersonating official social media**

Unauthorized promotion using social media accounts similar to uDEX’s, including but not limited to platforms like X (formerly Twitter), Facebook, Discord, Telegram, etc. is not allowed.

3. **Unauthorized use of official identity**

Any unauthorized activities, such as sending invitation emails or publishing information while impersonating uDEX's official identity, are not allowed.

4. **Creating similar websites**

It is forbidden to build a third-party website similar to uDEX and direct users to the official site, including but not limited to:

* Creating a webpage similar to the uDEX official website [app.udex.one](https://app.udex.one/).
* Using a URL highly similar to the uDEX official website app.udex.one.


# Contact Us

We highly value the uDEX community and warmly welcome everyone to participate in our community activities. Whether you're a uDEX user or not, anyone can reach out to us at any time. Join the conversation or get support by joining the following channels:

* X: [@uDEX\_one](https://twitter.com/uDEX_one)
* Telegram: [t.me/uDEX\_Community](https://t.me/uDEX_Community)

If you have any questions or concerns, feel free to email us at <contact@innoguild.com>. We're always here to help and engage with our community members.


# uDEX Privacy Policy

&#x20;uDEX **(in the future referred to as "this platform" or "we") respects and protects the privacy of users (in the future referred to as "you" or "users"). When you take the following actions, this platform collects, discloses, and processes your personal information by this privacy policy (in the future referred to as "this policy"):**

1. Entering or using our website or mobile application ("app") and services; and/or
2. Providing us with your personal information, regardless of the medium provided.

This platform suggests that you read and understand the entire content of this policy carefully before using the application, and essential information, such as disclaimers, will be highlighted in bold. **The provision of your personal information to us means that you agree to our collection, use, disclosure (including transmission), and processing of your personal information by the provisions of this policy. If you do not accept this policy, please do not provide us with any personal information. This policy can be updated online by this platform at any time without further notice. Once the updated policy is published on our application, it becomes effective and replaces the original procedure. The revised policy will apply immediately to the personal information you provide to us. Please stop using the application directly if you do not accept the revised terms. Your continued application use will be deemed to accept the revised policy.**

### I. What Information We Collect from You[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#i-what-information-we-collect-from-you) <a href="#i-what-information-we-collect-from-you" id="i-what-information-we-collect-from-you"></a>

**When you visit this platform or use our application and services, we will collect, process, and use the following types of information:**

* We will collect your personal information, such as mobile device information, operation records, transaction records, wallet address, etc.
* To meet your specific service needs, we will collect your personal information, including but not limited to your social media login account, email address, etc.
* You acknowledge: Your device's private key fragments on the application are not stored or synced to our platform's servers. We do not provide services to retrieve your device's private key fragments.

We may require you to provide more personal information to use certain specific features on the application. If you do not agree to provide such personal data, it will be considered that you give up using particular application parts.

We allow other services and applications to be integrated with the services provided by this platform. If you use integrated third-party services, we may receive and process data from the third party (and will share specific data with the third party, including the above data) to provide integrated services.

**This policy does not apply to the information generated by any third-party integrated services you use through our service processed by third parties. When using integrated applications and services on this platform, please review the third party's relevant legal documents, including but not limited to its service agreement and privacy policy.**

**Within the scope permitted by laws and regulations, this platform may collect and use your personal information in the following situations without obtaining your authorization or consent:**

1. Related to national security, national defense security;
2. Related to public safety, public health, and significant public interests;
3. Related to criminal investigation, prosecution, trial, and execution of judgments;
4. The collected personal information is in the public domain;
5. Collect your personal information from legally disclosed information, such as legal news reports, government information disclosure, etc.;
6. Necessary for maintaining the security and compliance of the service, such as discovering and handling faults in products and services;
7. Other circumstances permitted by laws and regulations.

**The ways we collect information are as follows:**

1. When you voluntarily provide us with information for any reason;
2. When you authorize us to obtain your information from third parties;
3. When you use our application and services;
4. When you contact or interact with our staff through various communication channels, such as social platforms, communication platforms, face-to-face meetings, telephone, email, fax, and letters, etc.;
5. When you transact with us, contact us, or request us to contact you;
6. When you request to subscribe to our emails; and/or
7. We copy all or part of your transaction records through the blockchain system. However, your transaction records should be based on the records of the blockchain system.

**Our application may contain some technologies that collect personal information, and the specific collection methods will be explained in this policy or applicable terms and conditions.**

Providing personal information to us is voluntary, and you can withdraw your consent anytime. However, if you refuse to provide us with the personal information we request, you may not be able to use the application, and we may not be able to contact you or provide you with the products or services you need.

Sometimes, you may provide us with personal information different from yours. If you provide information about others, you should ensure that you have obtained the consent of the subject of the information, allow us to collect the personal data of the subject of the information, and the subject of the information agrees to disclose their personal information to us. You agree that if the subject of the information claims against us for collecting, using, and telling their data by the terms of this policy, you will indemnify us and exempt us from liability.

You should ensure that the personal information you provide to us is true, accurate, and complete. When your information changes, please notify us as soon as possible.

### II. How We Use Your Information[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#ii-how-we-use-your-information) <a href="#ii-how-we-use-your-information" id="ii-how-we-use-your-information"></a>

**We will collect, use, or disclose your personal information for one or more of the following purposes:**

1. To provide you with the products and/or services you requested;
2. To manage your relationship with us;
3. To enhance your user experience;
4. To confirm your correspondence with your wallet through the unique serial number of your mobile device;
5. To send you important notices promptly, such as application updates, changes to the service agreement, and terms of this policy;
6. To assist you in handling your questions, feedback, complaints, and requests through the wallet address and provided mobile device information;
7. To inform you about our products, services, projects, and activities;
8. To resolve disputes, investigate any complaints, claims, or disputes, or any actual or possibly illegal behavior;
9. To conduct internal audits, data analysis, and research within the platform;
10. To analyze user behavior by tracking user usage of the application;
11. To comply with legal and regulatory requirements and requests from regulatory authorities;
12. To comply with international laws and regulations on security, anti-money laundering, and anti-terrorism;
13. To fulfill our obligations and contractual terms and conditions;
14. Any reasonable purpose related to the purposes above.

If you agree, we will occasionally use your personal information for other purposes, such as informing you of the latest activities, offers, and promotional information launched by our strategic partners or affiliates.

### III. How You Control Your Information[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#iii-how-you-control-your-information) <a href="#iii-how-you-control-your-information" id="iii-how-you-control-your-information"></a>

**You have the following rights to control your personal information in the application:**

* You can import your other wallets into the application or digital token management wallets through the synchronization wallet method. The application will show you the imported wallet information.
* You understand that you can modify your digital token type, transfer and receive activities, etc., through the "Crypto" section of the application.
* You understand that neither you nor we have control over whether your transaction records are public because, due to the open-source nature of the blockchain transaction system, your transaction records are public and transparent in the entire blockchain system.
* Our application will contain links to other websites, applications, or smart contracts not owned, operated, developed, or maintained by us. These links are provided for your convenience. This policy only applies to our application. You understand that our "uDEX Privacy Policy" will no longer apply when you use third-party services. We recommend that you read and understand the third party's privacy rules and user service agreements in detail.
* You have the right to request us to update, change, or delete your personal information and withdraw your consent given to us. If you wish to withdraw your consent given to us, or if you want to update, change, delete, or access the personal information we hold, or if you do not accept our changes to this policy, you can contact <contact@innoguild.com.> To allow you to manage the personal information we hold and to inform you of how we have used (or may have used) your personal information in the year before you made such a request, we may charge you a certain fee. If we charge you, we will inform you of the fee amount in advance and fulfill your request after you pay. We will try to respond to you within thirty (30) days after you submit your request. We will inform you of the specific response time if we cannot respond within thirty (30) days.

We often need your personal information to provide you with the products or services you requested. If you refuse to provide us with the personal information we asked for or withdraw the consent you gave us, we may not be able to continue to provide you with the products and services you requested.

### IV. How We May Share or Transfer Your Information[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#iv-how-we-may-share-or-transfer-your-information) <a href="#iv-how-we-may-share-or-transfer-your-information" id="iv-how-we-may-share-or-transfer-your-information"></a>

**We will store your personal information for business and legal purposes.**

**Without your consent, we will not sell, trade, or transfer your personal information to third parties.**

If you agree to disclose your personal information to our strategic partners or affiliates, we may disclose your personal information to these entities. These entities will only use your data for the purposes you have agreed to.

**You agree that we may disclose or share your personal information with the following third parties:**

1. Service providers and data processors who represent us and provide services, such as KYC checks, accounting, data processing or management services, website hosting, maintenance and operation services, mail information services, analysis services, payment transaction processing, marketing, etc.
2. Our consultants and professional advisors (such as accountants, lawyers, and auditors).

Suppose we must transfer your personal information to any other country for the above purposes. In that case, we will obtain your consent and ensure that the recipient of the personal data has the same level of individual information protection measures as us. If there is no applicable personal information protection law for our relationship with you in these countries or regions, we will sign a legally enforceable agreement with the individual recipient.

**Without your prior consent, this platform will not share or transfer your personal information to any third party except for the following situations:**

1. The collected personal information is made public by you to the public.
2. Personal information is collected from legally publicly disclosed information, such as legal news reports, government information disclosure, and other channels.
3. Provide or execute this policy to protect our or other parties' rights, property, or safety by applicable laws, regulations, legal procedures, and administrative or judicial requirements.
4. In the event of a merger or acquisition, if personal information is transferred, this platform will require the recipient of personal information to continue to be bound by this policy.

### V. Automatic Data Collection Technology[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#v-automatic-data-collection-technology) <a href="#v-automatic-data-collection-technology" id="v-automatic-data-collection-technology"></a>

**We use automatic data collection technology in our application. For example:**

1. Cookies (or browser cookies). Cookies are small text files set up by the website or app operator to recognize your browser or device. We may use cookies technology on our application to store and track information, such as the number of users and frequency of use, user distribution, and user online preferences. Cookies do not capture data that can identify you, but the information collected can help us analyze the use of the application and improve your user experience. You can turn off cookies in your browser settings. However, this may affect the functionality of the application.
2. Web Analytics. Web analytics is a method of collecting and evaluating the behavior of website and mobile application visitors. This includes analyzing traffic patterns, such as determining the frequency of access to a specific website or mobile application features or understanding the information or services that visitors are most interested in. Our application uses web analytics services provided by third-party tools.

### VI. How We Protect Your Information[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#vi-how-we-protect-your-information) <a href="#vi-how-we-protect-your-information" id="vi-how-we-protect-your-information"></a>

**If this platform ceases to operate, the platform will stop collecting your personal information and take measures to delete or anonymize your personal information within a reasonable period.**

To protect your personal information, this platform will adopt data security technology measures, enhance internal compliance, increase internal staff information security training, and set secure access permissions for related data to protect your privacy information securely.

### VII. Data Retention[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#vii-data-retention) <a href="#vii-data-retention" id="vii-data-retention"></a>

We will only retain your personal information for the duration necessary for the purposes described in this policy unless a more extended retention period is required (for example, to comply with legal obligations or requirements, or to establish, exercise or defend legal claims, or for legitimate business purposes, or based on legal regulations).

### VIII. Protection of Minors[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#viii-protection-of-minors) <a href="#viii-protection-of-minors" id="viii-protection-of-minors"></a>

**We make the following special provisions for the protection of minors under the age of 18:**

* Minors should use the services related to this platform under the guidance of their parents or guardians.
* Parents and guardians of minors should guide minors to use the application after reading this policy and our other relevant rules.

This platform will protect the confidentiality and security of the personal information of minors by applicable laws and regulations.

### IX. Disclaimer[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#ix-disclaimer) <a href="#ix-disclaimer" id="ix-disclaimer"></a>

**You acknowledge that once you use third-party services, this policy will no longer apply to such third party's collection, use, disclosure, and transmission of your personal information. The platform cannot guarantee that such third parties will adopt reasonable security measures.**

**You will assume responsibility for using third-party services, and you agree that if the third party collects, uses, discloses, and transmits your personal information, causing you to suffer losses or damages, you may not ask this platform to assume responsibility.**

**You acknowledge and accept that, to the maximum extent permitted by applicable law, this platform will take reasonable security measures to protect your personal information under the current technical level conditions based on the principles of "as is, " as available," "not guaranteed to be flawless," to avoid the leakage, alteration or damage of information. This platform uses wireless means to transmit data. Therefore, the platform cannot guarantee the privacy and security of data sent over a wireless network.**

Despite implementing the technical and security measures described in this policy, the platform must ensure that data transmission on the Internet is secure. Therefore the platform does not guarantee the security of personal information provided by users to the forum. The platform does not assume compensation liability for any events resulting from unauthorized access to user personal information.

### X. Others[​](https://docs.avatarwallet.io/docs/terms/privacy-policy#x-others) <a href="#x-others" id="x-others"></a>

**This policy will take effect from August 1, 2023. This platform reserves the right to modify this policy at any time. The platform notifies users of modifications to this policy by updating and posting new versions' effective dates.**

**You understand that sometimes the platform will publish notices to tell you that this policy has been revised, but this is not an obligation of the forum. You should regularly review this policy and pay attention to its revisions. If you disagree with the revised content, you should stop accessing this platform immediately. When the updated version of this policy is published, your continued access to this platform indicates and signifies your agreement with the updated content of this policy and your agreement to comply with the updated version of this policy.**

For matters not covered by this policy, you need to comply with the announcements and related rules updated by this platform from time to time.


