Skip to content

Commit

Permalink
fix(RoninBaseTreasury): fix getState logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Nov 14, 2024
1 parent 3f02658 commit 8c31255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ronin/basefee-treasury/RoninBaseFeeTreasury.sol
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ contract RoninBaseFeeTreasury is EIP712, Initializable, HasContracts, IBaseFeeTr
bytes32 proposalHash
) external view returns (Status state) {
state = _info[proposalHash]._state;
if (state == Status.Active && _info[proposalHash]._proposal.expiry < block.timestamp) {
state = Status.Cancelled;
if ((state == Status.Active || state == Status.Passed) && _info[proposalHash]._proposal.expiry < block.timestamp) {
state = Status.Deprecated;
}
}

Expand Down

0 comments on commit 8c31255

Please sign in to comment.