Skip to content
Merged
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
4 changes: 2 additions & 2 deletions contracts/Hyperdrive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ contract Hyperdrive is MultiToken {
// Since the base buffer may have increased relative to the base
// reserves and the bond reserves decreased, we must ensure that the
// base reserves are greater than the longsOutstanding.
if (sharePrice.mulDown(shareReserves) >= longsOutstanding) {
if (sharePrice.mulDown(shareReserves) < longsOutstanding) {
revert Errors.BaseBufferExceedsShareReserves();
}

Expand Down Expand Up @@ -381,7 +381,7 @@ contract Hyperdrive is MultiToken {

// Since the share reserves are reduced, we need to verify that the base
// reserves are greater than or equal to the amount of longs outstanding.
if (sharePrice.mulDown(shareReserves) >= longsOutstanding) {
if (sharePrice.mulDown(shareReserves) < longsOutstanding) {
revert Errors.BaseBufferExceedsShareReserves();
}

Expand Down