Let $\Omega_0,\Omega_1\subset\mathbb R^n$ be bounded uniformly convex domains with $C^\infty$ boundaries. Let $\rho_0\in C^\infty(\overline{\Omega_0})$ and $\rho_1\in C^\infty(\overline{\Omega_1})$ satisfy
Let $\phi:\Omega_0\to\mathbb R$ be the Brenier potential for the quadratic transport from $\rho_0\,d\mathcal L^n$ to $\rho_1\,d\mathcal L^n$, normalised by adding a constant. Then $\phi$ is smooth in $\Omega_0$, and the global second boundary value regularity theorem gives a representative with $\phi\in C^\infty(\overline{\Omega_0})$ and $\nabla\phi:\Omega_0\to\Omega_1$ a smooth diffeomorphism.