Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed May 20, 2024
1 parent 0cdda26 commit 6165dc9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ abstract contract AllocationManager is EIP712, GraphDirectory, AllocationManager
bytes32 _subgraphDeploymentId,
uint256 _tokens,
bytes memory _allocationProof,
uint32 __delegationRatio
uint32 _delegationRatio
) internal returns (Allocation.State memory) {
if (_allocationId == address(0)) revert AllocationManagerInvalidAllocationId();

Expand All @@ -109,7 +109,7 @@ abstract contract AllocationManager is EIP712, GraphDirectory, AllocationManager
);

// Check that the indexer has enough tokens available
allocationProvisionTracker.lock(GRAPH_STAKING, _indexer, _tokens, delegationRatio);
allocationProvisionTracker.lock(GRAPH_STAKING, _indexer, _tokens, _delegationRatio);

// Update total allocated tokens for the subgraph deployment
subgraphAllocatedTokens[allocation.subgraphDeploymentId] =
Expand Down Expand Up @@ -182,7 +182,7 @@ abstract contract AllocationManager is EIP712, GraphDirectory, AllocationManager
function _resizeAllocation(
address _allocationId,
uint256 _tokens,
uint3 _ _delegationRatio
uint32 _delegationRatio
) internal returns (Allocation.State memory) {
Allocation.State memory allocation = allocations.get(_allocationId);

Expand All @@ -194,7 +194,7 @@ abstract contract AllocationManager is EIP712, GraphDirectory, AllocationManager
// Update provision tracker
uint256 oldTokens = allocation.tokens;
if (_tokens > oldTokens) {
allocationProvisionTracker.lock(GRAPH_STAKING, allocation.indexer, _tokens - oldTokens, delegationRatio);
allocationProvisionTracker.lock(GRAPH_STAKING, allocation.indexer, _tokens - oldTokens, _delegationRatio);
} else {
allocationProvisionTracker.release(allocation.indexer, oldTokens - _tokens);
}
Expand Down

0 comments on commit 6165dc9

Please sign in to comment.