🔬
InterSwap Docs
  • Welcome
  • Protocol Level
    • Liquidity Pools
      • Weighted Pools
      • Stable Pools
      • Dynamic Weights
      • Gas Tokens Index(GTI)
    • Add/Remove Liquidity
      • New Pool Creation
      • Add Liquidity
      • Remove Liquidity
    • Swap
  • Integration Level
    • You Integrate us
    • We Integrate you
    • Cross-Chain Smart Routing
  • Supported networks
  • How To
    • Setting Up a Wallet
      • Creating a New Wallet
      • Adding Networks to Metamask
      • Connecting Your Wallet
    • Swap
    • Add Liquidity
    • Remove Liquidity
  • Security
    • Audits
    • Bug Bounty
    • Deployed Contracts
  • TOKENOMICS & GOVERNANCE
    • Allocation & Lockups
    • Token Value Accrual
    • Fees
    • Governance Model
    • Proposals & Voting
  • Information
    • FAQ
Powered by GitBook
On this page
  1. Protocol Level
  2. Liquidity Pools

Dynamic Weights

InterSwap introduces a new mechanic for the dynamic change of tokens weights during single-asset liquidity provision/removing. Adding Liquidity, proportionally increases the weight of the asset and vice versa: removing liquidity decreases the weight.

Liquidity provision/removing does not affect the quotes. Such a mechanic eliminates the possibility of draining the pool.

Let's take an example of such initial pool with equal weights:

Asset
Reserve
Weight Points

BNB

20000

1000

ETH

5000

1000

AVAX

45000

1000

Total Weight: 3000

We are adding liquidity with amount of 20 ETH. How much weigh points we should add to ETH?

price per point = reserve / points count.

p=a/(r/t)p = a / (r / t)p=a/(r/t)

Where

  • p - points to be added or reduced.

  • a - amount of tokens added or removed.

  • r - current reserve of token.

  • t - total points.

In our example: points = 20 / (5000 / 1000) = 4

Asset
Reserve
Weight Points

BNB

20000

1000

ETH

5020

1004

AVAX

45000

1000

Total Weight: 3004

PreviousStable PoolsNextGas Tokens Index(GTI)

Last updated 2 years ago