Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
h2physics committed Feb 11, 2024
2 parents d1e429b + 242e522 commit ef7f554
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/amm_dex_v2/order_validation.ak
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ pub fn apply_orders(
) -> {
expect and {
io_ratio_numerator > 0,
io_ratio_numerator > 0,
io_ratio_denominator > 0,
hops > 0,
minimum_swap_amount_required > 0,
total_swap_amount >= minimum_swap_amount_required,
Expand Down
1 change: 1 addition & 0 deletions lib/amm_dex_v2/pool_validation.ak
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ pub fn validate_fee_percent(
min_fee_den: Int,
) -> Bool {
and {
fee_den > 0,
// less than max
fee_num * max_fee_den <= fee_den * max_fee_num,
// greater than min
Expand Down
Loading

0 comments on commit ef7f554

Please sign in to comment.