Skip to content

Commit f7633a4

Browse files
committed
added change arbitrator proposal
1 parent 1ce84e6 commit f7633a4

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

contracts/Association.sol

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ contract Association is Ownable {
4545
SET_ORACLE_ACTUAL,
4646
SET_RATE_PERIOD,
4747
SET_PAUSED,
48-
CLAIM_OWNERSHIP
48+
CLAIM_OWNERSHIP,
49+
CHANGE_ARBITRATOR
4950
}
5051

5152
enum Status {
@@ -302,10 +303,12 @@ contract Association is Ownable {
302303
(p.amount > 0) ? bank.pause() : bank.unpause();
303304
} else if (p.tp == TypeProposal.CLAIM_OWNERSHIP) {
304305
bank.claimOwnership();
305-
} else if (p.tp == TypeProposal.SET_BANK_ADDRESS ) {
306+
} else if (p.tp == TypeProposal.SET_BANK_ADDRESS) {
306307
bank.transferTokenOwner(p.recipient);
307308
setBankAddress(p.recipient);
308309
bank.claimOwnership();
310+
} else if (p.tp == TypeProposal.CHANGE_ARBITRATOR) {
311+
transferOwnership(p.recipient);
309312
}
310313
}
311314

@@ -445,10 +448,17 @@ contract Association is Ownable {
445448
jobDescription, debatingPeriod, "0");
446449
}
447450

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 {
449459
bank = ComplexBank(_bank);
450460
}
451461

452-
function() payable public {}
462+
function() public payable {}
453463
}
454464

0 commit comments

Comments
 (0)