We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9cabe9a + 172e9e1 commit 6282efaCopy full SHA for 6282efa
precompile/binaries/stdlib/minitswap.mv
13 Bytes
precompile/modules/initia_stdlib/sources/minitswap.move
@@ -833,6 +833,12 @@ module initia_std::minitswap {
833
// when fully recovered rate is too close to 0.5 y can be same with sim_size
834
if (y == sim_size) break;
835
836
+ // when fully recovered rate is too close to 0.5 x can be slightly higher than sim_size
837
+ if (x > sim_size) {
838
+ x = sim_size;
839
+ break
840
+ };
841
+
842
if (x > x_prev) {
843
if (x - x_prev <= 1) break
844
} else {
0 commit comments