mirror of
https://github.com/tig-pool-nk/tig-monorepo.git
synced 2026-03-09 18:07:21 +08:00
Fix deposit check for voting.
This commit is contained in:
parent
24d8d7587a
commit
39e93b96bc
@ -227,7 +227,7 @@ pub async fn set_vote<T: Context>(
|
||||
let n = breakthrough_state.round_votes_tallied - latest_block_details.round
|
||||
+ config.breakthroughs.min_lock_period_to_vote;
|
||||
let zero = PreciseNumber::from(0);
|
||||
if player_data.is_some_and(|d| {
|
||||
if !player_data.is_some_and(|d| {
|
||||
d.deposit_by_locked_period
|
||||
.iter()
|
||||
.skip(n as usize)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user