How do you create discount functionality that supports multiple currencies?

I have created a discount that follows the documentation and gives 10% off for orders with a minimum subtotal of over 100 USD. This works.

https://shopify.dev/docs/apps/selling-strategies/discounts/discount-function-examples/order-minimum-subtotal

Next, change the store currency from USD to JPY.

If the exchange rate is 150 JPY/USD, the minimum subtotal must be 10% off for orders exceeding 15,000 JPY.

However, the 10% discount will be applied to orders with a minimum subtotal of more than 100 JPY.

Do I have to do currency conversion in the Discount Function logic to create a multi-currency discount?

The Input.presentmentCurrencyRate is a ratio from the store’s currency to the local currency.

Line item price / presentmentCurrencyRate = Line item price in store currency

15,000 JPY * presentmentCurrencyRate = Amount in the customer’s currency