Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 添加 PoolManager #114

Merged
merged 7 commits into from
Oct 15, 2024
Merged

Conversation

LCJove
Copy link
Collaborator

@LCJove LCJove commented Aug 23, 2024

简单写了一下实现
需要确认的是 tick 和 feeProtocol 这两个参数从哪里拿

Copy link

vercel bot commented Aug 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wtf-dapp ❌ Failed (Inspect) Sep 29, 2024 10:02am

uint32 length = 0;
// 先算一下大小
for (uint32 i = 0; i < pairs.length; i++) {
address[] memory addresses = pools[pairs[i].token0][pairs[i].token1];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多定义一个 addresses 感觉有点多余,length += uint32(pools[pairs[i].token0][pairs[i].token1].length 感觉就好了。

@yutingzhao1991 yutingzhao1991 merged commit 88dc7f8 into WTFAcademy:main Oct 15, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants