code-423n4 / 2021-04-vader-findings

1 stars 0 forks source link

Some unused code #17

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

gpersoon

Vulnerability details

Impact

There is some unused / redundant code present.

Router.sol defines repayDelay but it is never used Vault.sol initializes POOLS twice, with the same value.

Proof of Concept

Router.sol: uint public repayDelay = 3600;

Vault.sol: function init(address _vader, address _usdv, address _router, ... .. POOLS = _pool; ..
POOLS = _pool;

Tools Used

Editor

Recommended Mitigation Steps

Remove redundant code

0xBrian commented 3 years ago

https://github.com/vetherasset/vaderprotocol-contracts/commit/f6b6a369f64e5ade0b7511d397d708a9a0916178