Skip to content

FEATURE: [xfundingv2] adding checks for fee asset acquisition - #2620

Open
dboyliao wants to merge 1 commit into
mainfrom
dboy/xfundingv2/fee-asset
Open

dboyliao wants to merge 1 commit into
mainfrom
dboy/xfundingv2/fee-asset

Conversation

@dboyliao

@dboyliao dboyliao commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Since the spot/futures prices change over time, the required fee asset amount may change as well.
Add a new checkSufficientFeeAssetBalance method for checking the fee asset amount and make sure it's sufficient for opening/closing rounds.

Refactor submitFeeAssetOrder method to share the logic of acquiring fee asset.

@dboyliao
dboyliao requested a review from c9s September 1, 2026 06:45
@dboyliao
dboyliao force-pushed the dboy/xfundingv2/fee-asset branch 6 times, most recently from 7c72562 to 442ea17 Compare September 2, 2026 03:40
@dboyliao
dboyliao force-pushed the dboy/xfundingv2/fee-asset branch from 442ea17 to 343d542 Compare September 23, 2026 00:53

This branch has not been deployed

No deployments
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