Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/b/o/BoottleXCP-HEAD/counterpartyws.py   BoottleXCP(Download)
                fee_required = 0
                fee_fraction_provided = util.devise(db, fee_fraction_provided, 'fraction', 'input')
                fee_provided = round(D(fee_fraction_provided) * D(give_quantity) * D(config.UNIT))
                if fee_provided < config.MIN_FEE:
                    raise Exception('Fee provided less than minimum necessary for acceptance in a block.')
            elif get_asset == 'BTC':
                fee_provided = config.MIN_FEE
                fee_fraction_required = util.devise(db, fee_fraction_required, 'fraction', 'input')
                fee_required = round(D(fee_fraction_required) * D(get_quantity) * D(config.UNIT))

src/b/o/BoottleXCP-HEAD/helpers.py   BoottleXCP(Download)
def S(value):
    return int(D(value)*config.UNIT)
 
 
class DecimalEncoder(json.JSONEncoder):