import os
import math
import shutil
from pathlib import Path

# Input is block height (integer)
# Return total number of tokens that have been mined so far (up to and including the given block)
def num_BTC(b):
    reward = 50.00
    tok = 0.00
    mined = 0

    while mined < b :
        mined = mined + 1
        tok = tok + reward
        if pow(mined, 1, 210000) == 0:   # Reward halves every 210k blocks
            reward = reward/2 

    return float(tok)
ef12459b33b45425a0ff37263a8d079ad233608f
<mask token>

<mask token>


def num_BTC(b):
    reward = 50.0
    tok = 0.0
    mined = 0
    while mined < b:
        mined = mined + 1
        tok = tok + reward
        if pow(mined, 1, 210000) == 0:
            reward = reward / 2
    return float(tok)

import os
import math
import shutil
from pathlib import Path


def num_BTC(b):
    reward = 50.0
    tok = 0.0
    mined = 0
    while mined < b:
        mined = mined + 1
        tok = tok + reward
        if pow(mined, 1, 210000) == 0:
            reward = reward / 2
    return float(tok)

import os
import math
import shutil
from pathlib import Path

# Input is block height (integer)
# Return total number of tokens that have been mined so far (up to and including the given block)
def num_BTC(b):
    reward = 50.00
    tok = 0.00
    mined = 0

    while mined < b :
        mined = mined + 1
        tok = tok + reward
        if pow(mined, 1, 210000) == 0:   # Reward halves every 210k blocks
            reward = reward/2 

    return float(tok)