@@ -1308,7 +1308,12 @@ impl<T: Config> Pallet<T> {
1308
1308
} ) ?;
1309
1309
// Extend the lock to `balance` (rather than setting it) since we don't know what other
1310
1310
// votes are in place.
1311
- T :: Currency :: extend_lock ( DEMOCRACY_ID , who, vote. balance ( ) , WithdrawReasons :: TRANSFER ) ;
1311
+ T :: Currency :: extend_lock (
1312
+ DEMOCRACY_ID ,
1313
+ who,
1314
+ vote. balance ( ) ,
1315
+ WithdrawReasons :: except ( WithdrawReasons :: RESERVE ) ,
1316
+ ) ;
1312
1317
ReferendumInfoOf :: < T > :: insert ( ref_index, ReferendumInfo :: Ongoing ( status) ) ;
1313
1318
Ok ( ( ) )
1314
1319
}
@@ -1454,7 +1459,12 @@ impl<T: Config> Pallet<T> {
1454
1459
let votes = Self :: increase_upstream_delegation ( & target, conviction. votes ( balance) ) ;
1455
1460
// Extend the lock to `balance` (rather than setting it) since we don't know what other
1456
1461
// votes are in place.
1457
- T :: Currency :: extend_lock ( DEMOCRACY_ID , & who, balance, WithdrawReasons :: TRANSFER ) ;
1462
+ T :: Currency :: extend_lock (
1463
+ DEMOCRACY_ID ,
1464
+ & who,
1465
+ balance,
1466
+ WithdrawReasons :: except ( WithdrawReasons :: RESERVE ) ,
1467
+ ) ;
1458
1468
Ok ( votes)
1459
1469
} ) ?;
1460
1470
Self :: deposit_event ( Event :: < T > :: Delegated { who, target } ) ;
@@ -1499,7 +1509,12 @@ impl<T: Config> Pallet<T> {
1499
1509
if lock_needed. is_zero ( ) {
1500
1510
T :: Currency :: remove_lock ( DEMOCRACY_ID , who) ;
1501
1511
} else {
1502
- T :: Currency :: set_lock ( DEMOCRACY_ID , who, lock_needed, WithdrawReasons :: TRANSFER ) ;
1512
+ T :: Currency :: set_lock (
1513
+ DEMOCRACY_ID ,
1514
+ who,
1515
+ lock_needed,
1516
+ WithdrawReasons :: except ( WithdrawReasons :: RESERVE ) ,
1517
+ ) ;
1503
1518
}
1504
1519
}
1505
1520
0 commit comments