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

卖出手续费部分直接进行分U #2

Open
LyyDandelion opened this issue Mar 1, 2023 · 0 comments
Open

卖出手续费部分直接进行分U #2

LyyDandelion opened this issue Mar 1, 2023 · 0 comments

Comments

@LyyDandelion
Copy link

把分U的代码,直接放在转出之后,直接出现手续费滑点错误。如果想实现卖出费率用来直接分U,是不是不能这样写

//兑换代币,换成 USDT,进行分配
uint256 contractTokenBalance = balanceOf(address(this));
if (
contractTokenBalance >= numTokensSellToFund &&
!inSwap &&
_swapPairList[to]
) {
swapTokenForFund(numTokensSellToFund);

            }
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

No branches or pull requests

1 participant