Skip to content

Commit

Permalink
fixed M-07
Browse files Browse the repository at this point in the history
  • Loading branch information
caglacelik committed Dec 2, 2024
1 parent 28bab63 commit f4b5f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BuyerAgent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ contract BuyerAgent is Ownable {
// example:
// |-------------> | (roundTime)
// |--Sell--|--Buy--|-Withdraw-| (cycleTime)
if (roundTime < params.sellInterval) {
if (roundTime <= params.sellInterval) {
return (round, Phase.Sell, params.sellInterval - roundTime);
} else if (roundTime < (params.sellInterval + params.buyInterval)) {
} else if (roundTime <= (params.sellInterval + params.buyInterval)) {
return (round, Phase.Buy, params.sellInterval + params.buyInterval - roundTime);
} else {
return (round, Phase.Withdraw, cycleTime - roundTime);
Expand Down

0 comments on commit f4b5f9a

Please sign in to comment.