This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
GiuseppeDeLaZara - Pausable is not implemented #66
Labels
Duplicate
A valid issue that is a duplicate of an issue with `Has Duplicates` label
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
GiuseppeDeLaZara
medium
Pausable is not implemented
Summary
Several contracts in the Tapioca protocol are extending the
Pausable
contract but are not implementing the pausing/unpausing functionality. This means that critical functions cannot be paused in case of emergency.Vulnerability Detail
mTOFT.sol
,TOFT.sol
,Usdo.sol
,AssetToSGLPLeverageExecutor.sol
contracts are extending thePausable
contract but are not implementing the pausing/unpausing functionality.There are numerous functions in the aforementioned contracts that use the
whenNotPaused
modifier, e.g.But pausing can never be activated as the pausing functionality is not implemented.
Impact
Critical functions cannot be paused in case of emergency as the pausing functionality is not implemented.
Code Snippet
Tool used
Manual Review
Recommendation
Recommendation
Include the following function in the contracts to implement the pausing functionality:
Duplicate of #64
The text was updated successfully, but these errors were encountered: