Function: revoke()
The function allows the revoker to revoke the vesting and stop the beneficiary from releasing any tokens if the vesting period has not been completed.
Branches and code coverage (including function calls)
Intended branches
Negative behavior
Function call analysis
_releasableAmount(token)
External/Internal? Internal.
Argument control:
token
.Impact: Calculates the amount of tokens that can be released to the beneficiary.
token.safeTransfer(revoker, refund)
External/Internal? External.
Argument control:
refund
.Impact: Transfers the refundable amount of tokens to the
revoker
.