The _calculate_vested_amount
function is used to calculate the amount of tokens that have vested (been granted) at a given time during a vesting period. The function takes one parameter, total_amount
, which represents the total number of tokens to be vested.
In lines
elapsed
value is depending from current_time: uint256 = block.timestamp
, block.timestamp
is wrong value as a time source. Modification of block.timestamp
can have impact on improper amount of vested amount.
Impact on improper amount of vested amount.
manual review
Use different param for time coumputation insted of block.timestamp
.
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.