H-1: BearnVoterManager sets incorrect address as auction's receiver
Summary:
BearnVoterManager's constructor creates an instance of Yearn's Auction contract, which is used to create dutch auctions that sell an arbitrary asset, selected by an authorized party, for HONEY.
Description:
When creating the Auction instance, the BearnVoterManager provides its own address as the receiver of the auction's proceeds. Given that the contract is only used to manage the BearnVoter contract, whose HONEY balance is manipulated by the BearnVoterManager contract, the auction's receiver address is incorrect.
Because the BearnVoterManager contract cannot manipulate its own HONEY balance, any auction proceeds will be locked within the contract.
Impact:
High. All auction proceeds are directed to the incorrect receiver, locking them perpetually.
Recommendation:
Set address(_bearnVoter) as the receiver of the auction's proceeds instead of address(this).
@@ -60,7 +60,7 @@ contract BearnVoterManager is Authorized {
AuctionFactory(0xCfA510188884F199fcC6e750764FAAbE6e56ec40)
.createNewAuction(
address(honey),
- address(this),
+ address(_bearnVoter),
styBGT.management(),
1 days,
5_000