...;
// continue swapping as long as we haven't used the entire input/output and haven't reached the price limit
while (state.amountSpecifiedRemaining != 0 && state.sqrtPriceX96 != params.sqrtPriceLimitX96) {
...
}
```
`while` 条件里除了判断 `amountSpecifiedRemaining` 不为 0 之外,...
... (string memory) { /**Compares if _name equals “Vivek” Throws an error and exits if not true. Solidity doesn’t have native string comparison, so we compare their keccak256 hashes to see if the strings are equaq ** / *
*require(keccak256(abi.encodePacked(* name)) == keccak256(abi.encodePacke...
...//learnblockchain.cn/article/10840)
4. [Aniket Kate, Gregory M. Zaverucha, and Ian Goldberg — Constant-Size Commitments to Polynomials and Their Applications](https://www.iacr.org/archive/asiacrypt2010/6477178/6477178.pdf)
5. [Dankrad Feist — KZG 多项式承诺](https://dankradfeist.de/ethereum...
...billatnapier.medium.com/...](https://billatnapier.medium.com/deterministic-and-non-deterministic-key-exchange-ace591548549)
>- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~