Skip to content

Conversation

danoctavian
Copy link
Contributor

No description provided.

}

function performPayoutBurn(
function performStakeBurn(
Copy link
Contributor

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.

Copy link
Contributor Author

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 {
Copy link
Contributor

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");

Copy link
Contributor Author

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.

@roxdanila roxdanila merged commit ce873b5 into nexus-v2 Jun 12, 2022
@roxdanila roxdanila deleted the feature/extra-cover-tests branch June 12, 2022 20:39
@roxdanila roxdanila restored the feature/extra-cover-tests branch June 12, 2022 20:39
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.

3 participants