Skip to content

Commit

Permalink
fatherOfBlocks data for issue #129
Browse files Browse the repository at this point in the history
  • Loading branch information
code423n4 committed Oct 23, 2022
1 parent 78b300a commit fcf23b3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions data/fatherOfBlocks-Q.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
**HolographOperator**
- L346 - A division is made with an input, therefore it would be possible that supply is equal to zero, this would imply that a require is necessary to be able to return a message according to the exception.

- L158-188/254-269/278-294 - As the resetOperator function is auxiliary to test the code easier and the storage variables found in that function are only set in the constructor, they could all become immutable. Another option would be not to set them in the constructor and directly make them constant.


**enforcer/PA1D.sol**
- L110 - The PA1DInterface interface is imported, but it is never used, the import should be eliminated.

- L205-210 - The function is called isOwner() but it is approved being owner and being admin, therefore the name is somewhat confusing, since if it is admin and isOwner returns true, it is somehow incorrect.


**enforcer/HolographERC721.sol**
- L123 - The PA1DInterface contract is imported, but it is never used, the import should be eliminated.

- L524-570 - There is commented code that should be used or removed as it does not provide clarity, it only generates confusion.

- L373/378/391/395/460/473/486/491/624/628 - When we use a require and throw an exception it is important to show a message, this is important because it makes the user better understand the reason why it is reverted.


**enforcer/HolographERC20.sol**
- L114/116/119/124/125 - The ERC20Burnable, ERC20Metadata, ERC20Safer, HolographerInterface, HolographRegistryInterface contracts is imported, but it is never used, the import should be eliminated.

- L328/332/339/343/354/358/371/375/430/434/455/484/488/502/507/536/541/582/586/606/610 - When we use a require and throw an exception it is important to show a message, this is important because it makes the user better understand the reason why it is reverted.

- L288-294 - Instead of doing an if/else with return true/return false, directly return the condition.


0 comments on commit fcf23b3

Please sign in to comment.