The receive function allows users to send funds to the contract. However, there is no functionality provided to withdraw mistakenly sent funds. Therefore, having this function could lead to funds being permanently locked in the contract. As a precautionary measure, it's advisable to remove the receive function altogether.
Context
VaultFactoryZapper::receive()
Description
The
receive
function allows users to send funds to the contract. However, there is no functionality provided to withdraw mistakenly sent funds. Therefore, having this function could lead to funds being permanently locked in the contract. As a precautionary measure, it's advisable to remove thereceive
function altogether.