@@ -62,7 +62,7 @@ contract SubscriptionPolicy is Initializable, PolicyBase, UUPSUpgradeable, Acces
6262 "2) Instant access to all content during the subscription period. " ;
6363 }
6464
65- // TODOpotential improvement to scaling custom actions in protocol using hooks
65+ // TODO potential improvement to scaling custom actions in protocol using hooks
6666 // eg: access handling for gating content. etc.. dynamic prices: discounts, etc IPricesHook
6767 // function isAccessAllowed(bytes calldata criteria) external view return (bool) {
6868 // // get registered access hooks for this contract
@@ -71,7 +71,7 @@ contract SubscriptionPolicy is Initializable, PolicyBase, UUPSUpgradeable, Acces
7171 // return hook.exec(criteria)
7272 //}
7373
74- function setup (address holder , bytes calldata init ) external onlyPolicyAuthorizer activate {
74+ function setup (address holder , bytes calldata init ) external onlyPolicyAuthorizer {
7575 (uint256 price , address currency ) = abi.decode (init, (uint256 , address ));
7676 if (price == 0 ) revert InvalidSetup ("Invalid subscription price. " );
7777 // expected content subscription params..
@@ -83,7 +83,7 @@ contract SubscriptionPolicy is Initializable, PolicyBase, UUPSUpgradeable, Acces
8383 function enforce (
8484 address holder ,
8585 T.Agreement calldata agreement
86- ) external onlyPolicyManager active returns (uint256 [] memory ) {
86+ ) external onlyPolicyManager returns (uint256 [] memory ) {
8787 Package memory pkg = _packages[holder];
8888 uint256 duration = _calcExpectedDuration (pkg, agreement);
8989 uint256 subExpire = _calculateSubscriptionExpiration (duration);
0 commit comments