Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring Policy Fee Calculation #21

Merged
merged 3 commits into from Apr 2, 2022
Merged

Conversation

binpmxstn
Copy link
Contributor

@binpmxstn binpmxstn commented Apr 1, 2022

  • Added a new function calculatePolicyFee to replace getCoverFee
  • Refactored helper util
  • Replaced getCoverFeeInfo logic with calculatePolicyFee and dropped the latter
  • Dropped obsolete arg coverRatio from getCoverFeeInfo
  • Renamed getCoverFee to getCoverCreationFeeInfo for added clarity
  • Dropped unused function getCoverFeeInfoInternal
  • Renamed getCoverFeeInternal to getPolicyFeeInternal
  • Refactored and added tests

- Added a new function `calculatePolicyFee` to replace `getCoverFee`
- Added tests
- Refactored helper util
…ped the latter

- Dropped obsolete arg `coverRatio` from `getCoverFeeInfo`
- Renamed `getCoverFee` to `getCoverCreationFeeInfo` for added clarity
- Dropped unused function `getCoverFeeInfoInternal`
- Renamed `getCoverFeeInternal` to `getPolicyFeeInternal`
- Refactored and added tests
@binpmxstn binpmxstn merged commit 30578d2 into develop Apr 2, 2022
@binpmxstn binpmxstn deleted the feature/new-policy-fee branch April 2, 2022 09:08
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.

None yet

1 participant