Skip to content

Commit

Permalink
add a new assume for the pricing data
Browse files Browse the repository at this point in the history
  • Loading branch information
androolloyd committed Nov 20, 2023
1 parent 9822752 commit f9d8ba9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/fuzz-testing/TestFuzzV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
BaseRecall,
AstariaV1LenderEnforcer
} from "test/AstariaV1Test.sol";

import {Validation} from "starport-core/lib/Validation.sol";
import "forge-std/console.sol";

contract TestFuzzV1 is AstariaV1Test, TestFuzzStarport {
Expand Down Expand Up @@ -166,8 +166,8 @@ contract TestFuzzV1 is AstariaV1Test, TestFuzzStarport {
skip(_boundMax(1, uint256(3 * 365 days)));
}

function willArithmeticOverflow(Starport.Loan memory loan) internal view virtual override returns (bool) {
BasePricing.Details memory pricingDetails = abi.decode(loan.terms.pricingData, (BasePricing.Details));
function willArithmeticOverflow(Starport.Loan memory loan) internal view virtual override returns (bool valid) {
vm.assume(AstariaV1Pricing(loan.terms.pricing).validate(loan) == Validation.validate.selector);
try Pricing(loan.terms.pricing).getPaymentConsideration(loan) returns (
SpentItem[] memory repayConsideration, SpentItem[] memory carryConsideration
) {
Expand Down

0 comments on commit f9d8ba9

Please sign in to comment.