Skip to content

Commit

Permalink
fourth pass
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Oct 30, 2023
1 parent e937124 commit 8ccfe6f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions review_aditya.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**General**
- Improve natspec documentation to capture input params and return value
- Nitpick but you could explore moving all the interfaces to it's own folder
- Nitpick but you could explore moving all the interfaces to it's

# GitcoinVerifier

Expand Down Expand Up @@ -63,4 +63,10 @@ for (uint i = 0; i < attestationsLength; ) {
- `L74`: Emit event `setSchemaUID`. Add zero check
- `L82`: Emit event `addProvider`. Add zero check
- `L90`: Emit event `createNewVersion`.
- `L146`, `L147`: Store .length as variables as use them in the for loop to save gas
- `L146`, `L147`: Store .length as variables as use them in the for loop to save gas

**High**

- `L106`: It looks like we generate 1 attestation for all the stamps. The fact that we have nested loops makes this function quite expensive. Would recommend seeing if this can be done offchain instead.
If the goal of this function is to be consumed by other contracts, I fear it might be expensive for a protocol to make this call, fetch all the stamps and then run their computation. It may exceed the block limit as the project scales
- `L167`: as opposed to hardcoding it to 256 , could we instead have a provider count variable / something else equivalent?i

0 comments on commit 8ccfe6f

Please sign in to comment.