Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Fix vault 0 position update #198

Merged
merged 2 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/perennial-vaults/contracts/BalancedVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ contract BalancedVault is IBalancedVault, UInitializable {

if (targetPosition.lt(currentPosition))
product.closeMake(currentPosition.sub(targetPosition));
if (targetPosition.gt(currentPosition))
if (targetPosition.gte(currentPosition))
product.openMake(targetPosition.sub(currentPosition).min(makerAvailable));

emit PositionUpdated(product, targetPosition);
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading