• Calculates margin used for a single balance. The health contribution given is negative if a balance is a liability, so the margin consumed is max(0, -healthContribution)

    Parameters

    Returns {
        initial: BigNumber;
        maintenance: BigNumber;
    }

    • initial: BigNumber
    • maintenance: BigNumber