Skip to content

Commit

Permalink
make Black76 external
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdomrom committed Oct 25, 2023
1 parent 5c38c1b commit f64d5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/Black76.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ library Black76 {
* @return callPrice Call price for given Black76 parameters (18-decimal precision).
* @return putPrice Put price for given Black76 parameters (18-decimal precision).
*/
function prices(Black76Inputs memory b76Input) internal pure returns (uint callPrice, uint putPrice) {
function prices(Black76Inputs memory b76Input) external pure returns (uint callPrice, uint putPrice) {
unchecked {
uint tAnnualised = annualise(b76Input.timeToExpirySec);
// products of <128 bit numbers, cannot overflow here when caseted to 256
Expand Down

0 comments on commit f64d5e3

Please sign in to comment.