DeFiFoundry
50,000 USDC
View results
Submission Details
Severity: low
Valid

`PerpVault::_cancelFlow` function may revert due to USDC blacklist

Summary

This is due to the following transfer that is made in the _cancelFlow function:

function _cancelFlow() internal {
if (flow == FLOW.DEPOSIT) {
uint256 depositId = counter;
@> collateralToken.safeTransfer(
depositInfo[depositId].owner,
depositInfo[depositId].amount
);

Vulnerability Details

This will DoS the _cancelFlow functionality leading to keeper not being able to cancel the flow

Impact

keeper won't be able to cancel the flow

Tools Used

Manual Review

Recommendations

Try transferring the funds to some other contract that a user can claim them from

Updates

Lead Judging Commences

n0kto Lead Judge 3 months ago
Submission Judgement Published
Validated
Assigned finding tags:

finding_cancelFlow_blacklisted

Likelihood: Extremely Low, when user is blacklisted between the deposit/withdraw and cancelFlow is called by the Keeper. Impact: Medium/High, cancelFlow DoS.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.