meierjan / nxtb-tariff-interpreter

2 stars 1 forks source link

Reconsider structure of currency usage #7

Open meierjan opened 3 years ago

meierjan commented 3 years ago

Currently, the currency is stored in the rate. This does not make sense, as there might be different rates. I don't know of any tariff that is billed in different currencies. Therefore, I suggest restructuring it into a place where it states the currency only once per tariff.

We could also create a validator that validates that there can never be different currencies per tariff.