We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f0aacf + 54bbd92 commit 1deabf9Copy full SHA for 1deabf9
test/forge/Math.t.sol
@@ -8,7 +8,8 @@ import "src/libraries/FixedPointMathLib.sol";
8
contract MathTest is Test {
9
using FixedPointMathLib for uint256;
10
11
- function testTaylorSeriesExpansion(uint256 rate, uint256 timeElapsed) public {
+ function testWTaylorCompounded(uint256 rate, uint256 timeElapsed) public {
12
+
13
// Assume rate is less than a ~500% APY. (~180% APR)
14
vm.assume(rate < (FixedPointMathLib.WAD / 20_000_000) && timeElapsed < 365 days);
15
uint256 result = rate.wTaylorCompounded(timeElapsed) + FixedPointMathLib.WAD;
0 commit comments