Turkey gave Russia some kind of acceptable security guarantee…prob related to inspecting ships for illicit weapons smuggling.
Turkey gets most of the grain so had a big stake in resolving the problem caused when Ukes and their handlers used the humanitarian corridor deal to mask an attack on Crimea. An attack that left Erdogan with egg on his face.
I'm pretty sure the Admiral Makarov got the worst end of the deal. :-)
The guarantee Erdogan probably gave putin was that if the latter touched one of the grain ships, Turkey would go from neutral to NATO ally for the remainder of the war.
In what way did the humanitarian corridor deal mask an attack on Crimea? Crimea is fair game to the Ukrainians.