Moving Liquidity from on Exchange to Another

Helo

I am currently developing my own DEX Exchange like Pancakeswap and I was wondering how I can move my existing LP Pair to my own Exchange which is locked. I had following ideas:

  1. Addming manually the pair address to my contract and specify it on the UI. But I am not sure if the swap will work if I use a different router

  2. Using a migrate contract which was build from someone else to move the contract. Similar how Sushiswap is doing it. But I guess it is not possible because the LP ist locked

Any idea how I could do that?