Renaming variables for clarity #125
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
nathaniel
Vulnerability details
Impact
amount
in theInvestors
struct is vague. It would be assumed to be the invested amount, however this amount decreases when the beneficiary claims. A more appropriate name could beunclaimed_amount
.claimable_to_send
is not appropriate name in theclaimExact()
function, as it is not the claimable total, insteadexact_claim_to_send
would make more sense.Proof of Concept
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/InvestorDistribution.sol#L24
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/InvestorDistribution.sol#L155
The text was updated successfully, but these errors were encountered: