VLIQUID Specifications

Overview

The Valis Liquidity (VLIQUID) Smart Contract allows for the creation of liquidity pools with up to 5 different tokens. Each token is assigned a different weight, representing its proportion of the total pool value. These are public pools that anyone can add liquidity to.

The creator of the VLIQUID pool should decide the pool parameters (like token weights and fees) when creating the pool. Once the pool is created, the pool parameters remain fixed.

Liquidity providers can either join an existing shared pool that matches their desired configuration or create a new pool with their desired configuration.

Bonding Curve

Bonding Curve Description

A bonding curve is a mathematical concept used to determine the price of an asset based on its supply and demand. The curve itself is typically represented as a continuous, monotonic function where the price increases as the supply of the token increases.

Bonding Curve Benefits

Bonding curves play a crucial role in decentralized finance (DeFi) by providing:

VLIQUID Bonding Curve

VLIQUID bonding curve formula is defined as follows:

$P(A/B) = \frac{R(A)/W(A)}{R(B)/W(B)}$

Contributing Tokens to a Valis Liquidity Pool

This section refers to the process by which users add their tokens to a liquidity pool. By contributing tokens, users become liquidity providers and earn a share of the fees generated by trades within that pool. There are two main ways to contribute tokens: Single-Asset Deposit and Multi-Asset Deposit.

Single-Asset Deposit

Multi-Asset Deposit

Objectives

This section break down the smart contract objectives into clear concepts and provides examples for each objective. This way, the VLIQUID platform's goals become more accessible and understandable to a broader audience, both technical and non-technical, ensuring everyone can participate and benefit from Valis Liquidity Pools.

The VLIQUID smart contract aims to achieve several key objectives to enhance the user experience and functionality of liquidity pools.

1. Create Liquidity Pools

Goal

Key Concepts

Example

2. Distribute Pool Tokens (VPTs)

Goal

Key Concepts

Example

Formula

$$ ProviderVPTs = \frac{Total\_VPT\_supply \times Value\_of\_deposited\_tokens}{Total\_value\_of\_pool} $$

3. Earn a Share of Trading Fees

Goal

Key Concepts

Example

Formula

$$ ProviderShare = \frac{ProviderVPTs}{Total\_VPT\_Supply\_of\_Pool} $$

$$ ProviderReward = swapFee[poolAddress] \times ProviderShare[poolAddress] $$

4. Ensure Efficient and Cost-Effective Transfers

Goal

Key concepts

Example

5. Support Fractional Share Ownership

Goal

Key Concepts

Example

Mechanism

6. Promote Staking with Incentives

Goal

Key Concepts

Example

Formula

$$ Reward = \frac{TotalBonusToken \times AmountOfStaked[providerAddress]}{TotalAmountOfStaked} $$

Internal Commands and Functions

Private Variables

Procedures

Functions

← Previous

Specifications

Next →

Tokens

On this Page