Replace 'latest version' with the actual ones from the repositories.
Next, try compile; you shouldn't get any errors.
Liquidswap's contracts always point to the latest AptosFramework devnet revision. If you encounter issues after adding our dependencies, remove dependencies.AptosFramework completely from your project.