Return to site
Return to site

Mentorship Series #12

0xfirefirst - Day 11

· Mentorship

We continued the Mento V3 contest on Cantina.

Lesson Summary:

  • Whenever you see a division by a variable, you need to make sure it will never divide by zero(0);
  • Price of FPMM pools is taken from Oracle, not from the reserves ratio;
  • Go through FPMM.sol line-by-line;
  • Find out what's rateNumerator and rateDenominator, can they be manipulated?
  • How are the fees applied? Do they make sense? Ex. If they set the fee to 10%, are they really charging 10% or more/less?
  • Can trading limits be bypassed?( what trading limits should do is not allow you do big swaps at once). Can I make multiple small swaps that end up being a big swap?

Subscribe
Previous
Mentorship Series #11
Next
Mentorship Series #13
 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