<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def truncate_to(value: Decimal, currency: str) -> Decimal: """Truncates a value to the number of decimals corresponding to the currency"""

    decimal_places = DECIMALS.get(currency.upper(), 2)
    return truncate(value, decimal_places)