livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

Rollback modifier changes to Minter #347

Closed yondonfu closed 4 years ago

yondonfu commented 4 years ago

The Minter contract on the master branch uses the onlyBondingManagerOrJobsManager() and the onlyMinterOrJobsManager() modifiers, but the Minter contract on the streamflow branch uses the onlyBondingManagerOrTicketBroker() and the onlyMinterOrTicketBroker() modifiers. Since we will not be upgrading the Minter, we should rollback these changes so that the Minter uses the onlyBondingManagerOrJobsManager() and the onlyMinterOrJobsManager() modifiers (the end result will be that the Minter implementation will be logically the same and the only changes contained in the repo would be syntactical + for compiler versioning). In practice, the TicketBroker can be registered under the contract ID keccak256("JobsManager") - the TicketBroker will then be able to use the Minter to deposit/withdraw escrowed ETH without any modifications to the currently deployed Minter.

yondonfu commented 4 years ago

Closed by #352