Describe:
There is an error in the calling logic of the CheckPoolHealth function when opening a position.
This will result in opening a position in an unhealthy leverage pool.
code:

suggestion:
First check the health of the leverage pool, and then decide whether to open a position