Repaying
Last updated
Last updated
The repayment process involves the return of the borrowed asset and the corresponding release of the collateral asset. The protocol checks the debt NFT associated with the debt and retrieves the following information:
ID: The unique identifier for the debt NFT
Collateral Size: The amount of collateral provided during borrowing.
Borrow Price: The price at which the asset was borrowed
Borrow Type: Indicates whether the borrowing occurred above or below the active market price.
The contract checks the debt NFT data which includes:
ID: 12345
Collateral Value: 1 NAD
Borrow Price: 1000 USDC
Repay Fee: 0.03% as an example
To Repay: 1000.3 USDC =
The contract checks the debt NFT data which includes:
ID: 67890
Collateral size: 1000 USDC
Borrow Price: 2250 USDC
Repay Fee: 0.11% as an example
To Repay: 0.449 NAD =
Repayment is restricted for debts that are either blacklisted or inactive:
Blacklisted Debts: Expired debts absorbed into the protocol and no longer repayable.
Inactive Debts: Temporarily locked due to price crossover with the active market price