Auction.sol#initialize()
Use msg.sender rather than factory_ parameter can save gas
#126
Labels
Auction.sol#initialize()
Use msg.sender rather than factory_ parameter can save gas
#126
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-12-defiprotocol/blob/205d3766044171e325df6a8bf2e79b37856eece1/contracts/contracts/Auction.sol#L49-L57
Auction.sol#initialize()
is using the factory_ parameter as the value offactory
, whileBasket.sol#initialize()
usesmsg.sender
.https://github.com/code-423n4/2021-12-defiprotocol/blob/205d3766044171e325df6a8bf2e79b37856eece1/contracts/contracts/Basket.sol#L44-L61
Consider changing to
msg.sender
and removing thefactory_
parameter for the purpose of consistency and gas saving.The text was updated successfully, but these errors were encountered: