-
Notifications
You must be signed in to change notification settings - Fork 85
Ndatta/revenue share #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Ndatta/revenue share #423
Conversation
|
|
||
|
|
||
| @pytest.mark.asyncio | ||
| async def test_place_order_with_order_router_address( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test should also be what the rev share example showcases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what u did here should be in example/re share example not here in mutating node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just implemented a test scenario following builder_address. I have added this in reshare example as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don’t know why this is still here in mutating node, don’t copy what was done with builder code, bc the same comment applies that should be a separate example, it doesn’t really mutate the node client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's not resolved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A separate example is created in example/revenue_share_example.py file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, moved this test code to separate test file.
|
|
||
|
|
||
| @pytest.mark.asyncio | ||
| async def test_place_order_with_order_router_address( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don’t know why this is still here in mutating node, don’t copy what was done with builder code, bc the same comment applies that should be a separate example, it doesn’t really mutate the node client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
82eabe9 to
bec461a
Compare
| market = Market( | ||
| (await indexer.markets.get_perpetual_markets(MARKET_ID))["markets"][ | ||
| MARKET_ID | ||
| ] | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a check to validate if market exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These checks are done in the test code instead of example code.
|
|
||
|
|
||
| @pytest.mark.asyncio | ||
| async def test_place_order_with_order_router_address( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's not resolved?
No description provided.