For example, 3 / 2 = 1 in solidity.
3 / 2 = 1
newKとdecimal,priceImpactで防いでる!
Uniswap is protect this vulnerability in this code
swap
Ethernaut