...a blockchain security researcher with passion for exploring new challenges and staying up-to-date with the latest technological advancements. In addition, she is also a Solidity and Move developer with experience in building DeFi protocols and conducting vulnerability mining.
>
> **Twitter: **htt...
...ocal variables are supported. To access storage variables, use the ".slot" and ".offset" suffixes.`
报错信息指出,只有局部变量可以这样访问,而要访问存储变量,我们需要使用 ".slot" 和 ".offset" 后缀。
## 使用 .slot 后缀获取变量存储槽
首先,我们...
...liquidate看起来更容易出问题:
```js
// repay a user's loan and get back their collateral. no discounts.
function liquidate(address user, uint256 amount) public returns (uint256) {
require(safeDebt(user) r降低 -> safedebt降低
liquidate(user,amount)
-> 满足safeDebt ...