Skip to content

Commit

Permalink
Improve bark benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
telome committed Mar 25, 2024
1 parent b5af9d1 commit 046b1a3
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 046b1a3

Please sign in to comment.