Description: The protocol implemented the Vault::initVault
function to allow the approvement of managment contracts to handle tokens.
Impact: Looking at the highlighted line of code, we can see that the approvement of the managerContract to handle the Lovetokens happens before updating the Vault::VaultInitialize
variable of the protocol against the CEI pattern. Because the function intends to approve managerContracts to handle Lovetokens, and these tokens fall under the (ERC-20) standard that can be exploited for reentrancy. Although an exploit cannot be verified, whereby they would be explicit loss due to this, it is highly recommended to follow CEI pattern to prevent a possible reentrancy attack.
Recommended Mitigation: Handle the approvement of the managerContract to handle Lovetokens after updating the Vault::VaultInitialize
variable.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.