·
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?