2

I am implementing Chainlink in my contract. Should I request the decimals() function periodically, or decimals are static, so I don't have to worry about any decimals change in a specific contract.

drab
  • 245
  • 2
  • 8

1 Answers1

5

It stays the same, it will not change. The only thing to note is that all pairs have 8 decimals unless it's an ETH pair.

ie: ETH/USD has 8 decimals, and AAVE/ETH will have 18, since the second currency in the pair is ETH.

Patrick Collins
  • 11,186
  • 5
  • 44
  • 97