@@ -4,6 +4,7 @@ pragma solidity ^0.8.0;
4
4
import {Test} from "forge-std/Test.sol " ;
5
5
import {TargetFunctions} from "./TargetFunctions.sol " ;
6
6
import {FoundryAsserts} from "@chimera/FoundryAsserts.sol " ;
7
+ import {IBribeInitiative} from "src/interfaces/IBribeInitiative.sol " ;
7
8
8
9
import {console} from "forge-std/console.sol " ;
9
10
@@ -35,6 +36,41 @@ contract CryticToFoundry is Test, TargetFunctions, FoundryAsserts {
35
36
property_BI04 ();
36
37
}
37
38
39
+ // forge test --match-test test_property_BI04_0 -vv
40
+ function test_property_BI04_0 () public {
41
+
42
+ governance_depositLQTY (2 );
43
+
44
+ vm.roll (block .number + 1 );
45
+ vm.warp (block .timestamp + 794178 );
46
+ check_skip_consistecy (0 );
47
+
48
+ IBribeInitiative initiative = IBribeInitiative (_getDeployedInitiative (0 ));
49
+
50
+ (uint88 totalLQTYAllocatedAtEpochPrev , ) = initiative.totalLQTYAllocatedByEpoch (governance.epoch ());
51
+ vm.roll (block .number + 1 );
52
+ vm.warp (block .timestamp + 1022610 );
53
+
54
+ governance_allocateLQTY_clamped_single_initiative (0 ,1 ,0 );
55
+
56
+ (uint88 totalLQTYAllocatedAtEpoch , ) = initiative.totalLQTYAllocatedByEpoch (governance.epoch ());
57
+ (
58
+ uint88 voteLQTY ,
59
+ ,
60
+ ,
61
+ ,
62
+
63
+ ) = governance.initiativeStates (_getDeployedInitiative (0 ));
64
+
65
+ check_unregisterable_consistecy (0 );
66
+
67
+ console.log ("totalLQTYAllocatedAtEpochPrev " , totalLQTYAllocatedAtEpochPrev);
68
+ console.log ("totalLQTYAllocatedAtEpoch " , totalLQTYAllocatedAtEpoch);
69
+ console.log ("voteLQTY " , voteLQTY);
70
+
71
+ property_BI04 ();
72
+ }
73
+
38
74
// forge test --match-test test_property_BI11_3 -vv
39
75
function test_property_BI11_3 () public {
40
76
0 commit comments