Name | Lookup | Parameters | |
|---|---|---|---|
| create | 6400 | 2 | |
| borrow | 6401 | 3 | |
| repay | 6402 | 3 | |
| write_off | 6403 | 2 | |
| admin_write_off | 6404 | 4 | |
| propose_loan_mutation | 6405 | 3 | |
| apply_loan_mutation | 6406 | 2 | |
| close | 6407 | 2 | |
| propose_write_off_policy | 6408 | 2 | |
| apply_write_off_policy | 6409 | 2 | |
| update_portfolio_valuation | 640a | 1 | |
| propose_transfer_debt | 640b | 5 | |
| apply_transfer_debt | 640c | 2 | |
| increase_debt | 640d | 3 | |
| decrease_debt | 640e | 3 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Created | 6400 | ["PoolId","LoanId","LoanInfo"] | |
| Borrowed | 6401 | ["PoolId","LoanId","PrincipalInput"] | |
| Repaid | 6402 | ["PoolId","LoanId","RepaidInput"] | |
| WrittenOff | 6403 | ["PoolId","LoanId","WriteOffStatus<Rate>"] | |
| Mutated | 6404 | ["PoolId","LoanId","LoanMutation<Rate>"] | |
| Closed | 6405 | ["PoolId","LoanId","AssetOf"] | |
| PortfolioValuationUpdated | 6406 | ["PoolId","Balance","PortfolioValuationUpdateType"] | |
| WriteOffPolicyUpdated | 6407 | ["PoolId","BoundedVec<WriteOffRule<Rate>, MaxWriteOffPolicySize>"] | |
| DebtTransferred | 6408 | ["PoolId","LoanId","LoanId","RepaidInput","PrincipalInput"] | |
| DebtIncreased | 6409 | ["PoolId","LoanId","PrincipalInput"] | |
| DebtDecreased | 640a | ["PoolId","LoanId","RepaidInput"] |
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":807,"value_id":824}} | |
| 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":825}} | |
| ClosedLoan | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U64","U64"],"value":"pallet_loans:entities:loans:ClosedLoan","keys_id":807,"value_id":834}} | |
| WriteOffPolicy | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<pallet_loans:types:policy:WriteOffRule>","keys_id":11,"value_id":258}} | |
| PortfolioValuation | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"cfg_types:portfolio:PortfolioValuation@835","keys_id":11,"value_id":835}} |
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 |
| MaturityDateNeededForValuationMethod | Emits when the loan has no maturity date set, but the valuationmethod needs one. Making valuation and maturity settingsincompatible. |