Skip to content

Implement repay_debt #93

@0x-r4bbit

Description

@0x-r4bbit

repay_debt(amount) in stablecoin/src/:

  • Accrue outstanding stability fees on the position, adding them to Position.debt_amount
  • Issue a chained Burn call to the token program to burn amount stablecoins from the user's holding account
  • Decrease Position.debt_amount by amount

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions