-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reward earliest fraud proof only (#65)
* fix(bond): always deposit requiredCollateral This means that we have to remove the setRequiredCollateral function to avoid: 1. Publisher deposits, requiredCollateral goes up, publisher withdraws more than they deposited 2. Publisher deposits, fraud happens, requiredCollateral goes up, more than the user's deposit gets distributed in fraud claims * fix(bond): remove redundant batchIndex parameter * feat(bond): claim from Publisher instead of state root This forces a 1:1 connection between a publisher's bond and a state root being claimed * feat(bond): set the earliest state root Co-authored-by: ben-chain <[email protected]>
- Loading branch information
Showing
3 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters