Skip to content

Commit

Permalink
style: 🚨 fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignazio Bovo committed Feb 20, 2024
1 parent 1931718 commit d6e0111
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions runtime-modules/project-token/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,15 +647,13 @@ impl<Balance: TokenBalanceTrait> AmmCurve<Balance> {
self.provided_supply.add(amount)
};

let res = amm_eval_inner::<Balance>(
amm_eval_inner::<Balance>(
provided_supply_pre,
provided_supply_post,
self.slope,
self.intercept,
)
.ok_or(Error::<T>::ArithmeticError.into());

res
.ok_or_else(|| Error::<T>::ArithmeticError.into());
}
}

Expand Down

0 comments on commit d6e0111

Please sign in to comment.