Skip to content

Commit

Permalink
add fix (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrizzle authored Sep 29, 2023
1 parent 063f448 commit fe4c532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/perennial-extensions/contracts/MultiInvoker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ contract MultiInvoker is IMultiInvoker, Kept {
// load latest settled position
uint256 latestTimestamp = latestOracleVersion.timestamp;
latestPosition = market.positions(account);
UFixed6 previousMagnitude = latestPosition.magnitude();
closableAmount = latestPosition.magnitude();
UFixed6 previousMagnitude = closableAmount;

// scan pending position for any ready-to-be-settled positions
Local memory local = market.locals(account);
Expand Down

0 comments on commit fe4c532

Please sign in to comment.