12
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
See the License for the specific language governing permissions and
14
14
limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache License, Version 2.0
15
17
*/
16
18
17
19
pragma solidity 0.6.10 ;
@@ -42,7 +44,7 @@ contract SupplyCapAllowedCallerIssuanceHook is Ownable, IManagerIssuanceHook {
42
44
event SupplyCapUpdated (uint256 _newCap );
43
45
event CallerStatusUpdated (address indexed _caller , bool _status );
44
46
event AnyoneCallableUpdated (bool indexed _status );
45
-
47
+
46
48
/* ============ State Variables ============ */
47
49
48
50
// Cap on totalSupply of Sets
@@ -89,7 +91,7 @@ contract SupplyCapAllowedCallerIssuanceHook is Ownable, IManagerIssuanceHook {
89
91
override
90
92
{
91
93
_validateAllowedContractCaller (_sender);
92
-
94
+
93
95
uint256 totalSupply = _setToken.totalSupply ();
94
96
require (totalSupply.add (_issueQuantity) <= supplyCap, "Supply cap exceeded " );
95
97
}
@@ -133,7 +135,7 @@ contract SupplyCapAllowedCallerIssuanceHook is Ownable, IManagerIssuanceHook {
133
135
}
134
136
135
137
/**
136
- * ONLY OWNER: Toggle whether anyone can call function, bypassing the callAllowlist
138
+ * ONLY OWNER: Toggle whether anyone can call function, bypassing the callAllowlist
137
139
*
138
140
* @param _status Boolean indicating whether to allow anyone call
139
141
*/
@@ -145,7 +147,7 @@ contract SupplyCapAllowedCallerIssuanceHook is Ownable, IManagerIssuanceHook {
145
147
/* ============ Internal Functions ============ */
146
148
147
149
/**
148
- * Validate if passed address is allowed to call function. If anyoneCallable is set to true, anyone can call otherwise needs to be an EOA or
150
+ * Validate if passed address is allowed to call function. If anyoneCallable is set to true, anyone can call otherwise needs to be an EOA or
149
151
* approved contract address.
150
152
*/
151
153
function _validateAllowedContractCaller (address _caller ) internal view {
0 commit comments