Return to site
Return to site

Mentorship Series #3

0xfirefirst - Day 2

· Mentorship

We continued the Sukukfi contest on Code4rena, and analyzed the ERC7575 vault contract.

Lesson Summary:

  • If the flows are asynchronous(step-wise), how's the price calculated? In the current scenario, after step 2(fulfilling)'s price calculation, is the price also calculated on claiming? If it's the same, what happens if a slashing occurs between these 2 steps? Will the protocol stay solvent? Play with function inputs, try multiple small deposits, splitting, etc.
  • Try spamming functions, see if variables are updated correctly every time.
  • See the initializing fn, check if inherits that needs initializing are initialized.
  • decimals() fn is not part of the EIP-20. It's not mandatory.
  • Sometimes, try/catch can revert, but it doesn't go to catch.
  • Lets say you pick a flow/step, try to remember what variables are being updated there and use this knowledge when approaching other steps/flows.

Subscribe
Previous
Mentorship Series #2
Next
Bug Deep Dive #10
 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