15,000 USDC
View results
Submission Details
Severity: gas
Valid

Gas Optimizations

Gas01: <x> += <y> costs more gas than <x> = <x> + <y> for state variables-same for <x> -= <y> (5 instances)
affected lines: L155, L198, L276, L289, L360
Gas02: for loop length should be cached instead of reading from storage every time. ++i/i++ should be unchecked{++i}/unchecked{i++} when it is not possible for them to overflow (2 instances)
affected lines: L114-L121, L357-L361
Gas03: Public function can be marked as external (9 instances)
affected lines: L149-150, L183-L184, L197, L212, L344, L354, L365, DecentralizedStableCoin L46
Gas04: Complete transfer of token before emitting an event (2 instances)
affected lines: L156-L159, L290-L294
Gas05: Functions guaranteed to revert when called by normal users can be marked payable (2 instances)
affected lines: DecentralizedStableCoin L46, L57
Gas06: Repetitive function calls in a block should be in line assembly (2 instances)
affected lines: L237-L259, L360

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.