code-423n4 / 2022-02-jpyc-findings

1 stars 0 forks source link

QA Report #30

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago
  1. Use a buggy solidity version with immutables. The contract use immutable, and this solidity version defined in the pragma has some issues with them, as you can see here.

Affected source:

  1. Unsecure Ownership Transfer The modification process of an owner is a delicate process, since the governance of our contract and therefore of the project may be at risk, for this reason it is recommended to adjust the owner’s modification logic, to a logic that allows to verify that the new owner is in fact valid and does exist. It's mandatory to create a logic of the owner’s modification where a new owner is proposed first, the owner accepts the proposal and, in this way, we make sure that there are no errors when writing the address of the new owner.

Affected source:

  1. Avoid double events and calls. If the caller call twice to the method with the same values, the state wont change but an event will be emitted.

  2. There are test code outside test folder: