livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

[delta-audit] bonding: Add stake checkpointing to withdrawFees #623

Closed victorges closed 12 months ago

victorges commented 1 year ago

What does this pull request do? Explain your changes. (required) This adds a missing checkpoint in BondingManager found during the code4rena audit.

The withdrawFees function was using autoClaimEarnings but not autoCheckpoint modifiers, so fixed that and added a test.

Specific updates (required)

How did you test each of these updates (required) yarn test to be deployed to devnet

Does this pull request close any open issues? Fixes:

Checklist: