-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Oracle valuation implementation (#1311)
* first oracle valuation schema * remove time dependency for calculate debt * add trigger * configure mock, minor renames * fix tests * simplify price bound. Fix benchmarks * minor benchmark fix * updating development runtime * add pallet-collection-data-feed to development runtime * add to altair & centrifuge runtimes * avoid fixing features out of this scope * refactor test utility create_loan * add utility to configure pallet loans without price registry * revert runtime oracle & collection-data-feed additions * revert runtime oracle & collection-data-feed additions * fix std issue * price as balance instead of rate * fix broken test * correct oracle repayment * add write off to oracle valuation * minor rename * fix integration tests * fix Cargo.lock * add missing license files * write_off penalty refactor * reestructure types * use Config for pricing * reorganization in files * collections handled in pricing * minor write off comments * minor rename * add required restrictions * minor comment fix * remove write off wrappers, avoid pricing field access from loans * rename write_off to policy * split pricing modules in files * legacy tests passing * fix legacy benchmarks * add to codeowners * add create & borrow test cases for external pricing * apply thea suggestion for collection data * add repay tests * fix clippy * reorganize policy & better testing * add tests for write_off and policy * add tests for close * fix policy compilation issue in no-std * fix present value for repayment loans & portfolio tests * fix integration tests * add outstanding quantity to external pricing * add wrong quantity tests * fix portfolio valuation * minor doc move * portfolio in a new mod * Initialize portfolio with current time * add test checking the initial portfolio timestamp * fix lints * unify Loan errors * renaming quantity * rename NotWrittenOff restriction * rename config to util, minor doc change
- Loading branch information
Showing
24 changed files
with
2,176 additions
and
1,027 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.