tring = "0" + string;
        return string;
    }

    async function satsToDollars(sats) {
        if (sats >= 100000000) sats = sats * 10;
        let bitcoin_price = sessionStorage["bitcoin_price"];
        let value_in_dollars = Number(String(sats).padStart(8, "0").slice(0, -9) + "." + String(sats).padStart(8, "0").slice(-9)) * bitcoin_price;
        return value_in_dollars;
    }

    function modalVanish() {
        $(".black-bg").style.display = "none";
        $(".modal").style.display = "none";
  