I want to estimate if one transaction I make after another will fail or not. The error I want to check is an insufficient amount of output. To do this, assuming that my pair is wbnb / tokenX, I am going to add the amount in of the first tx to the reserve of wbnb and to the reserve of tokenX I go to remove the min output of token. I use these two reserves to calculate the outmin of the second tx. Is that right as a reasoning?

Feb 3, 2022, 8:33 AM

© 2024 Draquery.com All rights reserved.