API ReferenceVaults, collateral, and riskInterface
CreditedToken
The LetterOfCredit contract’s limits for a token that dynamic LOCs may credit. Static LOCs are not subject to these limits. Amounts are in the token’s smallest unit.
Properties
globalAmountInDynamicUse
globalAmountInDynamicUse: bigint;Credited amount currently outstanding across all open dynamic LOCs in this token. A new dynamic LOC
may credit at most globalMaxInDynamicUse - globalAmountInDynamicUse.
globalMaxInDynamicUse
globalMaxInDynamicUse: bigint;Protocol-wide cap on the credited amount outstanding across all open dynamic LOCs in this token.
0n means the token is disabled for new dynamic LOCs.
maxPerDynamicLOC
maxPerDynamicLOC: bigint;Largest credited amount a single dynamic LOC may be created for. Creation above this reverts
(LOCCreditedTokenMaxExceeded).
minPerDynamicLOC
minPerDynamicLOC: bigint;Smallest credited amount a single dynamic LOC may be created for. Creation below this reverts
(LOCCreditedTokenUnderMinimum).
token
token: Token;The ERC-20 that dynamic LOCs credit (the token a beneficiary receives).