Assessment reports>Session Token>Threat Model>Function: retrieveRevokedFunds()

Function: retrieveRevokedFunds()

The function allows the revoker to retrieve tokens that have been unstaked after the vesting has been revoked, ensuring that funds are not locked in the contract.

Branches and code coverage (including function calls)

Intended branches

Negative behavior

Function call analysis

  • token.balanceOf(address(this))

    • External/Internal? External.

    • Argument control: N/A.

    • Impact: Retrieves the balance of tokens held by the contract.

  • token.safeTransfer(revoker, balance)

    • External/Internal? External.

    • Argument control: balance.

    • Impact: Transfers the balance of tokens to the revoker.

Zellic © 2024Back to top ↑