...
## Error
```
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
// require, revert, assert
// - gas refund, state updates are reverted
// 8.0 version 更新了,custom error, save gas
contract Error {
function testRequire(uint _i) public pure {
require(_i 10) {
...
Compound issues rewards in COMP tokens to lenders and borrowers in proportion to their share of the a market’s lending and borrowing.
该算法与 [MasterChef Staking Algorithm](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwjOoYf13uWCAxUT1zgGHW39CBc4HhAWegQIChAB&url=ht...