Assessment reports>Ostium>Threat Model>newOpenPnlRequestOrEpoch

Function: newOpenPnlRequestOrEpoch()

Make a request for a new open PNL request or a new epoch. If there are enough requests over a period of time, a new epoch will open.

Branches and code coverage

Intended branches

  • If it is the first request of the epoch, and enough time has passed since the start, make the first open PNL request.

  • If it is not the first request of the epoch, and enough time has passed since the last request, make the next open PNL request.

  • If the above is true and there have been enough requests, start a new epoch.

Negative behavior

  • No negative behavior.

Zellic © 2024Back to top ↑