·
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