Skip to content

Conversation

@ndatta-nethermind
Copy link
Contributor

No description provided.



@pytest.mark.asyncio
async def test_place_order_with_order_router_address(
Copy link

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain?

Copy link

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

Copy link
Contributor Author

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.

Copy link

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

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

gaonip
gaonip previously approved these changes Sep 22, 2025


@pytest.mark.asyncio
async def test_place_order_with_order_router_address(
Copy link

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

varex83
varex83 previously approved these changes Sep 30, 2025
Copy link
Contributor

@varex83 varex83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +23 to +27
market = Market(
(await indexer.markets.get_perpetual_markets(MARKET_ID))["markets"][
MARKET_ID
]
)
Copy link
Contributor

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

Copy link
Contributor Author

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(
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants