-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed loan_request to request_loan
- Loading branch information
1ixi1
committed
Jun 9, 2023
1 parent
604ef66
commit a92dc3e
Showing
4 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Controller and Pool communication | ||
|
||
File `ControllerPool.spec.ts` contains tests for actions where Pool and | ||
Controller are the main participants. | ||
|
||
There are only 2 actions like this: `request_loan` and `repay_loan`, which | ||
are both starting as a message from controller to pool. | ||
|
||
|
||
## Loan request | ||
|
||
Pool should accept it only from controllers that were minted by this pool | ||
with exact approver. Tests are need to cover | ||
|
||
Selected interest rate should be greater or eqal to pool's interest | ||
|
||
Then pool should correctly add the loan to it's list. | ||
|
||
|
||
## Loan repayment | ||
|
||
|