internal function _addLiquidity in the router is unnecessary #99
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
VaderRouter
Handle
jonah1005
Vulnerability details
Impact
The internal function
_addLiquidity
seems to be unnecessary.The internal function only create a Pool and returns
(amountA, amountB) = (amountADesired, amountBDesired);
It's misleading and unnecessary.
Proof of Concept
VaderRouter.sol#L123-L150
Tools Used
None
Recommended Mitigation Steps
Recommend to make it simple and transparent.
The text was updated successfully, but these errors were encountered: