Adding Liquidity
Last updated

When you are the first person to provide liquidity for the BT/ITL pair, you define the initial exchange rate.
Variables: Let x be the amount of BT and y be the amount of ITL.
Price Discovery: The initial price of BT is determined by the ratio of your deposited
LP Token Calculation: To prevent "inflation attacks" on small pools, the protocol burns the first 1,000 wei of LP tokens (Lmin):
Once the pool is established, new liquidity providers must deposit tokens in the exact same ratio as the current reserves to avoid changing the market price during the deposit.
The Constraint:
LP Token Issuance: You receive LP tokens proportional to your share of the total reserves:
Adding liquidity increases the depth of the pool by increasing the constant product k.
LPs face "Impermanent Loss" if the price of BT diverges from its price at the time of deposit. The loss relative to simply holding the tokens is:
Note: This loss is called impermanent because it disappears if the price returns to the original ratio. but it must be offset by the 0.3% trading fees to ensure profitavility.
Since the core engine operates on two ERC-20 tokens, when providing native ITL, the Router contract automatically wraps it into WITL (Wrapped ITL).
Technical Logic: The contract calculates the required BT amount based on the ITL sent:
The Router pulls the BT from your wallet, wraps your ITL into WITL, and transfers both to the Pair contract to mint your LP tokens.
Last updated
