-
Notifications
You must be signed in to change notification settings - Fork 66
Feature/extra cover tests #232
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
Conversation
} | ||
|
||
function performPayoutBurn( | ||
function performStakeBurn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the rationale behind this rename? Isn't "burnAmount" supposed to be the amount paid out (i.e. ETH/DAI, not NXM)? It definitely isn't the stake (in NXM) that is burned and we don't necessarily burn NXM when we make a payout, that's just a consequence of the payout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed off-band.
BuyCoverParams memory buyCoverParams, | ||
PoolAllocationRequest[] memory poolAllocations | ||
) external payable onlyMember whenNotPaused { | ||
) external payable onlyMember whenNotPaused nonReentrant { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the require below:
require(lastCoverSegment.start + lastCoverSegment.period > block.timestamp, "Cover: cover expired");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
Changed condition in the IF to check for that.
…art-contracts into feature/extra-cover-tests
No description provided.