Skip to content

Commit

Permalink
Fix comparasion issue (#1853)
Browse files Browse the repository at this point in the history
  • Loading branch information
alannotnerd authored Aug 17, 2022
1 parent 1c12301 commit 4f040fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ pub mod pallet {

// make sure the required amount in does not violate our input
ensure!(
amounts[amounts.len() - 1] > min_amount_out,
amounts[amounts.len() - 1] >= min_amount_out,
Error::<T, I>::MinimumAmountOutViolated
);

Expand Down Expand Up @@ -368,7 +368,7 @@ pub mod pallet {

// make sure the required amount in does not violate our input
ensure!(
max_amount_in > amounts[0],
max_amount_in >= amounts[0],
Error::<T, I>::MaximumAmountInViolated
);

Expand Down

0 comments on commit 4f040fd

Please sign in to comment.