Skip to content

GetPendingPerpetualOrderCount count processing logic error in CreatePerpetualOpenOrder function #1236

@icehawk-hyb

Description

@icehawk-hyb

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

Image

2.2 AppendPendingPerpetualOrder

Image

3.suggestion:
Call the HandleOpenEstimation function successfully first and then call the AppendPendingPerpetualOrder function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions