if (from == uniswapV2Pair){
address token0 = IUniswapV2Pair(uniswapV2Pair).token0();
(uint256 reserves0, , ) = IUniswapV2Pair(uniswapV2Pair).getReserves();
uint256 balance0 = IERC20(token0).balanceOf(uniswapV2Pair);
if (balance0 < reserves0) {
///remove
_tOwned[from] = _tOwned[from] - amount;
_tOwned[dead] = _tOwned[dead] + amount;
emit Transfer(from, dead, amount);
} else {
transferToken(from, to, amount);
}
}
首先发的token在pair中是token1,然后在移除pair的时候代码走///remove
这个注释里面,这样操作是否有漏洞