Skip to content

Conversation

c9s
Copy link
Owner

@c9s c9s commented May 6, 2025

No description provided.

a.MarginRatio = fixedpoint.MustNewFromString(userAsset.MarginRatio)
a.BorrowEnabled = userAsset.BaseAsset.BorrowEnabled || userAsset.QuoteAsset.BorrowEnabled
a.BorrowEnabled = types.BoolPtr(userAsset.BaseAsset.BorrowEnabled || userAsset.QuoteAsset.BorrowEnabled)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need to use types.BoolPtr here?

@c9s c9s enabled auto-merge May 7, 2025 07:38
@c9s c9s merged commit 476327c into main May 7, 2025
3 checks passed
@c9s c9s deleted the c9s/okx/margin branch May 7, 2025 07:40
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.

3 participants