Skip to content

Commit 84738e3

Browse files
committed
Add study notes for 2025-08-19
1 parent ff7bb8d commit 84738e3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

immortals1278.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ timezone: UTC+8
1515
## Notes
1616

1717
<!-- Content_START -->
18+
# 2025-08-19
19+
20+
Library.quote:根据当前资金池的储备比例,计算另一种代币的预期兑换量
21+
添加流动性:分空与非空,若非空则用quote计算B,判断是否比BMin大,得出结果(若比例无法符合就算A,然后重复剩余步骤)
22+
private:仅内部可见。internal:内部可见,子类可见
23+
calldata:存在evm内存中,内部函数无法直接接受,仅交易期间存在
24+
solidity中声明的变量默认是0和false
25+
import接口用于声明,调用此合约的外部合约必须先实现该接口
26+
1827
# 2025-08-18
1928

2029
添加流动性:分首次和非首次

0 commit comments

Comments
 (0)