function _transfer(address sender, address recipient, uint256 amount) private {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
if (sender == uniswapV2Pair) {
//...
...对象。
- 可以在编译时被内联优化。
- 不能发送以太币。
```
function add(uint a, uint b) public pure returns (uint) {
return a + b;
}
```
- view:函数只读取合约的状态变量,但不修改它们。
- 可以调用其他 `view` 或 `pure`函数
...