@@ -200,7 +200,6 @@ abstract contract AllocationManager is EIP712Upgradeable, GraphDirectory, Alloca
200
200
* @param _tokens The amount of tokens to allocate
201
201
* @param _allocationProof Signed proof of allocation id address ownership
202
202
* @param _delegationRatio The delegation ratio to consider when locking tokens
203
- * @return The allocation details
204
203
*/
205
204
function _allocate (
206
205
address _indexer ,
@@ -209,7 +208,7 @@ abstract contract AllocationManager is EIP712Upgradeable, GraphDirectory, Alloca
209
208
uint256 _tokens ,
210
209
bytes memory _allocationProof ,
211
210
uint32 _delegationRatio
212
- ) internal returns (Allocation.State memory ) {
211
+ ) internal {
213
212
require (_allocationId != address (0 ), AllocationManagerInvalidZeroAllocationId ());
214
213
215
214
_verifyAllocationProof (_indexer, _allocationId, _allocationProof);
@@ -238,7 +237,6 @@ abstract contract AllocationManager is EIP712Upgradeable, GraphDirectory, Alloca
238
237
allocation.tokens;
239
238
240
239
emit AllocationCreated (_indexer, _allocationId, _subgraphDeploymentId, allocation.tokens, currentEpoch);
241
- return allocation;
242
240
}
243
241
244
242
/**
@@ -361,13 +359,8 @@ abstract contract AllocationManager is EIP712Upgradeable, GraphDirectory, Alloca
361
359
* @param _allocationId The id of the allocation to be resized
362
360
* @param _tokens The new amount of tokens to allocate
363
361
* @param _delegationRatio The delegation ratio to consider when locking tokens
364
- * @return The allocation details
365
362
*/
366
- function _resizeAllocation (
367
- address _allocationId ,
368
- uint256 _tokens ,
369
- uint32 _delegationRatio
370
- ) internal returns (Allocation.State memory ) {
363
+ function _resizeAllocation (address _allocationId , uint256 _tokens , uint32 _delegationRatio ) internal {
371
364
Allocation.State memory allocation = _allocations.get (_allocationId);
372
365
require (allocation.isOpen (), AllocationManagerAllocationClosed (_allocationId));
373
366
require (_tokens != allocation.tokens, AllocationManagerAllocationSameSize (_allocationId, _tokens));
@@ -404,7 +397,6 @@ abstract contract AllocationManager is EIP712Upgradeable, GraphDirectory, Alloca
404
397
}
405
398
406
399
emit AllocationResized (allocation.indexer, _allocationId, allocation.subgraphDeploymentId, _tokens, oldTokens);
407
- return _allocations[_allocationId];
408
400
}
409
401
410
402
/**
@@ -466,24 +458,6 @@ abstract contract AllocationManager is EIP712Upgradeable, GraphDirectory, Alloca
466
458
emit MaxPOIStalenessSet (_maxPOIStaleness);
467
459
}
468
460
469
- /**
470
- * @notice Gets the details of an allocation
471
- * @param _allocationId The id of the allocation
472
- * @return The allocation details
473
- */
474
- function _getAllocation (address _allocationId ) internal view returns (Allocation.State memory ) {
475
- return _allocations.get (_allocationId);
476
- }
477
-
478
- /**
479
- * @notice Gets the details of a legacy allocation
480
- * @param _allocationId The id of the legacy allocation
481
- * @return The legacy allocation details
482
- */
483
- function _getLegacyAllocation (address _allocationId ) internal view returns (LegacyAllocation.State memory ) {
484
- return _legacyAllocations.get (_allocationId);
485
- }
486
-
487
461
/**
488
462
* @notice Encodes the allocation proof for EIP712 signing
489
463
* @param _indexer The address of the indexer
0 commit comments