autonomoussoftware / metronome

Metronome autonomous system
MIT License
14 stars 10 forks source link

Low Severity Zeppelin Issues #40

Closed filcap closed 1 week ago

filcap commented 6 years ago

Severity: Low

filcap commented 6 years ago

@patidarmanoj10 when these are ready to be worked on lets talk internally to triage

jgarzik commented 6 years ago

Number 15 - monolithic codebase - WONTFIX

filcap commented 6 years ago

Agreed on 15. the truffle-flattener is interesting, but i think right now its too much of a change.

jgarzik commented 6 years ago

WONTFIX for number 16, unless NA wishes to disagree & override my logic (your expertise trumps mine):

I'm a big fan of OpenZeppelin, and I think we used some of their code, but at this late stage, using OpenZeppelin would seem to imply -- if we're Doing It Right -- a whole new raft of audits.

filcap commented 6 years ago

I agree on 16.

patidarmanoj10 commented 6 years ago

Number 10 - WONTFIX . multiSubWithdrawFor is using If condition ( instead of require) to skip failed cases and process the transfer of remaining. Hence these 4-5 lines code looks duplicate but its not actually. If we call subWithdrawFor inside multiSubWithdrawFor then one pair fail will always fail for all.

patidarmanoj10 commented 6 years ago

Number 8- Removed this require check for code readability only. This has no impact on cancellation because lastWithdrawTime is initialized with startTime

patidarmanoj10 commented 6 years ago

Number 7 - WONT FIX because this may be used by validator in import-export.

patidarmanoj10 commented 6 years ago

Number 6 - WONT FIX. Other auditor suggested to remove this require check to save gas for all transfer . I agree it will be little bit extra gas for failed transaction. Execution will revert from safe math instead of first line. We need to chose whether we want to save gas for which specific scenario. Number of successful transfer will be more than failed transfer hence would prefer to save gas for success transfer.

jgarzik commented 6 years ago

@patidarmanoj10 Agree we want to save gas for successful transfer > failed transfer

rokso commented 6 years ago

Number 4 is fixed with issue #25 as both were related to same logic, PR is submitted.

rokso commented 6 years ago

Number 1- I have added one test and the error delta is very less. I did spend some time on the formula in Pricer and formula is already optimized and no further scope to optimization.