keep-starknet-strange / unruggable.meme

☣️ A framework for building safer memecoins 💸
https://unruggable.meme
MIT License
135 stars 91 forks source link

feat: create pair and add liquidity on AMM in `launch_memecoin` function #2

Closed AbdelStark closed 9 months ago

AbdelStark commented 9 months ago

Issue: Implement Pair Creation and Liquidity Addition in launch_memecoin Function

Description

We need to enhance the launch_memecoin function to include the creation of a trading pair and the addition of liquidity to an Automated Market Maker (AMM) platform. This process involves using the Memecoin contract's internal balances (both the memecoin itself and a counterparty token like ETH or USDT) to establish the initial liquidity in the trading pool.

Requirements

  1. Pair Creation: Implement functionality within launch_memecoin to create a trading pair for Memecoin and a counterparty token (e.g., USDT, ETH) on the selected AMM platform.
  2. Liquidity Addition: Modify launch_memecoin to use the internal balances of Memecoin (MT) and the counterparty token, which are sent to the Memecoin contract address, to add liquidity to the newly created trading pair.

Example Workflow

Implementation Notes

rcatalan98 commented 9 months ago

gm! please also add @dubzn