Skip to content

Commit

Permalink
chore: please the lord clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nseguias committed May 6, 2024
1 parent 84ae06b commit 4cb71f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contracts/liquidity_hub/pool-manager/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ pub struct OfferAmountComputation {

pub fn assert_slippage_tolerance(
slippage_tolerance: &Option<Decimal>,
deposits: &Vec<Coin>,
pools: &Vec<Coin>,
deposits: &[Coin],
pools: &[Coin],
pool_type: PoolType,
amount: Uint128,
pool_token_supply: Uint128,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ pub fn provide_liquidity(
PoolType::StableSwap { amp: amp_factor } => {
// TODO: Handle stableswap

let share = if total_share == Uint128::zero() {
if total_share == Uint128::zero() {
// Make sure at least MINIMUM_LIQUIDITY_AMOUNT is deposited to mitigate the risk of the first
// depositor preventing small liquidity providers from joining the pool
let min_lp_token_amount = MINIMUM_LIQUIDITY_AMOUNT * Uint128::from(3u8);
Expand Down Expand Up @@ -323,8 +323,7 @@ pub fn provide_liquidity(
total_share,
)?;
amount
};
share
}
}
};

Expand Down

0 comments on commit 4cb71f5

Please sign in to comment.