Skip to content

Commit

Permalink
logic changes for proto change
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfung-dydx committed Oct 28, 2024
1 parent d321d3e commit 95ff68f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/x/subaccounts/keeper/subaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (k Keeper) GetStreamSubaccountUpdate(
for i, pp := range subaccount.PerpetualPositions {
perpetualPositions[i] = &types.SubaccountPerpetualPosition{
PerpetualId: pp.PerpetualId,
Quantums: pp.Quantums.BigInt().Uint64(),
Quantums: pp.Quantums.BigInt().Int64(),
}
}

Expand Down Expand Up @@ -298,7 +298,7 @@ func GenerateStreamSubaccountUpdate(
for i, pp := range updatedPerpetualPositions {
perpetualPositions[i] = &types.SubaccountPerpetualPosition{
PerpetualId: pp.PerpetualId,
Quantums: pp.Quantums.BigInt().Uint64(),
Quantums: pp.Quantums.BigInt().Int64(),
}
}

Expand Down

0 comments on commit 95ff68f

Please sign in to comment.