Name | Lookup | Parameters | |
|---|---|---|---|
| create | 6400 | 2 | |
| borrow | 6401 | 3 | |
| repay | 6402 | 3 | |
| 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","LoanInfoOf"] | |
| Borrowed | 6401 | ["PoolIdOf","LoanId","Balance"] | |
| Repaid | 6402 | ["PoolIdOf","LoanId","Balance"] | |
| WrittenOff | 6403 | ["PoolIdOf","LoanId","WriteOffStatus<Rate>"] | |
| Closed | 6404 | ["PoolIdOf","LoanId","AssetOf"] | |
| PortfolioValuationUpdated | 6405 | ["PoolIdOf","Balance","PortfolioValuationUpdateType"] | |
| WriteOffPolicyUpdated | 6406 | ["PoolIdOf","BoundedVec<WriteOffState<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:types:CreatedLoan","keys_id":535,"value_id":550}} | |
| ActiveLoans | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<Tuple:pallet_loans_ref:types:ActiveLoanU64>","keys_id":10,"value_id":551}} | |
| ClosedLoan | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U64","U64"],"value":"pallet_loans_ref:types:ClosedLoan","keys_id":535,"value_id":555}} | |
| WriteOffPolicy | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<pallet_loans_ref:types:WriteOffState>","keys_id":10,"value_id":126}} | |
| PortfolioValuation | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"pallet_loans_ref:types:PortfolioValuation","keys_id":10,"value_id":556}} |
Name | Type | Value | |
|---|---|---|---|
| MaxActiveLoansPerPool | U32 | 2c010000 | |
| MaxWriteOffPolicySize | U32 | 64000000 |
Name | Docs |
|---|---|
| PoolNotFound | Emits when pool doesn't exist |
| LoanNotFound | Emits when loan doesn't exist |
| LoanNotActive | Emits when a loan exist but it's not active |
| NoValidWriteOffState | Emits when a write-off state is not found in a policy for a specific loan.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 |
| CreateLoanError | Emits when the loan is incorrectly specified and can not be created |
| BorrowLoanError | Emits when the loan can not be borrowed from |
| WrittenOffError | Emits when the loan can not be written off |
| CloseLoanError | Emits when the loan can not be closed |