public static Coin ofBtc(BigDecimal coins) throws ArithmeticException {
        return Coin.valueOf(btcToSatoshi(coins));
    }
@Test
    public void testOfBtc() {
        assertEquals(Coin.valueOf(Long.MIN_VALUE), Coin.ofBtc(new BigDecimal("-92233720368.54775808")));
        assertEquals(ZERO, Coin.ofBtc(BigDecimal.ZERO));
        assertEquals(COIN, Coin.ofBtc(BigDecimal.ONE));
        assertEquals(Coin.valueOf(Long.MAX_VALUE), Coin.ofBtc(new BigDecimal("92233720368.54775807")));
    }