Block: 56

Author: AuditProfile

AuditProfile

Security blog

Price from external

#chainlink

#price

Hint

You should be familiar with Chainlink heartbeats to solve this challenge.

Answer

In particular, in the getTokenPrice() function the value of 4 hours - FOUR_HOUR_TIMEOUT for all heartbeats in general is fixed. However, Chainlink gives these values for different tokens differently. For example, for stablecoins, this value is 24 hours. So the function will actually not work 20 hours a day and will return 0.

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

loader