to be ready to go and anticipate with our suppliers and and i think that provides some really fundamental and strong growth for the next you know three to five years great thanks for that and my follow-up is just on the dgd results in the quarter you know the the margin was extremely strong um i'm wondering if there were any kind of abnormal benefits in the quarter or was some of the strength due to maybe selling to markets outside of California, like the Pacific Northwest, British Columbia, Europe, just any more color on what drove that really strong number? Thanks.
Yeah. So, you know, we announced the 51 million of IEPA tariffs. So that's part of it. But yeah, there had more to do with it than that. I think, you know, I just say we do well, whether it's at DGD or in Darling, we do well in volatile markets. I think our supply chain is extremely well positioned to take advantage of selling to the optimal market from buying the lowest cost feedstock on a CI score adjusted basis and take advantage of when to price the different elements that go into a renewable diesel product. That volatility, it generally works in our favor. It worked in our favor, you know, in the second quarter, for sure. I think as the market stabilizes, you know, more like we are now, you know, we expect a margin environment for our business to look more like the spot market, which is very healthy. But as you point out, $2.25 a gallon average for the quarter and second quarter, that was on average higher than what we saw in the spot market environment. And that's just DGD taking advantage of the of volatility and run on a very solid supply chain. Thanks for that.
Operator
Our last question comes from the line of Carla Casella with JPMorgan. Carla, your line is now open. Thank you for taking the question.
In the past, you've talked about looking to get to investment grade, and I'm just wondering if there's any update in terms of your leverage targets or thoughts about a potential investment grade rating.
Speaker 5
Yeah, Carla, this is Randy. When you look at it, we've got about a half billion dollar bond that's out there that's current now maturing in April. You know, clearly the cash generated this year and the revolver, we have the capability of paying that off. And then we're down to like a billion eight of unsecured debt out there as I look forward here. One maturing in 2030, I believe, and one a little after that. But yeah, essentially, we will be investment grade if we want to be. And that's, you know, as we decide that the cap structure going forward, as we, you know, look at the different options of repatriating cash to shareholders, you know, we're looking at the whole thing for Darlene right now. And, you know, investment grade is one of those things that, like we said, we want to reiterate a two and a half times leverage ratio. So, yeah, all implied with that is the investment grade rating.
Okay, great. And just kind of one quick follow-up on the tariff question. I know you're not including anything that is in that basket until it's likely, but do you have the value of what's the potential?
We have not made that public, no. Okay, great.
Operator
There are no further questions at this time. I will now turn the call back to Randall Stewie for closing remarks.
Speaker 5
Hey, thanks everybody for all your questions today. And as always, if you have additional questions, please feel free to reach out to Sue Ann. Stay safe. Have a great day. And we thank everybody for joining us today.
Operator
This concludes today's call. Thank you for attending. You may now disconnect.