FeeConfig.startingFee, and the fee descent will start in the block that the auction concludes in.
Initialization
ClankerSniperAuctionV2, unlike V0, requires configuration data to be passed in. The setup matches that of the ClankerMevDescendingFees module:Sniper Interactions
The interface to pass in swap data changed between ClankerHook and ClankerHookV2. For a swap’shookData to reach the Mev module, it needs to be encoded in the PoolSwapData struct:
Warning on Approving ClankerSniperAuctionV2 to spend WETH
We do NOT recommend approving ClankerSniperAuctionV2 to spend WETH unless you have an auxiliary contract handling the approval that reverts if the bid is not won. For example, if an EOA approves the auction contract to spend WETH, anyone can spend the EOA’s WETH by passing in the EOA’s address as the auctionData parameter to the ClankerSniperAuctionV0::beforeSwap function. We’ve provided the ClankerSniperUtilV2 contract as an example of how to handle this.