Expenditures extension, utilities, updates - #1045
Conversation
75b91ff to
27f50b4
Compare
558f8bc to
7895b5e
Compare
5d2198e to
f520243
Compare
d15bad5 to
a1354bb
Compare
51daa24 to
377d00e
Compare
377d00e to
758a208
Compare
|
Regarding the slashing rep, I'll add an option to do so to the I also think a Regarding the claim delays, that would require a v3 of the voting contract (since we'll be moving to a new way of accounting for claim delays), which I'd like to put into a separate PR. It may even be worth going back and finishing off #915 which includes this change. |
a26e3a8 to
ff9b601
Compare
|
@area @kronosapiens You are correct. The expected flow is that slashing should occur when the Expenditure is cancelled, at any time after it has been put into a locked state. The penalty makes sense to be configurable by a Colony when installing the extension. |
ff9b601 to
0f16ecf
Compare
Closes #1042
StakedExpenditurefor creating expenditures via stakes, and reclaiming or slashing stakesAlso:
moveFundsBetweenPotswhich accept arrays of tokens & amountsrefundDomainprivate function which returns excess funding back to the domain on claiming of paymentsetExpenditureValuesfunction which can change all expenditure values in one transaction, for ownerssetExpenditurePayoutfunction to update slot payouts with correct bookkeeping, for arbitratorsThe introduction of
setExpenditurePayoutaddresses a bug in the existing implementation, where usingsetExpenditureStateto update payouts would allow the funding pot bookkeeping to fall out of sync.setExpenditurePayoutas an arbitration function provides an alternative for arbitrators (with an eye towards motions) to update payouts with correct bookkeeping. This introduction has necessitated an update toVotingReputationto correctly handle both types of expenditure state changes.