The following riddle was inspired by what is referred to as "Riley Puzzles / Riddles" (example).
My prefix is a formula,
My suffix being shared.
My infix starts a warm colour,
Though cast away the heat declared.
618 is the number when,
You join my elements;
Find them in a table, then,
My prefix is a consequence.
What am I?
Hint / Bonus Puzzle:
My suffix is the past,
Of what is mostly done to me.
When hot, I will not last;
I must be in a low degree.
As a flavour, I am classed;
Unless there be an allergy.
Dessert or snacks are of my vast,
A purple wear from _______.
Other inspirations include this riddle and this one, too.
Also, I have decided that if you solve for the missing (blank) word in the bonus puzzle, I will award you a $50$ rep bounty (just because I can). However, I will have to wait two days from now to award the bounty (and I think an extra day or two if I first accept the answer).