Skip to content

Never gate a perpetual on the wallet balance - #837

Merged
DRadmir merged 1 commit into
mainfrom
wt2/perpetual-balance-fix
Aug 5, 2026
Merged

Never gate a perpetual on the wallet balance#837
DRadmir merged 1 commit into
mainfrom
wt2/perpetual-balance-fix

Conversation

@DRadmir

@DRadmir DRadmir commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Opening a perpetual showed a false "ETH required, 0 available" error and blocked the transaction.

A perpetual is margined from the perpetual account, not the wallet balance, so the confirm-time balance check must not gate it. The check now treats every perpetual as non-spending, matching how both apps behaved before the shared validation moved to core.

@DRadmir DRadmir self-assigned this Aug 5, 2026
@DRadmir
DRadmir merged commit f564e0c into main Aug 5, 2026
7 checks passed
@DRadmir
DRadmir deleted the wt2/perpetual-balance-fix branch August 5, 2026 07:27
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.

1 participant