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

Adherence to Best Practices #62

Merged
merged 15 commits into from Apr 28, 2023
Merged

Adherence to Best Practices #62

merged 15 commits into from Apr 28, 2023

Conversation

amarinkovic
Copy link
Member

@amarinkovic amarinkovic commented Apr 26, 2023

Apply recommended best practices, as per Quantstamp suggestion.

@amarinkovic amarinkovic marked this pull request as ready for review April 28, 2023 12:15
@amarinkovic amarinkovic merged commit e9c8eca into audit-fixes Apr 28, 2023
5 checks passed
@amarinkovic amarinkovic deleted the best_practices branch April 28, 2023 12:18
amarinkovic added a commit that referenced this pull request May 8, 2023
* fix: normalize dividends withdrawn so far, for both parties involved when transferring entity tokens [NAY-2]

* fix: double-counting of dividend payouts [NAY-3]

* fix: incorrect accounting of sysAdmins when reassigning system role [NAY-6]

* fix: fuzzer config

* fix: Invalid Entity Update [NAY-7]

* chore: remove unnecessary test file T02Helpers.sol

* fix: Id Aliasing Between Addresses and Associated Objectid [NAY-8]

* chore: delete T01SmartDeploymentV1.t.sol

* fix: Insufficient Contract Pausability [NAY-12]

* fix: Adding Wrapped Participation Tokens as Supported External [NAY-14]

* fix: phased diamond cut now keccak256 hashes all 3 diamond cut params to check if an upgrade is valid [NAY-1]

* fix: premium amount overspending [NAY-4]

* fix: Missing Input Validation (#61) [NAY-9]

* fix: Insufficient Contract Pausability [NAY-12]

* fix: Adding Wrapped Participation Tokens as Supported External [NAY-14]

* fix(6): trading commission total BP

* fix(3): stakeholders arrays are sized properly

* fix(8): validate upgrade expiration period updates

* fix(9): validate upgrade cancellation

* fix(10): validate token name is not empty

* fix: formatting

* fix(5): minimum policy coverage time

---------

Co-authored-by: Kevin Park <kevin@fruitful.gg>

* fix: Allowance Double-Spend Exploit [NAY-16]

* fix: owner and system admin are now mutually exclusive. removed optimistic matching in the match making algorithm. updated Nayms diamond and deployment scripts. [NAY-11]

* fix: improve observability [NAY-22]

* Adherence to Best Practices (#62)

* fix: unused imports, typos and redundant code

* fix: commission arrays length limit

* fix: index address in events

* fix: reuse variables

* fix: remove redundant struct

* chore: remove LibMeta.sol

* refactor: LibDiamond.initializeDiamondCut() throws error InitializationFunctionReverted instead of require msg

* docs: remove todo comments in code

* docs: improve explanation of UserFacet

* doc: fix some missing natspec comments

* doc: fix some typos

* fix: rename role updated event

* doc: clarify premium commission basis points

* fix: comment typos

* fix: policy event test

---------

Co-authored-by: Kevin Park <kevin@fruitful.gg>

* test: fix changePrank fails with no prank in progress to stop

* fix: duplicate function selector, missing externalWithdrawFromEntity in lock and _unlockAllFundTransferFunctions() amendment [NAY-12]

* fix: lock and unlockFunction() now emit FunctionsLocked and FunctionsUnlocked amendment [NAY-22]

* fix: remove _addressToBytes32(), _bytes32ToString(), unused lib imports, add docs to _stringToBytes32() [NAY-bonus1]

* chore: update version flag to post audit

---------

Co-authored-by: Kevin Park <kevin@fruitful.gg>
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.

None yet

2 participants