Acrobatic Burlap Lizard
Medium
Function EthosReview.sol:withdrawFunds() does not support a recipient for withdrawal different than msg.sender
EthosReview.sol:withdrawFunds() lets the contract owner withdraw funds but the only supported recipient is msg.sender
In case the contract owner is delegated to a contract, eg. Gnosis Multisig, the funds can be only transferred from EthosReview
to the multisig contract and if it does not allow withdrawal and/or is not upgradeable, could lead to fund freezing
No response
No response
No response
No response
No response
No response
Implement function like this:
function withdrawFunds(address paymentToken address to) external onlyOwner {
...
IERC20(paymentToken).transfer(to, IERC20(paymentToken).balanceOf(address(this)));
}