Closed filcap closed 1 week ago
@patidarmanoj10 when these are ready to be worked on lets talk internally to triage
Number 15 - monolithic codebase - WONTFIX
Agreed on 15. the truffle-flattener is interesting, but i think right now its too much of a change.
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.
I agree on 16.
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.
Number 8- Removed this require check for code readability only. This has no impact on cancellation because lastWithdrawTime is initialized with startTime
Number 7 - WONT FIX because this may be used by validator in import-export.
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.
@patidarmanoj10 Agree we want to save gas for successful transfer > failed transfer
Number 4 is fixed with issue #25 as both were related to same logic, PR is submitted.
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.
Severity: Low
Token balance assertions should revert the transaction(pg 13) WONT FIXUnused roots mapping in the MTNToken contract (pg 13)WONT FIXDuplicated code in multiSubWithdrawFor (pg 14)- -- WONT FIXMonolithic codebase(pg 15) -- WONT FIXUse OpenZeppelin and Notes(pg 16) -- WONT FIX