Skip to content

Unsafe Balance Evaluation for Governance #15

Description

@adradr

GOV-01M: Unsafe Balance Evaluation for Governance

Type Severity Location
Logical Fault Governance.sol:L107-L108

Description:

The balanceOf evaluation of the Governance contract in turn invokes the balanceOf function of the RND liquid asset which can be flash-loaned for a particular governance instance.

Example:

// RND balanceOf = RND.balanceOf()
_accountBalance += IERC20Upgradeable(REGISTRY.getAddress("RND"))
    .balanceOf(account);

return _accountBalance;

Recommendation:

We advise the balanceOf evaluation to instead rely solely on immobile assets such as SM and the unclaimed vesting controller tokens to ensure it is reliant against flash-loan manipulations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions