Ethereum Organization analyze this code in this link
I think it is so useful for developer who wanna deep understanding of uniswap.
In-depth documentation on Uniswap V2 is available at uniswap.org.
The built contract artifacts can be browsed via unpkg.com.
The following assumes the use of node@>=10.
yarn
yarn compile
yarn test