Skip to content

Commit

Permalink
fix: 🐛 clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yooml committed Nov 20, 2023
1 parent 2670283 commit 6f10083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/ve-minting/src/incentive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl<T: Config> Pallet<T> {

pub fn reward_per_token() -> Result<BTreeMap<CurrencyIdOf<T>, BalanceOf<T>>, DispatchError> {
let mut conf = Self::incentive_configs();
let current_block_number: T::BlockNumber = frame_system::Pallet::<T>::block_number();
let current_block_number: BlockNumberFor<T> = frame_system::Pallet::<T>::block_number();
let total_supply = Self::total_supply(current_block_number)?;
if total_supply == BalanceOf::<T>::zero() {
return Ok(conf.reward_per_token_stored);
Expand Down

0 comments on commit 6f10083

Please sign in to comment.