repay
Last updated
Last updated
This function is called when the user wishes to repay his existing debts. User can opt to repay in full or partially.
Inputs
address of debt asset: if repaying DAI debt, pass the DAI address
amount of debt to repay: does not need to be 100%
interestRateMode: stable or variable
onBehalfOf: if repaying another user's debt
useATokens: false
repayWithATokens
has useATokens
: true
We will breakdown and examine the unique sections of logics within executeRepay. Code delineated in orange are common functions and can be explored in that section.