Skip to content

Commit

Permalink
Improve bark benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
telome committed Apr 17, 2024
1 parent 390242a commit 6bb0c9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/Benchmarks.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ contract LockstakeEngineBenchmarks is DssTest {
LockstakeInit.initLockstake(dss, instance, cfg);
vm.stopPrank();

deal(address(mkr), address(this), 100_000 * 10**18, true);
deal(address(mkr), address(this), 200_000 * 10**18, true);
deal(address(ngt), address(this), 100_000 * 24_000 * 10**18, true);

// Add some existing DAI assigned to nstJoin to avoid a particular error
Expand All @@ -151,6 +151,10 @@ contract LockstakeEngineBenchmarks is DssTest {
for (uint256 i; i < numYays; i++) yays[i] = address(uint160(i + 1));
vm.prank(voter); VoteDelegate(voteDelegate).vote(yays);

// make sure the chief holds more votes than the votes from the user about to be liquidated
mkr.approve(voteDelegate, 100_000 * 10**18);
VoteDelegate(voteDelegate).lock(100_000 * 10**18);

address urn = _urnSetUp(withDelegate, withStaking);
vm.roll(block.number + 1);

Expand Down

0 comments on commit 6bb0c9c

Please sign in to comment.