Return to site
Return to site

Mentorship Series #23

0xfirefirst - Day 24

· Mentorship

We continued the Panoptic contest on Code4rena.

Lesson Summary:

  • There seems to be enough precision when the utilization(err) is small, because it only rounds down to 0 when err is super small
  • trapezoidal rule in the borrowRate fn - check if it works with all values/conditions
  • Check yearn exploit post-mortem
  • What if all the rates are 0? See potential edge cases with this trapezoidal rule - can't happen because of line 1841 _borrowRate
  • How are they handling elapsed == 0 in _borrowRate? - they handle precision pretty well
  • What if I spam _borrowRate? - OK
  • Call it often, don't call it often, not calling it one day, huge deposit, borrow a lot
Subscribe
Previous
Mentorship Series #22
Next
Mentorship Series #24
 Return to site
Cookie Use
We use cookies to improve browsing experience, security, and data collection. By accepting, you agree to the use of cookies for advertising and analytics. You can change your cookie settings at any time. Learn More
Accept all
Settings
Decline All
Cookie Settings
Necessary Cookies
These cookies enable core functionality such as security, network management, and accessibility. These cookies can’t be switched off.
Analytics Cookies
These cookies help us better understand how visitors interact with our website and help us discover errors.
Preferences Cookies
These cookies allow the website to remember choices you've made to provide enhanced functionality and personalization.
Save