livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

[delta-audit] bonding: Disallow making bonds for the zero address #628

Closed victorges closed 12 months ago

victorges commented 12 months ago

What does this pull request do? Explain your changes. (required) This is to disallow the *For functions to be called with the zero address as the owner, which is effectively a buggy way of burning tokens. This also fixes the BondingVotes behavior to not allow the zero address to ever have any voting power, as specified in the corresponding EIP.

Specific updates (required)

How did you test each of these updates (required) yarn test

Does this pull request close any open issues? Fixes https://github.com/code-423n4/2023-08-livepeer-findings/issues/190

Checklist: