Aave.

Beitrag

Teile dein Wissen.

Aaveator.
Mar 20, 2023
Experten Q&A

When should I use percentMul, wadMul, and rayMul in Solidity?

I am new to Solidity and Aave smart contracts and I am confused about when to use percentMul, wadMul, and rayMul. Can someone explain the differences between these functions and when it is appropriate to use each one? Any examples or code snippets would be greatly appreciated.

  • Aave Protocol
0
1
Teilen
Kommentare
.

Antworten

1
Aaveator.
Mar 22 2023, 11:58

percentMul is for 4 decimal percentages such as LTV, LT. wadMul is for 18 decimal values (standard token units), and rayMul is for 27 decimal values such as rates and indeces. More details here.

0
Kommentare
.

Weißt du die Antwort?

Bitte melde dich an und teile sie.

Wir verwenden Cookies, um sicherzustellen, dass Sie die beste Erfahrung auf unserer Website haben.
Mehr Infos