mirror of
https://github.com/tig-foundation/tig-monorepo.git
synced 2026-02-21 10:27:49 +08:00
Move hardcoded magic numbers to config.
Some checks failed
Test Workspace / Test Workspace (push) Has been cancelled
Some checks failed
Test Workspace / Test Workspace (push) Has been cancelled
This commit is contained in:
parent
d91882207e
commit
99975da7c0
@ -256,7 +256,7 @@ pub(crate) async fn update(cache: &mut AddBlockCache) {
|
||||
}
|
||||
}
|
||||
DepositType::Lock { .. } => {
|
||||
let weight = PreciseNumber::from(4);
|
||||
let weight = PreciseNumber::from(config.deposits.token_locker_weight);
|
||||
let player_data = active_players_block_data
|
||||
.get_mut(&deposit.player_id)
|
||||
.unwrap();
|
||||
|
||||
@ -50,6 +50,7 @@ serializable_struct_with_getters! {
|
||||
delegatees_update_period: u32,
|
||||
delegatee_min_deposit: PreciseNumber,
|
||||
max_delegations: usize,
|
||||
token_locker_weight: u32,
|
||||
}
|
||||
}
|
||||
serializable_struct_with_getters! {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user