Lodestar-Finance / lodestar-protocol

Houses the code for the Lodestar Finance DeFi protocol.
BSD 3-Clause "New" or "Revised" License
10 stars 7 forks source link

Hardcoded addresses #30

Open rotcivegaf opened 1 year ago

rotcivegaf commented 1 year ago

Affected smart contract

Description

The addresses on arbitrum:

There are hardcoded and are not the ones used on the mainnet, as a example the getCompAddress should be the 0xF19547f9ED24aA66b03c3a552D181Ae334FBb8DB Also the address of the Whitelist should be the same

Attack scenario

Forgetting one or more of this three addresses could be broke the deploy/contracts, getting funds stuck in these contracts and other possible errors

Recommendation

Define this addresses in constructor