Name | Lookup | Parameters | |
|---|---|---|---|
| create | 6400 | 2 | |
| borrow | 6401 | 3 | |
| repay | 6402 | 4 | |
| write_off | 6403 | 2 | |
| admin_write_off | 6404 | 4 | |
| close | 6405 | 2 | |
| update_write_off_policy | 6406 | 2 | |
| update_portfolio_valuation | 6407 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Created | 6400 | ["PoolIdOf","LoanId","LoanInfo"] | |
| Borrowed | 6401 | ["PoolIdOf","LoanId","Balance"] | |
| Repaid | 6402 | ["PoolIdOf","LoanId","Balance","Balance"] | |
| WrittenOff | 6403 | ["PoolIdOf","LoanId","WriteOffStatus<Rate>"] | |
| Closed | 6404 | ["PoolIdOf","LoanId","AssetOf"] | |
| PortfolioValuationUpdated | 6405 | ["PoolIdOf","Balance","PortfolioValuationUpdateType"] | |
| WriteOffPolicyUpdated | 6406 | ["PoolIdOf","BoundedVec<WriteOffRule<Rate>, MaxWriteOffPolicySize>"] |
Name | Type | |
|---|---|---|
| LastLoanId | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"U64","keys_id":10,"value_id":10}} | |
| CreatedLoan | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U64","U64"],"value":"pallet_loans_ref:loan:CreatedLoan","keys_id":580,"value_id":595}} | |
| ActiveLoans | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<Tuple:U64pallet_loans_ref:loan:ActiveLoan>","keys_id":10,"value_id":596}} | |
| ClosedLoan | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U64","U64"],"value":"pallet_loans_ref:loan:ClosedLoan","keys_id":580,"value_id":603}} | |
| WriteOffPolicy | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<pallet_loans_ref:types:policy:WriteOffRule>","keys_id":10,"value_id":130}} | |
| PortfolioValuation | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"pallet_loans_ref:types:portfolio:PortfolioValuation","keys_id":10,"value_id":604}} |
Name | Type | Value | |
|---|---|---|---|
| MaxActiveLoansPerPool | U32 | 2c010000 | |
| 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 |
| AmountNotMultipleOfPrice | Emits when an amount used is not multiple of the current price |
| 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 |