Description

This is a smart contract called "LionBridge" that allows users to bridge tokens from one EVM chain to another EVM chain using the Axelar network. The contract enables users to swap tokens and liquidity providers to earn fees.

The contract has three main functions:

  1. addLiquidity: allows users to deposit tokens into the contract and mint LP (liquidity provider) tokens. If the token already exists in the liquidity pool, the tokens are added to the existing pool; otherwise, a new liquidity pool is created for the token, and the LP tokens are minted. The LP token name is set as "LionBridge LP," and the symbol is set as "LION_LP."

  2. removeLiquidty: allows users to remove liquidity from the specified LP token by burning the corresponding LP tokens and transferring the underlying asset back to the user.

  3. bridge: enables users to bridge tokens from one EVM chain to another using Axelar. The tokens will be transferred from the user's account to this contract and then bridged to the specified destination chain.

Last updated