Skip to content

Commit 7c9a78e

Browse files
authored
Merge pull request #177 from InjectiveLabs/fix/fix_broadcaster_note_formatting
fix/fix_broadcaster_note_formatting
2 parents 3cf71ee + 7442531 commit 7c9a78e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/includes/_broadcaster.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,11 +488,12 @@ For the broadcaster to calculate the gas fee based on the messages included with
488488
<br />
489489

490490
---
491+
491492
**NOTE:**
492493
There an important consideration when using the Transaction Broadcaster calculating the gas cost without simulation to send a _MsgBatchUpdateOrders_ message.
493494
The logic that estimates the gas cost for the _MsgBatchUpdateOrders_ correclty calculates the gas required for each order action (creation or cancelation) it includes. But there is no easy way to calculate the gas cost when canceling all orders for a market id using one of the following parameters: `spot_market_ids_to_cancel_all`, `derivative_market_ids_to_cancel_all` or `binary_options_market_ids_to_cancel_all`. The complexity is related to the fact that the gas cost depends on the number of orders to be cancelled.
494-
By default the estimation logic calculates a gas cost considering the number of orders to cancel for each market id is 20.
495-
To improve the gas cost calculation when using the _MsgBatchUpdateOrders_ message to cancel all orders for one or more markets you can change the number of estimated orders to cancel per market. Check in the fine-tunning section the proper `AVERAGE_CANCEL_ALL_AFFECTED_ORDERS` global variable to change.
495+
By default the estimation logic calculates a gas cost considering the number of orders to cancel for each market id is 20. To improve the gas cost calculation when using the _MsgBatchUpdateOrders_ message to cancel all orders for one or more markets you can change the number of estimated orders to cancel per market. Check in the fine-tunning section the proper `AVERAGE_CANCEL_ALL_AFFECTED_ORDERS` global variable to change.
496+
496497
---
497498

498499

0 commit comments

Comments
 (0)