Skip to content

Commit

Permalink
feat: pass entire loan to refinance bounding
Browse files Browse the repository at this point in the history
  • Loading branch information
0xgregthedev committed Mar 25, 2024
1 parent cfa6b8e commit 6365fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fuzz-testing/BaseFuzzStarport.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ abstract contract BaseFuzzStarport is StarportTest, TestPlus, Bound, DeepEq {

function _boundSettlementData() internal virtual returns (bytes memory settlementData);

function _boundRefinanceData(bytes memory oldPricing) internal virtual returns (bytes memory newPricing);
function _boundRefinanceData(Starport.Loan memory loan) internal virtual returns (bytes memory newPricing);

function _boundFuzzLenderTerms() internal virtual returns (Starport.Terms memory terms) {
terms.status = address(status);
Expand Down Expand Up @@ -496,7 +496,7 @@ abstract contract BaseFuzzStarport is StarportTest, TestPlus, Bound, DeepEq {
SimpleInterestPricing.Details memory oldDetails =
abi.decode(goodLoan.terms.pricingData, (SimpleInterestPricing.Details));

bytes memory newPricingDetails = _boundRefinanceData(goodLoan.terms.pricingData);
bytes memory newPricingDetails = _boundRefinanceData(goodLoan);

Account memory account = makeAndAllocateAccount(params.refiKey);

Expand Down

0 comments on commit 6365fe7

Please sign in to comment.