package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev

# Functions

CalculateUpdatedAssetPositions returns a deep-copy of the asset positions with the updates applied.
CalculateUpdatedPerpetualPositions returns a deep-copy of the perpetual positions with the updates applied.
CalculateUpdatedSubaccount returns a copy of the settled subaccount with the updates applied.
For `Match` updates: - returns a struct `OpenInterest` if input updates results in OI delta.
GetRiskForSubaccount returns the risk value of the `Subaccount` after updates are applied.
GetSettledSubaccountWithPerpetuals returns 1.
GetUpdatedAssetPositions filters out all the asset positions on a subaccount that have been updated.
GetUpdatedPerpetualPositions filters out all the perpetual positions on a subaccount that have been updated.
IsValidStateTransitionForUndercollateralizedSubaccount returns an `UpdateResult` denoting whether this state transition is valid.