code-423n4 / 2022-06-badger-findings

0 stars 0 forks source link

QA Report #55

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

1 Similiar name

Impact similiar name variable name can confuse the system if it running and the system can fail to understand the usage of the variables which will lead them to interchange values for these variables.

Proof of Concept https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L322-L329

Line 322 and Line 329

Tools Remix

Recommendation steps Prevent variables from having similar names. i suggest to change name variable one.