DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: medium
Invalid

`_freeFunds` Function

Summary

```solidity

function _freeFunds(uint256 _amount) internal override {

uint256 totalAvailabe = transmuter.getUnexchangedBalance(address(this));

if (_amount > totalAvailabe) {

transmuter.withdraw(totalAvailabe, address(this));

} else {

transmuter.withdraw(_amount, address(this));

}

}

```

The current logic only handles the case of extracting unexchangedBalance from the transmuter. If the strategy involves multiple funding sources or other forms of locked funds, this function may not fully release the required _amount. Furthermore, if _amount exceeds the unexchangedBalance of the transmuter, the function will only withdraw a portion of the funds, potentially failing to meet the full release requirement.

Vulnerability Details

Impact

Tools Used

Recommendations

Updates

Appeal created

inallhonesty Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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