Skip to content

Conversation

roxdanila
Copy link
Contributor

@roxdanila roxdanila commented Nov 24, 2022

Context

PR #480 introduced multiple test failures that were not addressed as we wanted to merge early to unblock other contributors. This PR addresses them.

Changes proposed in this pull request

A bunch of tests are still skipped - they are to do with the logic related to edit cover (still being finalized) and expire cover (to be implemented using buckets).

Test plan

Ran all tests.

Checklist

  • Rebased the base branch
  • Attached corresponding Github issue
  • Prefixed the name with the type of change (i.e. feat, chore, test)
  • Performed a self-review of my own code
  • Followed the style guidelines of this project
  • Made corresponding changes to the documentation
  • Didn't generate new warnings
  • Didn't generate failures on existing tests
  • Added tests that prove my fix is effective or that my feature works

Review

When reviewing a PR, please indicate intention in comments using the following emojis:

  • 🍰 = Nice to have but not essential.
  • 💡 = Suggestion or a comment based on personal opinion
  • 🔨 = I believe this should be changed.
  • 🤔 = I don’t understand something, do you mind giving me more context?
  • 🚀 = Feedback

@roxdanila roxdanila force-pushed the test/fix-tests-after-allocate-and-edit branch 2 times, most recently from 2aa56b1 to 387378a Compare November 29, 2022 10:57
@roxdanila roxdanila marked this pull request as ready for review November 29, 2022 11:02
@roxdanila roxdanila force-pushed the test/fix-tests-after-allocate-and-edit branch from 33f03c8 to 7e76d45 Compare November 29, 2022 12:26
}

uint coverAmountInCoverAsset = totalCoverAmountInNXM * nxmPriceInCoverAsset / ONE_NXM;
require(coverAmountInCoverAsset > 0, "Cover: Amount should be greater than 0");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this check that was missing previously. Bug found via a test.

@roxdanila roxdanila linked an issue Nov 29, 2022 that may be closed by this pull request
@roxdanila roxdanila mentioned this pull request Nov 29, 2022
@roxdanila roxdanila requested a review from MilGard91 November 29, 2022 13:18
@roxdanila roxdanila force-pushed the test/fix-tests-after-allocate-and-edit branch from 912dc06 to f124f42 Compare November 29, 2022 16:54
@roxdanila roxdanila force-pushed the test/fix-tests-after-allocate-and-edit branch from c54ab16 to c8c97ff Compare November 30, 2022 10:18
Copy link
Contributor

@danoctavian danoctavian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@roxdanila roxdanila merged commit c4b493a into nexus-v2 Nov 30, 2022
@roxdanila roxdanila deleted the test/fix-tests-after-allocate-and-edit branch November 30, 2022 10:43
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.

Edit cover changes
2 participants