Skip to content

Commit

Permalink
fix: use min delegation for SubgraphService tests (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol authored Dec 17, 2024
1 parent 468ed2c commit 1038cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ abstract contract SubgraphServiceSharedTest is HorizonStakingSharedTest {
}

modifier useDelegation(uint256 tokens) {
vm.assume(tokens > 1);
vm.assume(tokens > MIN_DELEGATION);
vm.assume(tokens < 10_000_000_000 ether);
(, address msgSender,) = vm.readCallers();
resetPrank(users.delegator);
Expand Down
1 change: 1 addition & 0 deletions packages/subgraph-service/test/utils/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ abstract contract Constants {
uint256 public constant curationCut = 10000;
// Staking
uint64 internal constant MAX_WAIT_PERIOD = 28 days;
uint256 internal constant MIN_DELEGATION = 1 ether;
// GraphEscrow parameters
uint256 internal constant withdrawEscrowThawingPeriod = 60;
// GraphPayments parameters
Expand Down

0 comments on commit 1038cf4

Please sign in to comment.