This is the Rust/Anchor smart contract for Pump.fun - Add virtual LP, remove LP, create Raydium Pool.
You can check the tx to Remove vitual LP and Create Raydium Pool in this smart contract with CPI calls.
https://explorer.solana.com/tx/4L6MWmtV1ZsT8NFfbtu68ZYyYVbpvZ4iynJhPdZw8jESi28TxwojjTFs88Q5QRdNUb297aWfkKcoYP9Ya8npx8AV?cluster=devnet
In fact, in this project, set creating LP FEE as 5% of Reserves.