Skip to content

Commit 439f565

Browse files
committed
remove hard-coded data that was accidently left in the code when debugging the Balance type issue, where it should have been u128 instead of u64 in the mocks
1 parent e1f8da4 commit 439f565

File tree

1 file changed

+1
-2
lines changed
  • pallets/mining/rewards-allowance/src

1 file changed

+1
-2
lines changed

pallets/mining/rewards-allowance/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,7 @@ pub mod pallet {
642642
// Divide, handling overflow
643643
let mut daily_reward_for_miner_as_u128 = 0u128;
644644
// note: this rounds down to the nearest integer
645-
let _daily_reward_for_miner_as_u128 = 25_133_000_000_000_000_000_000u128.checked_div(10u128);
646-
// let _daily_reward_for_miner_as_u128 = locks_first_amount_as_u128.clone().checked_div(min_bonded_dhx_daily_u128.clone());
645+
let _daily_reward_for_miner_as_u128 = locks_first_amount_as_u128.clone().checked_div(min_bonded_dhx_daily_u128.clone());
647646
match _daily_reward_for_miner_as_u128 {
648647
None => {
649648
log::error!("Unable to divide min_bonded_dhx_daily from locks_first_amount_as_u128 due to StorageOverflow");

0 commit comments

Comments
 (0)