aave / aave-v3-core

This repository contains the core smart contracts of the Aave V3 protocol.

Home Page:https://aave.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double iszero seems like an identity on rayDiv?

JorgeAtPaladin opened this issue · comments

if or(iszero(b), iszero(iszero(gt(a, div(sub(not(0), div(b, 2)), RAY))))) {

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