Skip to content

Commit

Permalink
Merge branch 'feat/compound-1' of github.com:morpho-labs/blue into fe…
Browse files Browse the repository at this point in the history
…at/compound-1
  • Loading branch information
pakim249CAL committed Aug 4, 2023
2 parents 4f0aacf + 54bbd92 commit 1deabf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/forge/Math.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import "src/libraries/FixedPointMathLib.sol";
contract MathTest is Test {
using FixedPointMathLib for uint256;

function testTaylorSeriesExpansion(uint256 rate, uint256 timeElapsed) public {
function testWTaylorCompounded(uint256 rate, uint256 timeElapsed) public {

// Assume rate is less than a ~500% APY. (~180% APR)
vm.assume(rate < (FixedPointMathLib.WAD / 20_000_000) && timeElapsed < 365 days);
uint256 result = rate.wTaylorCompounded(timeElapsed) + FixedPointMathLib.WAD;
Expand Down

0 comments on commit 1deabf9

Please sign in to comment.