Games can no longer use virtual currencies to disguise the price of in-game purchases in the European Union
Games can no longer use virtual currencies to disguise the price of in-game purchases in the European Union

Commission and national authorities take action to protect children from harmful practices in video games

In-game purchases should display the exact cost in the local currency. In-game currency should be completely banned.
There are many many examples of predatory uses of in game currencies, but here are some big reasons devs use them besides being scummy.
Transparency is good, but let's not throw the baby out with the bathwater.
What baby? In game purchases? That's not a baby, that's a big shit somebody took in your tub. If transparency is too hard to implement, publishers should feel free to get rid of them altogether.
They can give items for free instead. Without currency they cant give you 90% of what you need and force you to overpay for extra.
A variable for a value is trivial. It already works perfectly fine in the store!
Sure sales on mobile... (sounds like Apple and Google would get some needed pressure to improve this area) but thats another problem, none of these purchases should be expensive enough to even warrant needing a sale in the first place.
The real reason they want in game currency is not any of these, it's for the deception factor, avoiding refunds, upselling etc
But this is how gift codes work, no? You're not giving money away directly. Just give a voucher for a real currency if you want to gift users.
Also in some games players can trade the currency
Depends what counts as an in game currency, does a game where you earn currency in-game and spend it in-game count as an in-game currency? What about if players can trade it?
We are talking about anything that has real monetary value, if you cannot obtain it through real money, then it's not in the discussion. Of course it opens a whole new problem, where they could sell "boosts" to earning virtual currency etc. So that would have to be taken into account with the legislation.