#return
#arguments
It's hard to give a hint, pay attention to the arguments of the functions.
Pay attention to the _getReserves() function, which simply gets values from another function in the pair.getReserves contract. The conditions for the returned values are not correctly specified here: either there is no return, or returns does not contain the names of variables to be returned. Thus, all functions that will call it will get 0. Consequently, it will violate any calculations that use pairReserves data.
by RareSkills
by Jeiwan
by RareSkills
by RareSkills
by Andreas M. Antonopoulos, Gavin Wood
by Micah Dameron
Compare execution layer differences between chains
Dive deep into the storage of any contract