public function toMachine(string $amount, string $swift_code = ''): int
    {
        $swift_code = empty($swift_code) ? config('currency.default_swift_code') : $swift_code;

        return (new DecimalMoneyParser(
                new ISOCurrencies()
            ))->parse(
                preg_replace('/[^0-9.-]/im', '', $amount),
                (new Currency($swift_code))
            )->getAmount();
    }