-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d34699
commit 08cb51c
Showing
2 changed files
with
33 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
|
||
//Assert balances are correct after new loan is created | ||
modifier newLoanAssertions() { | ||
|
||
uint256 borrowerBalance; | ||
|
||
_; | ||
|
||
//Assert updated balances are correct | ||
|
||
} | ||
|
||
|
||
//Assert balances are correct after loan is repaid | ||
modifier repayAssertions() { | ||
|
||
uint256 borrowerBalance; | ||
|
||
_; | ||
|
||
//Assert updated balances are correct | ||
|
||
} | ||
|
||
|
||
// | ||
////Assert balances are correct after new loan is created | ||
//modifier newLoanAssertions() { | ||
// | ||
// uint256 borrowerBalance; | ||
// | ||
// _; | ||
// | ||
// //Assert updated balances are correct | ||
// | ||
//} | ||
// | ||
// | ||
////Assert balances are correct after loan is repaid | ||
//modifier repayAssertions() { | ||
// | ||
// uint256 borrowerBalance; | ||
// | ||
// _; | ||
// | ||
// //Assert updated balances are correct | ||
// | ||
//} | ||
// | ||
// |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
bytes32 lienOpenTopic = bytes32(0x57cb72d73c48fadf55428537f6c9efbe080ae111339b0c5af42d9027ed20ba17); | ||
for (uint256 i = 0; i < logs.length; i++) { | ||
if (logs[i].topics[0] == lienOpenTopic) { | ||
(loanId, loan) = abi.decode(logs[i].data, (uint256, LoanManager.Loan)); | ||
break; | ||
} | ||
} | ||
// | ||
// bytes32 lienOpenTopic = bytes32(0x57cb72d73c48fadf55428537f6c9efbe080ae111339b0c5af42d9027ed20ba17); | ||
// for (uint256 i = 0; i < logs.length; i++) { | ||
// if (logs[i].topics[0] == lienOpenTopic) { | ||
// (loanId, loan) = abi.decode(logs[i].data, (uint256, LoanManager.Loan)); | ||
// break; | ||
// } | ||
// } |