Can delegate as long as initial deposit meets min requirement.

This commit is contained in:
FiveMovesAhead 2024-11-22 03:30:07 +08:00
parent cc6e3d293d
commit 2e638d14da
2 changed files with 1 additions and 2 deletions

View File

@ -250,7 +250,7 @@ pub(crate) async fn update(cache: &mut AddBlockCache) {
player_data.delegatee = Some(player_id.clone());
} else if let Some(delegatee) = &player_state.delegatee {
if !active_opow_ids.contains(&delegatee.value)
|| self_deposit[player_id] < config.deposits.delegator_min_deposit
// || self_deposit[player_id] < config.deposits.delegator_min_deposit
|| self_deposit[&delegatee.value] < config.deposits.delegatee_min_deposit
{
continue;

View File

@ -42,7 +42,6 @@ serializable_struct_with_getters! {
lock_address: String,
min_lock_period_secs: u64,
max_lock_period_rounds: u32,
lock_period_multiplier: f64,
max_reward_share: f64,
default_reward_share: f64,
reward_share_update_period: u32,