@@ -45,7 +45,8 @@ contract Association is Ownable {
45
45
SET_ORACLE_ACTUAL,
46
46
SET_RATE_PERIOD,
47
47
SET_PAUSED,
48
- CLAIM_OWNERSHIP
48
+ CLAIM_OWNERSHIP,
49
+ CHANGE_ARBITRATOR
49
50
}
50
51
51
52
enum Status {
@@ -302,10 +303,12 @@ contract Association is Ownable {
302
303
(p.amount > 0 ) ? bank.pause () : bank.unpause ();
303
304
} else if (p.tp == TypeProposal.CLAIM_OWNERSHIP) {
304
305
bank.claimOwnership ();
305
- } else if (p.tp == TypeProposal.SET_BANK_ADDRESS ) {
306
+ } else if (p.tp == TypeProposal.SET_BANK_ADDRESS) {
306
307
bank.transferTokenOwner (p.recipient);
307
308
setBankAddress (p.recipient);
308
309
bank.claimOwnership ();
310
+ } else if (p.tp == TypeProposal.CHANGE_ARBITRATOR) {
311
+ transferOwnership (p.recipient);
309
312
}
310
313
}
311
314
@@ -445,10 +448,17 @@ contract Association is Ownable {
445
448
jobDescription, debatingPeriod, "0 " );
446
449
}
447
450
448
- function setBankAddress (address _bank ) internal {
451
+ function prChangeArbitrator (address newArbitrator , string jobDescription , uint debatingPeriod )
452
+ public onlyShareholders returns (uint proposalID )
453
+ {
454
+ return newProposal (TypeProposal.CHANGE_ARBITRATOR, newArbitrator, 0 , 0 ,
455
+ jobDescription, debatingPeriod, "0 " );
456
+ }
457
+
458
+ function setBankAddress (address _bank ) internal {
449
459
bank = ComplexBank (_bank);
450
460
}
451
461
452
- function () payable public {}
462
+ function () public payable {}
453
463
}
454
464
0 commit comments