Function: mint(address _debtor, uint256 _mintAmount)
Available only for minters. Allows to add a new debt position to any _debtor account. The debtor's principal will be increased by amount, and also totalPrincipal will be increased.
Inputs
_debtorConstraints: Cannot be zero address.
Impact: The receiver of debt tokens.
_mintAmountConstraints: No constraints.
Impact: The debt amount.
Branches and code coverage
Intended branches
The
_debtor'sprincipalwas increased.totalPrincipalwas updated properly.
Negative behavior
Caller is not a minter.
_mintAmountis zero._debtoraddress is zero.