This is a tricky problem, which is whether to include an e when you add -y
To tell you the truth, I can't always remember which one is which, but when I see it, I know if it is right or wrong. Here's a list of words that drop the e
ice>icy
spice>spicy
taste>tasty
BUT
price>pricey
space>spacey
smile>smiley
A general rule is that more common words drop the e, but less common words don't, but that is always difficult to know which are common and which are uncommon. When in doubt, your dictionary is your friend!