Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

GalloDaSballo - M-01 executeSwap doesn't work #46

Closed
sherlock-admin opened this issue Oct 28, 2022 · 0 comments
Closed

GalloDaSballo - M-01 executeSwap doesn't work #46

sherlock-admin opened this issue Oct 28, 2022 · 0 comments
Labels

Comments

@sherlock-admin
Copy link
Contributor

GalloDaSballo

medium

M-01 executeSwap doesn't work

Summary

Due to most likely a programming mistake, executeSwap will call executeSwapDirect and then revert.

Vulnerability Detail

Impact

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.

Code Snippet

https://github.com/sherlock-audit/2022-10-mover/blob/main/cardtopup_contract/contracts/ExchangeProxy.sol#L91-L92

    function executeSwap(

Tool used

Manual Review

Recommendation

Delete the code if unused.
Or refactor to allow any caller to use it.

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

No branches or pull requests

1 participant