Moonwell

Moonwell
DeFiFoundry
15,000 USDC
View results
Submission Details
Severity: low
Invalid

`addresses.addAddress` should specify the address is contract or EOA, by default it is EOA.

Vulnerability Details

The contract implementation of addresses.addAddress should specify the address is contract or EOA, by default it is EOA.

The correct implementation of addAddress is FPS shown here:

addresses.addAddress("VAULT", address(timelockVault), true);

This shows the inconsistency of the implementation of the proposal as defined by the FPS framework.

Impact

Smart contract addresses are by default set as EOA if we don't specify the third bool variable _isContract which will lead of internal functional problem as EOA and smart contract don't work same.

Tools Used

Manual Review

Recommendations

Use latest version of FPS library and specify the _isContract bool while adding the addresses.

Updates

Lead Judging Commences

0xnevi Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Other
rustguy Submitter
about 1 year ago
0xnevi Lead Judge
about 1 year ago
0xnevi Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.