Move valid coins & currencies to separate functions.
Merge pull request #3 from gaetan-petit/master

Move valid coins & currencies to separate functions.