@@ -76,7 +76,7 @@ library Allocation {
76
76
uint256 tokens ,
77
77
uint256 accRewardsPerAllocatedToken ,
78
78
uint256 createdAtEpoch
79
- ) internal returns (State memory ) {
79
+ ) external returns (State memory ) {
80
80
require (! self[allocationId].exists (), AllocationAlreadyExists (allocationId));
81
81
82
82
State memory allocation = State ({
@@ -104,7 +104,7 @@ library Allocation {
104
104
* @param self The allocation list mapping
105
105
* @param allocationId The allocation id
106
106
*/
107
- function presentPOI (mapping (address => State) storage self , address allocationId ) internal {
107
+ function presentPOI (mapping (address => State) storage self , address allocationId ) external {
108
108
State storage allocation = _get (self, allocationId);
109
109
require (allocation.isOpen (), AllocationClosed (allocationId, allocation.closedAt));
110
110
allocation.lastPOIPresentedAt = block .timestamp ;
@@ -135,7 +135,7 @@ library Allocation {
135
135
* @param self The allocation list mapping
136
136
* @param allocationId The allocation id
137
137
*/
138
- function clearPendingRewards (mapping (address => State) storage self , address allocationId ) internal {
138
+ function clearPendingRewards (mapping (address => State) storage self , address allocationId ) external {
139
139
State storage allocation = _get (self, allocationId);
140
140
require (allocation.isOpen (), AllocationClosed (allocationId, allocation.closedAt));
141
141
allocation.accRewardsPending = 0 ;
@@ -148,7 +148,7 @@ library Allocation {
148
148
* @param self The allocation list mapping
149
149
* @param allocationId The allocation id
150
150
*/
151
- function close (mapping (address => State) storage self , address allocationId ) internal {
151
+ function close (mapping (address => State) storage self , address allocationId ) external {
152
152
State storage allocation = _get (self, allocationId);
153
153
require (allocation.isOpen (), AllocationClosed (allocationId, allocation.closedAt));
154
154
allocation.closedAt = block .timestamp ;
0 commit comments