code-423n4 / 2021-12-yetifinance-findings

0 stars 0 forks source link

long revert messages #249

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

There are many error messages that are quite long, e.g.:

  "YUSD: Cannot transfer tokens directly to the StabilityPool, TroveManager or BorrowerOps"

Shortening revert strings to fit in 32 bytes will decrease deployment time gas and will decrease runtime gas when the revert condition has been met.

kingyetifinance commented 2 years ago

Duplicate #66