Closed vega-paul closed 2 years ago
this is the proposal:
{
"proposal-id": "9c2ebbbba39c050df7ce3e8e2b3ac7efea542b1bf2087d4d3ebf47f2f8b616d7",
"proposal-reference": "2AFA4D3D2F",
"proposal-party": "6b5dd645c5fa7f56830ac4d49ccbfed5ac94b38a353607da5f5224f0bf680ed8",
"proposal-terms": "closing_timestamp:1651588987 enactment_timestamp:1651588989 validation_timestamp:1651588977 new_market:{changes:{instrument:{name:\"Futures System-Tests Market\" code:\"CRYPTO:VEGA CORE SYS TEST\" future:{settlement_asset:\"d82b84a1cdc5e68433b31ec35fb68d982669b6104e0dffedca748748f744b31a\" quote_name:\"USD\" oracle_spec_for_settlement_price:{pub_keys:\"6b5dd645c5fa7f56830ac4d49ccbfed5ac94b38a353607da5f5224f0bf680ed8\" filters:{key:{name:\"oracle.test.settlement\" type:TYPE_INTEGER} conditions:{operator:OPERATOR_GREATER_THAN_OR_EQUAL value:\"0\"}}} oracle_spec_for_trading_termination:{pub_keys:\"6b5dd645c5fa7f56830ac4d49ccbfed5ac94b38a353607da5f5224f0bf680ed8\" filters:{key:{name:\"vegaprotocol.builtin.timestamp\" type:TYPE_TIMESTAMP} conditions:{operator:OPERATOR_GREATER_THAN_OR_EQUAL value:\"1651587958\"}}} oracle_spec_binding:{settlement_price_property:\"oracle.test.settlement\" trading_termination_property:\"vegaprotocol.builtin.timestamp\"} settlement_price_decimals:5}} decimal_places:5 metadata:\"asset_class:fx/crypto\" metadata:\"product:futures\" log_normal:{risk_aversion_parameter:0.001 tau:0.00011407711613050422 params:{r:0.016 sigma:1.5}} position_decimal_places:5} liquidity_commitment:{commitment_amount:\"3905000000000000000000000\" fee:\"0.3\" sells:{reference:PEGGED_REFERENCE_BEST_ASK proportion:13 offset:\"100000\"} buys:{reference:PEGGED_REFERENCE_BEST_BID proportion:2 offset:\"100000\"} reference:\"B52E111497\"}}"
}
blocking all tests with use a termination dts
Strangely, there's no trace of the update market proposal in the logs.
"proposal-terms": "closing_timestamp:1651588987 enactment_timestamp:1651588989
With the oracle setting the trading terminated timestamp to 1651598980
, 9 seconds before the enactment timestamp just doesn't make all that much sense to me
@vega-paul , In order to be fully investigate the bug, can you please provide both full proposals - for creating and updating; as well as logs that contain the market ID, because the current log file mentioned in the slack discussion does not contain it. Since the issue is a few months old already, it will be helpful to run it again in order to have the correct files lines, so we can trace the path (currently there are changes in the files and the places mentioned in the logs do not match). Thank you!
This submission on an enacted continuous market updates the oracle term condition to be 10s in the future. When we reach the time core throws a panic.
Enacted market
Logs: