Skip to content

The CtdappRunwayTooShort error should not be triggered after the CT is funded #716

@mjadach-iv

Description

@mjadach-iv

The CtdappRunwayTooShort error should not be triggered after the CT is funded. There should be an exception that will treat it as a healtly event.

Right now the runway is calculated as what's in the safe divided by the consumption per day. The comsumption per day seams to be negative when we receive funds (expected, as consumption is positive when we distribute funds).
Thus: total in safe / consumption is negative too, triggering the alerts as we are belong 0.

Possible solutions (some better than others):

  • do not trigger an alert of the consumption is negative

  • if you get a negative consumption, check if the wxHOPR balance is over 25k wxHOPR before triggering the alert.

  • if you get a negative consumption, check if wxHOPR balance went drastically up from the last alert

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in the code that needs to be fixed

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions