Skip to content

Commit

Permalink
Address code organization comments, move state transition logic to af…
Browse files Browse the repository at this point in the history
…ter updates.
  • Loading branch information
vincentwschau committed Mar 21, 2024
1 parent fe4c5bc commit 039290b
Show file tree
Hide file tree
Showing 7 changed files with 462 additions and 208 deletions.
2 changes: 1 addition & 1 deletion protocol/testutil/constants/positions.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var (
// Long position for arbitrary isolated market
PerpetualPosition_OneISOLong = satypes.PerpetualPosition{
PerpetualId: 3,
Quantums: dtypes.NewInt(100_000_000),
Quantums: dtypes.NewInt(1_000_000_000),
FundingIndex: dtypes.NewInt(0),
}
PerpetualPosition_OneISO2Long = satypes.PerpetualPosition{
Expand Down
226 changes: 126 additions & 100 deletions protocol/x/subaccounts/keeper/isolated_subaccount.go

Large diffs are not rendered by default.

Loading

0 comments on commit 039290b

Please sign in to comment.