-
Notifications
You must be signed in to change notification settings - Fork 0
/
stichting.sol
35 lines (28 loc) · 1.15 KB
/
stichting.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pragma solidity >=0.4.22 <0.9.0;
contract Stichting {
struct Bestuurder {
address bestuurderAddress;
bool isBenoemd;
uint256 benoemdTot;
}
mapping(address => Bestuurder) public bestuurders;
function benoem(address _bestuurder, uint256 _termijn) public {
Bestuurder memory newBestuurder;
newBestuurder.bestuurderAddress = _bestuurder;
newBestuurder.isBenoemd = true;
newBestuurder.benoemdTot = block.timestamp + _termijn;
bestuurders[_bestuurder] = newBestuurder;
}
function eindeLidmaatschap(address _bestuurder) public {
Bestuurder memory bestuurder = bestuurders[_bestuurder];
if (block.timestamp > bestuurder.benoemdTot) {
bestuurder.isBenoemd = false;
}
}
function statutenWijziging() public pure returns (string memory) {
return "Statuten kunnen worden gewijzigd volgens de gestelde regels in het statuut.";
}
function ontbindingEnVereffening() public pure returns (string memory) {
return "De stichting kan worden ontbonden en de bezittingen worden vereffend volgens de gestelde regels in het statuut.";
}
}