For example, 3 / 2 = 1 in solidity.

Screen Shot 2022-05-27 at 11.54.58.png

newKとdecimal,priceImpactで防いでる!

Uniswap is protect this vulnerability in this code

swap

Ethernaut