Skip to content

Pass order type to SettlementEntry#52

Merged
codchen merged 3 commits intomasterfrom
tony-chen-integrate-order-fee
Jun 23, 2022
Merged

Pass order type to SettlementEntry#52
codchen merged 3 commits intomasterfrom
tony-chen-integrate-order-fee

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Jun 22, 2022

Contracts would need order type information for each settlement entry for things like order fee calculation, so sei needs to pass order type during settlement.

Tested with unit tests as well as local integration test with Vortex contract.

@codchen codchen requested a review from LCyson June 22, 2022 18:06
order types.OrderBook,
takerDirection types.PositionDirection,
worstPrice sdk.Dec,
isTakerLiquidation bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

can we just pass in the takerOrderType (e.g. types.OrderType_LIQUIDATION) here? so that we don't need to do the check below

Copy link
Contributor

Choose a reason for hiding this comment

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

also can we add a general comment of the settlement logic in this function

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added

@codchen codchen merged commit 316db8b into master Jun 23, 2022
masih pushed a commit that referenced this pull request Sep 26, 2025
* Allow passing ctx in return values of submsg handler (#52)

* Revert "Fix context assignment (#53)"

This reverts commit 434130f3d1bf5d0a2ee853abe9bf7a5384417031.

* Revert "Allow passing ctx in return values of submsg handler (#52)"

This reverts commit d14d7fbe8b4c56341da3cae29d5de78e038d7b67.
masih pushed a commit that referenced this pull request Sep 26, 2025
* Allow passing ctx in return values of submsg handler (#52)

* Revert "Revert #52 and #53 (#56)"

This reverts commit 007b839.
masih pushed a commit that referenced this pull request Sep 26, 2025
* Allow passing ctx in return values of submsg handler (#52)

* Emit owner event before CW721 transfer

* Set owner for mint use case

* fmt

* fix 0x0 addr

* revert

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
masih pushed a commit that referenced this pull request Sep 26, 2025
* Allow passing ctx in return values of submsg handler (#52)

* bump sei-cosmos
masih pushed a commit that referenced this pull request Oct 1, 2025
masih pushed a commit that referenced this pull request Oct 9, 2025
[SeiDB] State Store Expose `GetEarliestVersion`
@masih masih deleted the tony-chen-integrate-order-fee branch October 31, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants