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

Reassurance: Capitalize Cover Pool #71

Merged
merged 1 commit into from
May 26, 2022
Merged

Reassurance: Capitalize Cover Pool #71

merged 1 commit into from
May 26, 2022

Conversation

heyaibi
Copy link
Contributor

@heyaibi heyaibi commented May 26, 2022

Added capitalizePool function on the reassurance contract. This feature transfers a portion of the reassurance fund back to the cover liquidity pool to minimize liquidity provider loss. The capitalizePool can be called multiple times before finalization if the cover creator adds more liquidity to the reassurance pool.

  • Refactored to enable the reassurance contract to hold custody of the reassurance funds
  • Dropped external reassurance vault
  • Refactored addCover function to include reassurance rate
  • Refactored the claim function to keep an account of claims payout paid
  • Added capitalizePool function as explained above
  • Refactored finalize function to revert if reassurance transferrable amount is detected

Other Changes

  • Refactored tests
  • Fixed some slither issues
  • Generated keys and ABIs
  • Updated the documentation

Added `capitalizePool` function on the reassurance contract. This feature transfers a portion of the reassurance fund back to the cover liquidity pool to minimize liquidity provider loss. The `capitalizePool` can be called multiple times before finalization if the cover creator adds more liquidity to the reassurance pool.

- Refactored to enable the reassurance contract to hold custody of the reassurance funds
- Dropped external reassurance vault
- Refactored `addCover` function to include reassurance rate
- Refactored the `claim` function to keep an account of claims payout paid
- Added `capitalizePool` function as explained above
- Refactored `finalize` function to revert if reassurance transferrable amount is detected

Other Changes

- Refactored tests
- Fixed some slither issues
- Generated keys and ABIs
- Updated the documentation
@heyaibi heyaibi requested a review from flashburst May 26, 2022 08:17
@heyaibi heyaibi merged commit fbe409c into develop May 26, 2022
@heyaibi heyaibi deleted the reassurance branch May 26, 2022 09:24
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