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:
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."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.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