@@ -63,7 +63,7 @@ contract DisintermediatedGrants {
63
63
maxDonationGracePeriod = _maxDonationGracePeriod;
64
64
}
65
65
66
- function whitelistDonor (address _donor ) public whenNotRetired onlyMultisig {
66
+ function whitelistDonor (address _donor ) external whenNotRetired onlyMultisig {
67
67
donorWhitelisted[_donor] = true ;
68
68
emit WhitelistDonor (_donor);
69
69
}
@@ -72,7 +72,7 @@ contract DisintermediatedGrants {
72
72
address _token ,
73
73
uint256 _commitmentAmount ,
74
74
uint32 _gracePeriod
75
- ) public whenNotRetired onlyWhitelistedDonor {
75
+ ) external whenNotRetired onlyWhitelistedDonor {
76
76
require (_commitmentAmount > 0 , "commitment amount cannot be zero " );
77
77
require (_gracePeriod <= maxDonationGracePeriod, "withdrawal grace period is too long " );
78
78
require (
@@ -112,13 +112,13 @@ contract DisintermediatedGrants {
112
112
emit ProposeGrant (grant);
113
113
}
114
114
115
- function proposeGrants (GrantProposal[] memory _grantProposals ) public {
115
+ function proposeGrants (GrantProposal[] memory _grantProposals ) external {
116
116
for (uint16 i = 0 ; i < _grantProposals.length ; i++ ) {
117
117
proposeGrant (_grantProposals[i]);
118
118
}
119
119
}
120
120
121
- function disburseGrant (uint256 _grantId ) public whenNotRetired {
121
+ function disburseGrant (uint256 _grantId ) external whenNotRetired {
122
122
require (_grantId < grantCount, "grant does not exist " );
123
123
Grant storage grant = grants[_grantId];
124
124
require (! grant.disbursed, "grant has already been disbursed " );
@@ -137,7 +137,7 @@ contract DisintermediatedGrants {
137
137
ERC20 (donation.token).transferFrom (donation.donor, grant.recipient, grant.amount);
138
138
}
139
139
140
- function retire () public whenNotRetired onlyMultisig {
140
+ function retire () external whenNotRetired onlyMultisig {
141
141
retired = true ;
142
142
emit Retire ();
143
143
}
0 commit comments