Closed sherlock-admin closed 2 years ago
GalloDaSballo
medium
executeSwap
Due to most likely a programming mistake, executeSwap will call executeSwapDirect and then revert.
executeSwapDirect
Because executeSwap calls executeSwapDirect it will always revert.
HardenedTopUpProxy is not programmed to call it either, leading me to believe this is a programming mistake.
https://github.com/sherlock-audit/2022-10-mover/blob/main/cardtopup_contract/contracts/ExchangeProxy.sol#L91-L92
function executeSwap(
Manual Review
Delete the code if unused. Or refactor to allow any caller to use it.
GalloDaSballo
medium
M-01
executeSwap
doesn't workSummary
Due to most likely a programming mistake,
executeSwap
will callexecuteSwapDirect
and then revert.Vulnerability Detail
Impact
Because
executeSwap
callsexecuteSwapDirect
it will always revert.HardenedTopUpProxy is not programmed to call it either, leading me to believe this is a programming mistake.
Code Snippet
https://github.com/sherlock-audit/2022-10-mover/blob/main/cardtopup_contract/contracts/ExchangeProxy.sol#L91-L92
Tool used
Manual Review
Recommendation
Delete the code if unused. Or refactor to allow any caller to use it.