1.description“
First, the SetPendingPerpetualOrderCount count is successfully increased in the AppendPendingPerpetualOrder function.
However, if the HandleOpenEstimation function returns an error, it returns directly without restoring the PendingPerpetualOrderCount count.
2.code:
2.1 CreatePerpetualOpenOrder
2.2 AppendPendingPerpetualOrder
3.suggestion:
Call the HandleOpenEstimation function successfully first and then call the AppendPendingPerpetualOrder function