-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static typing: Historical funding and fixing issues with isolated market orders #739
Conversation
@@ -68,7 +68,7 @@ internal class ReceiptCalculator { | |||
listOf( | |||
ReceiptLine.Equity, | |||
ReceiptLine.MarginUsage, | |||
ReceiptLine.Fee, | |||
ReceiptLine.TransferFee, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For mobile only. FE web doesn't use this.
@@ -193,11 +193,12 @@ internal class SubaccountTransformerV2( | |||
hasTransfer: Boolean = false, | |||
) { | |||
val deltaMarketId = delta?.marketId | |||
val positions = subaccount.openPositions | |||
val positions = subaccount.openPositions ?: mapOf() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing issue when create a new subaccount for isolated margin.
usdcSize = usdcSize, | ||
fee = null, | ||
fee = transfer.fee, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For mobile only. FE web doesn't use this.
@@ -27,7 +27,8 @@ enum class ReceiptLine(val rawValue: String) { | |||
CrossMarginUsage("CROSS_MARGIN_USAGE"), | |||
PositionMargin("POSITION_MARGIN"), | |||
PositionLeverage("POSITION_LEVERAGE"), | |||
LiquidationPrice("LIQUIDATION_PRICE"); | |||
LiquidationPrice("LIQUIDATION_PRICE"), | |||
TransferFee("TRANSFER_FEE"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For mobile only. FE web doesn't use this.
val modified = input?.mutable() ?: iMapOf<String, Any>().mutable() | ||
modified.safeSet("transfer.fee", gas) | ||
update(StateChanges(iListOf(Changes.input)), oldState) | ||
if (stateMachine.staticTyping) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding processing for transfer gas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really don't know what's going on here. My approval means very little in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuing to yolo stamp
Tested on Android and iOS.