This commit is contained in:
Andrew Clark 2020-08-14 15:42:09 -04:00
parent 60db146eb5
commit 1960d98842
10 changed files with 571 additions and 293 deletions

File diff suppressed because one or more lines are too long

View File

@ -91,6 +91,13 @@
"source": [
"trigger_grid(supply_sweep, alpha_sweep)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"These plots demonstrate the increasing conviction required to pass a proposal when either % of funds requested, effective supply, or alpha parameter is high. Blue areas represent lower required conviction, and red areas represent impossibly high conviction. This ensures that the reserve pool of funds are not depleted by a small number of large proposals.\n"
]
}
],
"metadata": {

File diff suppressed because one or more lines are too long

View File

@ -91,6 +91,13 @@
"source": [
"trigger_grid(supply_sweep, alpha_sweep)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"These plots demonstrate the increasing conviction required to pass a proposal when either % of funds requested, effective supply, or alpha parameter is high. Blue areas represent lower required conviction, and red areas represent impossibly high conviction. This ensures that the reserve pool of funds are not depleted by a small number of large proposals.\n"
]
}
],
"metadata": {

View File

@ -11,7 +11,6 @@ from cadCAD import configs
from .state_variables import state_variables
from .partial_state_update_block import partial_state_update_blocks
from .parts.sys_params import *
from .parts.utils import *
@ -49,6 +48,7 @@ def get_configs():
'''
Function to extract the configuration information for display in a notebook.
'''
sim_config,state_variables,seeds,partial_state_update_blocks

View File

@ -9,10 +9,6 @@ initial_values = {
'supply': 22392.22, # Honey total supply balance as of 8-5-2020
}
# andrew TODO
# <There alpha to their half life then rescale half life to our alpha >
# Explaing how alpha works, refine alpha notebook and v3.
# Alpha from solidity code - uint256 _decay = 9999599; // 3 days halftime. halftime_alpha = (1/2)**(1/t)
# Half life associated with solidity code alpha (in number of blocks on xDai).
@ -28,22 +24,7 @@ params = {
'min_supp': [1], #number of tokens that must be stake for a proposal to be a candidate
'base_completion_rate': [45], # expected number of days to complete a proposals.
'base_failure_rate': [180], # expected number of days until a proposal will fail
'base_engagement_rate' :[0.3], # Probability of being active on a certain day if 100% sentiment (Andrew AUDIT)
'base_engagement_rate' :[0.3], # Probability of being active on a certain day if 100% sentiment
'lowest_affinity_to_support': [0.3], # lowest affinity to required to support a proposal
}
# Pull out trigger stuff from v3 and add to notebook. Link to and trigger notebook.
# ANDREW AUDIT explanations
# add metrics - think about health matrics of the system
# fraction of supply of use for voting (effectiev supply over total supply)
# fraction of supply in the funding pool
# fraction of projects that are active vs completed vs killed
# Fraction of projects in each of the states
# fraction of money in the different states
# cadCAD model is micro founded, metrics are macro or at the insitutional level. If you are interested in insitutional dynamics, link to cryptoeconomics paper
# write what metrics are: views on a complex data structure.
# Update differential spec

View File

@ -6,7 +6,28 @@ exec_mode = ExecutionMode()
from cadCAD.engine import Executor
from cadCAD import configs
def run(input_config=configs):
# def run(input_config=configs):
# '''
# Definition:
# Run simulation
# Parameters:
# input_config: Optional way to pass in system configuration
# '''
# # Single
# exec_mode = ExecutionMode()
# local_mode_ctx = ExecutionContext(context=exec_mode.local_mode)
# simulation = Executor(exec_context=local_mode_ctx, configs=input_config)
# raw_system_events, tensor_field, sessions = simulation.execute()
# # Result System Events DataFrame
# df = pd.DataFrame(raw_system_events)
# return df
def run():
'''
Definition:
Run simulation
@ -18,7 +39,7 @@ def run(input_config=configs):
exec_mode = ExecutionMode()
local_mode_ctx = ExecutionContext(context=exec_mode.local_mode)
simulation = Executor(exec_context=local_mode_ctx, configs=input_config)
simulation = Executor(exec_context=local_mode_ctx, configs=configs)
raw_system_events, tensor_field, sessions = simulation.execute()
# Result System Events DataFrame
df = pd.DataFrame(raw_system_events)