Skip to content

pricing helpers: arg type checks, throw helpful errors#99

Merged
samuelvanderwaal merged 1 commit intomainfrom
leant/typechecks-pricinghelpers
Feb 22, 2025
Merged

pricing helpers: arg type checks, throw helpful errors#99
samuelvanderwaal merged 1 commit intomainfrom
leant/typechecks-pricinghelpers

Conversation

@leantOnSol
Copy link
Contributor

prev: when a user would disable type checks, pricing helpers could return incorrect prices because of simple if-else for binary types like CurveType

  • this adds stricter type checks to avoid any unexpected / incorrect returns for bad arg input types

@samuelvanderwaal samuelvanderwaal merged commit ffc72eb into main Feb 22, 2025
11 checks passed
@samuelvanderwaal samuelvanderwaal deleted the leant/typechecks-pricinghelpers branch February 22, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants