Skip to content

Commit

Permalink
Update pallets/reward-distribution/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel Ebert <[email protected]>
  • Loading branch information
gianfra-t and ebma authored Oct 31, 2023
1 parent 4ae51f1 commit be5625e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/reward-distribution/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub mod pallet {
let expected_rewards =
ext::staking::compute_reward::<T>(&vault_id, &caller, reward_currency_id)?;

if expected_rewards == (BalanceOf::<T>::zero()) {
if expected_rewards == BalanceOf::<T>::zero() {
return Err(Error::<T>::NoRewardsForAccount.into())
}

Expand Down

0 comments on commit be5625e

Please sign in to comment.