Skip to content

Commit

Permalink
Fix amount in calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoplavkov committed Oct 20, 2024
1 parent 6b8db59 commit e1a19a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/math/src/pool_math.sw
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn get_amount_in(
pow_decimals_out,
);

let amount_out_adjusted = adjust(output_amount, pow_decimals_in);
let amount_out_adjusted = adjust(output_amount, pow_decimals_out);
let reserve_in_adjusted = adjust(reserve_in, pow_decimals_in);
let reserve_out_adjusted = adjust(reserve_out, pow_decimals_out);
let y = get_y(
Expand Down

0 comments on commit e1a19a1

Please sign in to comment.