Skip to content

Commit

Permalink
fix: update loan spec fuzzing (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Manuel authored Apr 30, 2021
1 parent 91583b6 commit 308273d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/test/TestUtil.sol
Original file line number Diff line number Diff line change
Expand Up @@ -615,11 +615,11 @@ contract TestUtil is DSTest {
uint256 termDays = paymentIntervalDays * numPayments;

specs = [
constrictToRange(apr, 1, 10_000, true), // APR between 0.01% and 100% (non-zero for test behavior)
termDays, // Fuzzed term days
paymentIntervalDays, // Payment interval days from array
constrictToRange(requestAmount, 1 * USD, 1E10 * USD, true), // 1 USD - 10b USD loans (non-zero)
constrictToRange(collateralRatio, 0, 10_000) // Collateral ratio between 0 and 100%
constrictToRange(apr, 1, 10_000, true), // APR between 0.01% and 100% (non-zero for test behavior)
termDays, // Fuzzed term days
paymentIntervalDays, // Payment interval days from array
constrictToRange(requestAmount, 10_000 * USD, 1E10 * USD, true), // 10k USD - 10b USD loans (non-zero)
constrictToRange(collateralRatio, 0, 10_000) // Collateral ratio between 0 and 100%
];
}

Expand Down

0 comments on commit 308273d

Please sign in to comment.