Closed randomshinichi closed 3 years ago
Still missing the token_prices section as shown in this intended dictionary:
token_prices
initial_values = { 'pool': { 'tokens': { 'DAI': { 'weight': 20, 'denorm_weight': 10, 'balance': 10000000, 'bound': True }, 'WETH': { 'weight': 80, 'denorm_weight': 40, 'balance': 67738.636173102396002749, 'bound': True } }, 'generated_fees': 0.0, 'pool_shares': 100.0, 'swap_fee': 0.20 }, 'action_type': 'pool_creation', 'change_datetime': '2020-12-07 13:34:14', # Close value of first item from COINBASE_<token>USD_5.csv 'token_prices': { 'DAI': 1.004832, 'WETH': 596.75 }, 'spot_prices': { 'WETH': BalancerMath.calc_spot_price(token_balance_in=Decimal('67738.636173102396002749'), token_weight_in=Decimal('40'), token_balance_out=Decimal('10000000'), token_weight_out=Decimal('10'), swap_fee=Decimal('0.25')) } }
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
53
Still missing the
token_prices
section as shown in this intended dictionary: