Name | Lookup | Parameters | |
---|---|---|---|
create | bb00 | 2 | |
borrow | bb01 | 3 | |
repay | bb02 | 3 | |
write_off | bb03 | 2 | |
admin_write_off | bb04 | 4 | |
propose_loan_mutation | bb05 | 3 | |
apply_loan_mutation | bb06 | 2 | |
close | bb07 | 2 | |
propose_write_off_policy | bb08 | 2 | |
apply_write_off_policy | bb09 | 2 | |
update_portfolio_valuation | bb0a | 1 | |
propose_transfer_debt | bb0b | 5 | |
apply_transfer_debt | bb0c | 2 | |
increase_debt | bb0d | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
Created | bb00 | ["PoolId","LoanId","LoanInfo"] | |
Borrowed | bb01 | ["PoolId","LoanId","PrincipalInput"] | |
Repaid | bb02 | ["PoolId","LoanId","RepaidInput"] | |
WrittenOff | bb03 | ["PoolId","LoanId","WriteOffStatus<Rate>"] | |
Mutated | bb04 | ["PoolId","LoanId","LoanMutation<Rate>"] | |
Closed | bb05 | ["PoolId","LoanId","AssetOf"] | |
PortfolioValuationUpdated | bb06 | ["PoolId","Balance","PortfolioValuationUpdateType"] | |
WriteOffPolicyUpdated | bb07 | ["PoolId","BoundedVec<WriteOffRule<Rate>, MaxWriteOffPolicySize>"] | |
DebtTransferred | bb08 | ["PoolId","LoanId","LoanId","RepaidInput","PrincipalInput"] | |
DebtIncreased | bb09 | ["PoolId","LoanId","PrincipalInput"] |
Name | Type | |
---|---|---|
LastLoanId | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"U64","keys_id":11,"value_id":11}} | |
CreatedLoan | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U64","U64"],"value":"pallet_loans:entities:loans:CreatedLoan","keys_id":818,"value_id":869}} | |
ActiveLoans | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<Tuple:U64pallet_loans:entities:loans:ActiveLoan>","keys_id":11,"value_id":870}} | |
ClosedLoan | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U64","U64"],"value":"pallet_loans:entities:loans:ClosedLoan","keys_id":818,"value_id":879}} | |
WriteOffPolicy | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<pallet_loans:types:policy:WriteOffRule>","keys_id":11,"value_id":400}} | |
PortfolioValuation | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"cfg_types:portfolio:PortfolioValuation@880","keys_id":11,"value_id":880}} |
Name | Type | Value | |
---|---|---|---|
MaxActiveLoansPerPool | U32 | e8030000 | |
MaxWriteOffPolicySize | U32 | 64000000 |
Name | Docs |
---|---|
PoolNotFound | Emits when pool doesn't exist |
LoanNotActiveOrNotFound | Emits when loan doesn't exist or it's not active yet. |
NoValidWriteOffRule | Emits when a write-off rule is not found in a policy for a specificloan. It happens when there is no policy or the loan is not overdue. |
NFTOwnerNotFound | Emits when the NFT owner is not found |
NotNFTOwner | Emits when NFT owner doesn't match the expected owner |
NotLoanBorrower | Emits when the applicant account is not the borrower of the loan |
MaxActiveLoansReached | Emits when the max number of active loans was reached |
NoLoanChangeId | The Change Id does not belong to a loan change |
UnrelatedChangeId | The Change Id exists but it's not releated with the expected change |
MismatchedPricingMethod | Emits when the pricing method is not compatible with the input |
SettlementPriceExceedsVariation | Emits when settlement price is exceeds the configured variation. |
CreateLoanError | Emits when the loan is incorrectly specified and can not be created |
BorrowLoanError | Emits when the loan can not be borrowed from |
RepayLoanError | Emits when the loan can not be repaid from |
WrittenOffError | Emits when the loan can not be written off |
CloseLoanError | Emits when the loan can not be closed |
MutationError | Emits when the loan can not be mutated |
TransferDebtToSameLoan | Emits when debt is transfered to the same loan |
TransferDebtAmountMismatched | Emits when debt is transfered with different repaid/borrow amounts |