Other user functions

There are a number of other functions that can be utilized by users in specific scenarios.

  • depositAndBorrow → combining deposit and borrow in a single transaction

  • repayAndWithdraw → combining repaying and withdrawing in a single transaction

  • commitUser → update an individual account, recognising earnings/losses from yield farming

  • liquidateUsers → liquidate one or more user unhealthy user positions

  • allowOnBehalf → allowing a users to authorize a specific address to act on its behalf

  • borrowOnBehalfOf → a pre-approved user borrows assets on behalf of another user

  • repayBadDebt → repaying bad debt for a user who’s supply token balance is 0

Last updated