My crazy deadline theory:
Duvall to the Brewers for RP Bryse Wilson
The Brewers could use a rental bat and their offense from the outfield is abysmal. They're trying to compete for the division championship and duvall represents a shot in the arm offensively for them. Meanwhile Bryse Wilson is a good young arm who can pitch multiple innings and would upgrade our fragile bullpen. He could even be another good opener for us. Might take some middling prospects like Kavadas or Drohan to make up the weight for Milwaukee but the core of the deal works for both sides, the Brewers have a surplus of good arms, and are desperate for offense, especially outfield offense.
Nick Yorke to the Padres for Seth Lugo
Lugo is exactly what we need. A quality arm that can go deep into games. His contract is almost exactly the same size as Duvall's, meaning that this would be a cap neutral series of moves. I believe Lugo is slightly more expensive than Duvall which makes it a good thing that we cleared some of Kike's money a few days ago. Yorke, our #5 prospect, is just about right for gaining a quality rental, and Lugo has a player option for 2024 which we may be able to parlay into a reasonable extension if we so chose. If we did extend him he'd probably move into the rotation spot being vacated by Paxton, but for this year, we'd have bothh of them.