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

update DODOFeeRouteProxy #10

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

update DODOFeeRouteProxy #10

wants to merge 3 commits into from

Conversation

Skyewwww
Copy link
Collaborator

@Skyewwww Skyewwww commented Sep 5, 2024

No description provided.

@@ -492,6 +511,13 @@ contract DODOFeeRouteProxy is Ownable {

receiveAmount = receiveAmount - routeFee - brokerFee;
require(receiveAmount >= minReturnAmount, "DODORouteProxy: Return amount is not enough");

if (receiveAmount > expReturnAmount) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里,因为都有一笔routeFeeReceiver的转出,可以和上一笔合并吗,即上一笔先不转出,判断如果有正滑点,转出正滑点+手续费。事件换个名字,叫positiveSlippage之类比较好,还是只记录正滑点的数额

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