@@ -17,10 +17,10 @@ describe('Pausing', () => {
17
17
let staking : Staking
18
18
let controller : Controller
19
19
20
- const setRecoveryPause = async ( account : Account , setValue : boolean ) => {
21
- const tx = controller . connect ( account . signer ) . setRecoveryPaused ( setValue )
22
- await expect ( tx ) . emit ( controller , 'RecoveryPauseChanged ' ) . withArgs ( setValue )
23
- expect ( await controller . recoveryPaused ( ) ) . eq ( setValue )
20
+ const setPartialPause = async ( account : Account , setValue : boolean ) => {
21
+ const tx = controller . connect ( account . signer ) . setPartialPaused ( setValue )
22
+ await expect ( tx ) . emit ( controller , 'PartialPauseChanged ' ) . withArgs ( setValue )
23
+ expect ( await controller . partialPaused ( ) ) . eq ( setValue )
24
24
}
25
25
const setPause = async ( account : Account , setValue : boolean ) => {
26
26
const tx = controller . connect ( account . signer ) . setPaused ( setValue )
@@ -51,29 +51,29 @@ describe('Pausing', () => {
51
51
const tx = controller . connect ( me . signer ) . setPauseGuardian ( guardian . address )
52
52
await expect ( tx ) . revertedWith ( 'Only Governor can call' )
53
53
} )
54
- it ( 'should set recoveryPause and unset from governor and guardian' , async function ( ) {
55
- expect ( await controller . recoveryPaused ( ) ) . eq ( false )
54
+ it ( 'should set partialPaused and unset from governor and guardian' , async function ( ) {
55
+ expect ( await controller . partialPaused ( ) ) . eq ( false )
56
56
// Governor set
57
- await setRecoveryPause ( governor , true )
57
+ await setPartialPause ( governor , true )
58
58
// Governor unset
59
- await setRecoveryPause ( governor , false )
59
+ await setPartialPause ( governor , false )
60
60
61
61
await controller . connect ( governor . signer ) . setPauseGuardian ( guardian . address )
62
62
// Guardian set
63
- await setRecoveryPause ( guardian , true )
63
+ await setPartialPause ( guardian , true )
64
64
// Guardian unset
65
- await setRecoveryPause ( guardian , false )
65
+ await setPartialPause ( guardian , false )
66
66
} )
67
- it ( 'should fail recovery pause if not guardian or governor' , async function ( ) {
67
+ it ( 'should fail partial pause if not guardian or governor' , async function ( ) {
68
68
const tx = controller . connect ( me . signer ) . setPauseGuardian ( guardian . address )
69
69
await expect ( tx ) . revertedWith ( 'Only Governor can call' )
70
70
} )
71
- it ( 'should check that a function fails when recoveryPause is set' , async function ( ) {
72
- await setRecoveryPause ( governor , true )
71
+ it ( 'should check that a function fails when partialPause is set' , async function ( ) {
72
+ await setPartialPause ( governor , true )
73
73
74
74
const tokensToStake = toGRT ( '100' )
75
75
const tx = staking . connect ( me . signer ) . stake ( tokensToStake )
76
- await expect ( tx ) . revertedWith ( 'Recovery -paused' )
76
+ await expect ( tx ) . revertedWith ( 'Partial -paused' )
77
77
} )
78
78
it ( 'should set pause and unset from governor and guardian' , async function ( ) {
79
79
expect ( await controller . paused ( ) ) . eq ( false )
0 commit comments