LogoLogo
  • Introduction
  • 👨‍🦱Personas
    • Borrowers
      • Submit Loan Request
        • Loan Collateral
      • Repay Loan
        • Withdraw Collateral
      • Accept Commitment
      • Loan Status
    • Lenders
      • Review Loan Requests
      • Accept Loan Request
      • Claim Collateral
      • Create Commitment
    • Pool Owner
      • Pool Settings
      • Loan Payment Type
      • Payment Cycle Type
    • Liquidators
      • Liquidate Loan
    • Reward Allocators
  • Resources
    • Deployed Contracts
Powered by GitBook
On this page
  1. Personas
  2. Borrowers
  3. Repay Loan

Withdraw Collateral

Once a loan has been fully repaid, it will transition to a status of 'paid'. Once this happens, the borrower is allowed to withdraw any collateral that was deposited during acceptBid() by calling the withdraw() function of CollateralManager.sol.

/**
* @notice Withdraws deposited collateral from the created escrow of a bid that has been successfully repaid.
* @param _bidId The id of the bid to withdraw collateral for.
*/
function withdraw(uint256 _bidId)

Any account is allowed to call this method. If the loan status is 'paid' then the collateral will be transferred to the lender address for the loan.

PreviousRepay LoanNextAccept Commitment

Last updated 2 years ago

👨‍🦱