Skip to content

There is a problem with the SettleMTPBorrowInterestUnpaidLiability function when settling short trades, #1184

@icehawk-hyb

Description

@icehawk-hyb

When the short position is settled in the SettleMTPBorrowInterestUnpaidLiability function, when mtp.Custody is not enough to pay borrowInterestPaymentInCustody, there is a problem in the code logic processing, resulting in mtp.BorrowInterestUnpaidLiability not being assigned a value.

The borrowInterestPaymentInCustody variable should be replaced with unpaidInterestLiabilities

Image

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