Block: 65

Author: AuditProfile

AuditProfile

Security blog

Magic Lp agregator

#return

#arguments

Hint

It's hard to give a hint, pay attention to the arguments of the functions.

Answer

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.

Регистрация прошла успешно! Спасибо за внимание!

loader