From 046b1a3c684b178dbd4a8dd8b3fb6e036a485115 Mon Sep 17 00:00:00 2001 From: telome <> Date: Mon, 25 Mar 2024 20:14:07 +0000 Subject: [PATCH] Improve bark benchmark --- test/integration/Benchmarks.t.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/Benchmarks.t.sol b/test/integration/Benchmarks.t.sol index 6fc6ccec..4e6c5e77 100644 --- a/test/integration/Benchmarks.t.sol +++ b/test/integration/Benchmarks.t.sol @@ -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 @@ -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);