Skip to content

Commit

Permalink
Merge branch 'runtime-fv' into discount-rate-not-cached
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 authored Sep 9, 2024
2 parents 0dad113 + 47bb445 commit 0fec2dd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Strategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ contract Strategy is BaseStrategy, Pausable, ReentrancyGuard {
termAuction.termAuctionOfferLocker()
);
require(
block.timestamp > offerLocker.auctionStartTime() ||
block.timestamp < termAuction.auctionEndTime(),
block.timestamp > offerLocker.auctionStartTime() &&
block.timestamp < offerLocker.revealTime(),
"Auction not open"
);

Expand Down Expand Up @@ -925,12 +925,8 @@ contract Strategy is BaseStrategy, Pausable, ReentrancyGuard {
);
} else {
// Edit offer, overwrite existing
termAuctionListData.offers[offerIds[0]] = PendingOffer({
repoToken: repoToken,
offerAmount: offer.amount,
termAuction: auction,
offerLocker: offerLocker
});
PendingOffer storage pendingOffer = termAuctionListData.offers[offerIds[0]];
pendingOffer.offerAmount = offer.amount;
}
}

Expand Down

0 comments on commit 0fec2dd

Please sign in to comment.