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

Function: payoutReleased()

This function calculates and releases the due interest payout to the beneficiary, updates the total paid out and the last payout time, and transfers the released funds to the beneficiary.

Branches and code coverage (including function calls)

Intended branches

Function call analysis

  • payoutReleased() -> calculateReleasedAmount(block.timestamp) -> calculateInterestAmount(SENT.balanceOf(address(this)), timeElapsed)

    • External/Internal? Internal.

    • Argument control: N/A.

    • Impact: Accurately calculates the amount of tokens given to the beneficiary over time.

  • SENT.safeTransfer(beneficiary, released)

    • External/Internal? External.

    • Argument control: N/A.

    • Impact: Transfer released SENT tokens from the contract to the beneficiary.

Zellic © 2024Back to top ↑