Mints debt tokens when the user borrows, representing the user's debt.
Call Params
Name
Type
Description
initiator
address
The address calling borrow
onBehalfOf
address
The address of the user that will receive the debtTokens
amount
uint256
The amount of debt being minted
index
uint256
The variable debt index of the reserve
Return Values
Type
Description
bool
true if the the previous balance of the user is 0
burn
function burn(address user, uint256 amount, uint256 index) external
It will burn the user's variable debt after redeeming, repaying or getting liquidated.
Call Params
Name
Type
Description
user
address
The user whose debt is getting burned
amount
uint256
The amount getting burned
index
uint256
The variable debt index of the reserve
transfer
function transfer(address recipient, uint256 amount) public virtual returns (bool)
This method is not supported. It will revert the transaction.
allowance
function allowance(address owner, address spender) public view virtual returns (uint256)
This method is not supported. It will revert the transaction.
approve
function approve(address spender, uint256 amount) public virtual returns (bool)
This method is not supported. It will revert the transaction.
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual returns (bool)
This method is not supported. It will revert the transaction.
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool)
This method is not supported. It will revert the transaction.
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool)
This method is not supported. It will revert the transaction.
approveDelegation
function approveDelegation(address delegatee, uint256 amount) external
Delegates borrowing power to a user on the specific debt token.
Call Params
Name
Type
Description
delegatee
address
the address receiving the delegated borrowing power
amount
uint256
the maximum amount being delegated. Delegation will still respect the liquidation constraints (even if delegated, a delegatee cannot force a delegator HF to go below 1)
borrowAllowance
function borrowAllowance(address fromUser, address toUser) external view returns (uint256)