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

Router.sol: Redundant _token initialization in addLiquiditySingleForMember() #57

Open
code423n4 opened this issue Jul 18, 2021 · 0 comments
Assignees

Comments

@code423n4
Copy link
Contributor

Handle

hickuphh3

Vulnerability details

Impact

The lines below of the addLiquiditySingleForMember() function

address _token = token;
if(token == address(0)){_token = WBNB;} // Handle BNB -> WBNB

are redundant since _token is not used subsequently. Note that _handleTransferIn() will perform the handling of native BNB transfers.

Recommended Mitigation Steps

The mentioned lines above can be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants