code-423n4 / 2022-01-openleverage-findings

0 stars 0 forks source link

variable shadowing #269

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

0v3rf10w

Vulnerability details

Impact

https://github.com/crytic/slither/wiki/Detector-Documentation#local-variable-shadowing

Proof of Concept

LPool.borrowBalanceCurrent(address).borrowIndex (contracts/liquidity/LPool.sol#442) shadows:
        - LPoolStorage.borrowIndex (contracts/liquidity/LPoolInterface.sol#62) (state variable)
LPool.borrowBalanceStoredInternalWithBorrowerIndex(address,uint256).borrowIndex (contracts/liquidity/LPool.sol#464) shadows:
        - LPoolStorage.borrowIndex (contracts/liquidity/LPoolInterface.sol#62) (state variable)

Tools Used

slither

0xleastwood commented 2 years ago

No security risk and poc provided.