|
@@ -299,14 +299,7 @@ def buy_banking_license():
|
|
|
success = 'data' in response
|
|
|
if success:
|
|
|
print('Success. You are now a bank.')
|
|
|
- variables = _global_variables()
|
|
|
- marginal_lending_facility = variables['marginal_lending_facility']
|
|
|
- cash_reserve_free_amount = variables['cash_reserve_free_amount']
|
|
|
- cash_reserve_ratio = variables['cash_reserve_ratio']
|
|
|
- print(f'You are now allowed to borrow money from the central bank at the marginal '
|
|
|
- f'lending facility (currently {marginal_lending_facility * 100}%).')
|
|
|
- print(f'For every {CURRENCY_NAME} above {cash_reserve_free_amount} you have to '
|
|
|
- f'deposit a cash reserve of {cash_reserve_ratio * 100}% at the central bank.')
|
|
|
+ summarize_banking_rules()
|
|
|
# print('Remember that the goal is to be as rich as possible, not to be richer than other traders!')
|
|
|
else:
|
|
|
if 'error' in response:
|
|
@@ -315,6 +308,17 @@ def buy_banking_license():
|
|
|
print('Banking license application access failed.')
|
|
|
|
|
|
|
|
|
+def summarize_banking_rules():
|
|
|
+ variables = _global_variables()
|
|
|
+ marginal_lending_facility = variables['marginal_lending_facility']
|
|
|
+ cash_reserve_free_amount = variables['cash_reserve_free_amount']
|
|
|
+ cash_reserve_ratio = variables['cash_reserve_ratio']
|
|
|
+ print(f'AS a bank, you are now allowed to borrow money from the central bank at the marginal '
|
|
|
+ f'lending facility (currently {marginal_lending_facility * 100}%).')
|
|
|
+ print(f'For every {CURRENCY_NAME} above {cash_reserve_free_amount} banks have to '
|
|
|
+ f'deposit a cash reserve of {cash_reserve_ratio * 100}% at the central bank.')
|
|
|
+
|
|
|
+
|
|
|
def _global_variables():
|
|
|
return client_request('global_variables')
|
|
|
|