the user variables are stored into memory instead of storage and not used anywhere
in the depositTokens function we first create a funcntion variable req
of memory.
then later in the function we store multiple parameters in this variable but since it is a memory type, the variables will not be saved to the contract and instead they will be erased after the tx is over. We can observe the following below...
as we can see multiple variables are set in the req memory variable and used elsewhere. This leads me to believe the author of the contract intended this variables to be set to storage.
incorrect setting of storage variables causes these values to be lost of the tx is done. These important variables are not stored anywhere and thus lost.
manual review
if the intention is to store these vairable to storage ensure the variables are stored in a storage variable correctly.
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.