Skip to content

Commit

Permalink
fixes broken POL test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewcasale committed Sep 29, 2023
1 parent 1734022 commit 8678bd3
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
96 changes: 48 additions & 48 deletions resources/NBTest/NBTest_033_Pools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"id": "6580a545",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.034785Z",
"start_time": "2023-09-18T11:40:57.609561Z"
"end_time": "2023-09-29T15:32:34.656653Z",
"start_time": "2023-09-29T15:32:33.634074Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ConstantProductCurve v3.1 (25/Aug/2023)\n",
"ConstantProductCurve v3.3 (21/Sep/2023)\n",
"CarbonBot v3-b2.2 (20/June/2023)\n",
"UniswapV2Pool v0.0.1 (2023-07-03)\n",
"UniswapV3Pool v0.0.1 (2023-07-03)\n",
Expand Down Expand Up @@ -60,8 +60,8 @@
"id": "14b3c378",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.037278Z",
"start_time": "2023-09-18T11:41:01.033932Z"
"end_time": "2023-09-29T15:32:34.656819Z",
"start_time": "2023-09-29T15:32:34.654801Z"
}
},
"outputs": [],
Expand All @@ -84,8 +84,8 @@
"id": "4bf9ea77",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.039783Z",
"start_time": "2023-09-18T11:41:01.036744Z"
"end_time": "2023-09-29T15:32:34.661485Z",
"start_time": "2023-09-29T15:32:34.658406Z"
}
},
"outputs": [],
Expand All @@ -98,9 +98,7 @@
{
"cell_type": "markdown",
"id": "5e07f1229048cd9c",
"metadata": {
"collapsed": false
},
"metadata": {},
"source": [
"## test_bancor_v2_pool"
]
Expand All @@ -110,10 +108,9 @@
"execution_count": 4,
"id": "4dfe57c17c271eec",
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.042227Z",
"start_time": "2023-09-18T11:41:01.040179Z"
"end_time": "2023-09-29T15:32:34.664765Z",
"start_time": "2023-09-29T15:32:34.662140Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -141,8 +138,8 @@
"id": "9d4692f5",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.045277Z",
"start_time": "2023-09-18T11:41:01.043826Z"
"end_time": "2023-09-29T15:32:34.668935Z",
"start_time": "2023-09-29T15:32:34.663794Z"
}
},
"outputs": [],
Expand All @@ -166,8 +163,8 @@
"id": "cb1ac3fd",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.048040Z",
"start_time": "2023-09-18T11:41:01.046377Z"
"end_time": "2023-09-29T15:32:34.673916Z",
"start_time": "2023-09-29T15:32:34.668877Z"
}
},
"outputs": [],
Expand All @@ -192,14 +189,23 @@
"id": "d69d49a3",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.053769Z",
"start_time": "2023-09-18T11:41:01.050776Z"
"end_time": "2023-09-29T15:32:34.687927Z",
"start_time": "2023-09-29T15:32:34.674043Z"
}
},
"outputs": [
{
"data": {
"text/plain": "{'cid': '0x',\n 'fee': '0.000',\n 'fee_float': 0.0,\n 'exchange_name': 'bancor_v3',\n 'tkn0_balance': 2981332708522538339515032,\n 'tkn1_balance': 2981332708522538339515032,\n 'tkn0_symbol': 'tkn0',\n 'tkn1_symbol': 'tkn1'}"
"text/plain": [
"{'cid': '0x',\n",
" 'fee': '0.000',\n",
" 'fee_float': 0.0,\n",
" 'exchange_name': 'bancor_v3',\n",
" 'tkn0_balance': 2981332708522538339515032,\n",
" 'tkn1_balance': 2981332708522538339515032,\n",
" 'tkn0_symbol': 'tkn0',\n",
" 'tkn1_symbol': 'tkn1'}"
]
},
"execution_count": 7,
"metadata": {},
Expand All @@ -225,8 +231,8 @@
"id": "4e331537",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.082592Z",
"start_time": "2023-09-18T11:41:01.054836Z"
"end_time": "2023-09-29T15:32:34.688263Z",
"start_time": "2023-09-29T15:32:34.678092Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -266,8 +272,8 @@
"id": "6a9b1034",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.086790Z",
"start_time": "2023-09-18T11:41:01.059096Z"
"end_time": "2023-09-29T15:32:34.688310Z",
"start_time": "2023-09-29T15:32:34.682505Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -295,30 +301,26 @@
},
{
"cell_type": "markdown",
"source": [],
"metadata": {
"collapsed": false
},
"id": "b23eb1bda7161783"
"id": "b23eb1bda7161783",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"id": "46617bc4b132b353",
"metadata": {},
"source": [
"## test_bancor_pol_token_traded_event"
],
"metadata": {
"collapsed": false
},
"id": "46617bc4b132b353"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "fb389643",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:01.086880Z",
"start_time": "2023-09-18T11:41:01.061916Z"
"end_time": "2023-09-29T15:32:34.688684Z",
"start_time": "2023-09-29T15:32:34.686925Z"
}
},
"outputs": [],
Expand All @@ -337,27 +339,25 @@
" 'tkn0_symbol': 'tkn0', \n",
" 'tkn1_symbol': 'tkn1',}\n",
")\n",
"assert (bancor_pol_pool.state['tkn0_balance'] == 10)"
"assert (bancor_pol_pool.state['tkn0_balance'] == 10 + setup_data['bancor_pol_token_traded_event']['args']['amount'])"
]
},
{
"cell_type": "markdown",
"id": "6d14cfb18d534c28",
"metadata": {},
"source": [
"## test_bancor_pol_trading_enabled_event"
],
"metadata": {
"collapsed": false
},
"id": "6d14cfb18d534c28"
]
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 11,
"id": "afb5a056",
"metadata": {
"ExecuteTime": {
"end_time": "2023-09-18T11:41:45.060094Z",
"start_time": "2023-09-18T11:41:45.053325Z"
"end_time": "2023-09-29T15:32:34.694720Z",
"start_time": "2023-09-29T15:32:34.689949Z"
}
},
"outputs": [],
Expand All @@ -382,9 +382,9 @@
"formats": "ipynb,py:light"
},
"kernelspec": {
"name": "fastlane-bot-38",
"display_name": "fastlane-bot-38",
"language": "python",
"display_name": "fastlane-bot-38"
"name": "fastlane-bot-38"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -396,7 +396,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.1"
"version": "3.8.17"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion resources/NBTest/NBTest_033_Pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
'tkn0_symbol': 'tkn0',
'tkn1_symbol': 'tkn1',}
)
assert (bancor_pol_pool.state['tkn0_balance'] == 10)
assert (bancor_pol_pool.state['tkn0_balance'] == 10 + setup_data['bancor_pol_token_traded_event']['args']['amount'])

# ## test_bancor_pol_trading_enabled_event

Expand Down

0 comments on commit 8678bd3

Please sign in to comment.