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

QA Report #121

Open
code423n4 opened this issue Mar 19, 2022 · 1 comment
Open

QA Report #121

code423n4 opened this issue Mar 19, 2022 · 1 comment
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax

Comments

@code423n4
Copy link
Contributor

  1. Clarify costpershare comment

https://github.com/code-423n4/2022-03-prepo/blob/f63584133a0329781609e3f14c3004c1ca293e71/contracts/core/Collateral.sol#L85-L88

this implementation was use for whoever read the comment was clear, cause this was nothing to impacted with code but to make it more neat instead.

             /**
             * # of shares owed = amount deposited / cost per share, cost per
             * share = total supply / total value.
             */

and it can be changed into :

              /**
             * # shares owed = amount deposited / cost per share, 
             * cost per share = total supply / total value.
             */
  1. Unused ReentrancyGuard in TokenShortToken.sol

https://github.com/code-423n4/2022-03-prepo/blob/main/contracts/core/LongShortToken.sol

that ReentrancyGuard is unused due to doesnt set in contract either so it can be removed or use them instead.

@code423n4 code423n4 added QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax bug Something isn't working labels Mar 19, 2022
code423n4 added a commit that referenced this issue Mar 19, 2022
@ramenforbreakfast
Copy link
Collaborator

  1. is a duplicate of QA Report #40
  2. import LongShortToken is a duplicate of Gas Optimizations #5

@ramenforbreakfast ramenforbreakfast added the duplicate This issue or pull request already exists label Mar 24, 2022
@gzeoneth gzeoneth removed the duplicate This issue or pull request already exists label Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Projects
None yet
Development

No branches or pull requests

3 participants