• Georgios Konstantopoulos's avatar
    Reward earliest fraud proof only (#65) · 12c436d4
    Georgios Konstantopoulos authored
    * 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: default avatarben-chain <ben@pseudonym.party>
    12c436d4
Name
Last commit
Last update
..
.github Loading commit data...
bin Loading commit data...
contracts Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
buidler-env.d.ts Loading commit data...
buidler.config.ts Loading commit data...
package.json Loading commit data...
prettier-config.json Loading commit data...
tsconfig.json Loading commit data...
tsconfig.prod.json Loading commit data...
tslint.json Loading commit data...
yarn.lock Loading commit data...