Skip to content

Assert Invariants#51

Merged
Joeysantoro merged 1 commit intoPOZ-Fixesfrom
POZ-Assert-Invariants
Feb 7, 2021
Merged

Assert Invariants#51
Joeysantoro merged 1 commit intoPOZ-Fixesfrom
POZ-Assert-Invariants

Conversation

@Joeysantoro
Copy link
Contributor

Fixes OZ audit issue N04

In the report they cited methods in Pool.sol which now use SafeMath so no longer "require" on an invariant.

I re-ran solidity coverage and checked branch coverage to find require statements I hadn't hit in tests to see if any could be an invariant. I added tests for two uncovered branches that were not invariants and found only one invariant in GenesisGroup

@Joeysantoro Joeysantoro added the OZ Fix New A PR dedicated to fix an OpenZeppelin issue label Feb 7, 2021
@Joeysantoro Joeysantoro merged commit 4e2de84 into POZ-Fixes Feb 7, 2021
Joeysantoro pushed a commit that referenced this pull request Jul 19, 2021
@xklob xklob deleted the POZ-Assert-Invariants branch September 19, 2021 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OZ Fix New A PR dedicated to fix an OpenZeppelin issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments