Skip to content

Commit e2a7042

Browse files
authored
Update SVI to return uint rather than uint128
1 parent 85f90ff commit e2a7042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/SVI.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ library SVI {
3636
function getVol(uint strike, int a, uint b, int rho, int m, uint sigma, uint forwardPrice, uint64 tao)
3737
internal
3838
pure
39-
returns (uint128)
39+
returns (uint)
4040
{
4141
// k = ln(strike / fwd)
4242
int k = FixedPointMathLib.ln(int(strike.divideDecimal(forwardPrice)));
@@ -59,6 +59,6 @@ library SVI {
5959
}
6060

6161
// sqrt((a + b * (sqrt((k - m)^2 + sigma^2) + rho * (k - m)))/tao)
62-
return uint128(FixedPointMathLib.sqrt(uint(w).divideDecimal(uint(tao))));
62+
return FixedPointMathLib.sqrt(uint(w).divideDecimal(uint(tao)));
6363
}
6464
}

0 commit comments

Comments
 (0)