Line a 9×5 loaf pan with foil and set it aside.
In a small saucepan over low heat, melt the coconut oil. Then, stir in the remaining ingredients (except the marshmallows and crushed candy canes).
Once the mixture is smooth with no lumps, turn off the heat and let it cool to room temperature.
Add the marshmallows to the cooled mixture, then transfer everything to the lined loaf pan.
Sprinkle the crushed candy canes on top.
Place in the fridge for about 2 hours until firm, then slice into 12 squares.
Store the fudge in an airtight container in the refrigerator for up to one week. Enjoy your delicious homemade fudge!