checking attribute "currency" instead of "code" for currency lookup

Currencies.for_code implementation does not properly pick the currency object, as it's using the `code` attribute for identification, which does not exist.