aave / aave-v3-core

This repository contains the core smart contracts of the Aave V3 protocol.
https://aave.com
Other
876 stars 572 forks source link

Double iszero seems like an identity on rayDiv? #900

Open JorgeAtPaladin opened 1 year ago

JorgeAtPaladin commented 1 year ago

https://github.com/aave/aave-v3-core/blob/27a6d5c83560694210849d4abf09a09dec8da388/contracts/protocol/libraries/math/WadRayMath.sol#L86

Hey all, diving into some of these libs for a client. Why is a double iszero done here? Seems like its kinda an identity function if the input is already 0 or 1?

Cheers, Marco