Skip to main content

LoanAssetToken

LoanAssetToken

LoanAssetToken: The representative for ownership of a Loan

initialize

function initialize(contract Registry _registry, string name, string symbol, string baseTokenURI) public

CONSTRUCTOR

safeMint

function safeMint(address creditor, struct DataTypes.LoanAssetInfo latInfo) public

Function to mint loan assets to creditor

Parameters

NameTypeDescription
creditoraddressThe address of the creditor
latInfostruct DataTypes.LoanAssetInfoStruct containing information about the loan asset(s)

isValidator

function isValidator(address pool, address sender) public view virtual returns (bool)

_Checks if an address has the validator role within a specific pool. Requirements:

  • The caller must have been granted the VALIDATORROLE in the specified pool.

Parameters

NameTypeDescription
pooladdressAddress of the pool to check against.
senderaddressAddress to check for validator role.

Return Values

NameTypeDescription
[0]boolbool Whether or not the address has the validator role within the pool.