Skip to content

Alexliwenhao/pumpeth

 
 

Repository files navigation

pump eth

  1. 创建代币
  2. 购买代币
  3. 卖出代币
contract Token is ERC20 {}

contract TokenFactory
- createToken(string name, string symbol)
    - new Token
    - initial_supply

- buy(address tokenAddress) payable
    - calculateBuyReturn()
    - uniswap:
        - createLiquilityPool()
        - addLiquidity()
        - burnLiquidityToken()

- sell(address tokenAddress, uint256 amount)
    - calculateSellReturn()
    - transfer
  1. check token state
  2. Fork mainnet, test uniswap
  3. minimal proxy
  4. Bonding Curve

About

A simple pump.fun clone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 86.9%
  • Python 13.1%