difftreelog
fix stake logic
in: master
1 file changed
pallets/app-promotion/src/lib.rsdiffbeforeafterboth280 &staker_id,280 &staker_id,281 amount,281 amount,282 WithdrawReasons::all(),282 WithdrawReasons::all(),283 balance - amount,283 balance284 .checked_sub(&amount)285 .ok_or(ArithmeticError::Underflow)?,284 )?;286 )?;285287286 Self::add_lock_balance(&staker_id, amount)?;288 Self::add_lock_balance(&staker_id, amount)?;