Skip to content

Commit

Permalink
lqt: wire action handlers for vote action (#5077)
Browse files Browse the repository at this point in the history
Previously we had a todo!() there, woops.

I've actually tested that this, combined with changes in another staged
pr, allow one to submit votes.

## Checklist before requesting a review

- [x] I have added guiding text to explain how a reviewer should test
these changes.

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > Consensus breaking relative to testnet too.
  • Loading branch information
cronokirby authored and conorsch committed Feb 14, 2025
1 parent c9be65a commit dfef30f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/core/app/src/action_handler/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl AppActionHandler for Action {
Action::ActionDutchAuctionSchedule(action) => action.check_stateless(()).await,
Action::ActionDutchAuctionEnd(action) => action.check_stateless(()).await,
Action::ActionDutchAuctionWithdraw(action) => action.check_stateless(()).await,
Action::ActionLiquidityTournamentVote(_action) => todo!(),
Action::ActionLiquidityTournamentVote(action) => action.check_stateless(context).await,
}
}

Expand Down Expand Up @@ -98,7 +98,7 @@ impl AppActionHandler for Action {
Action::ActionDutchAuctionSchedule(action) => action.check_historical(state).await,
Action::ActionDutchAuctionEnd(action) => action.check_historical(state).await,
Action::ActionDutchAuctionWithdraw(action) => action.check_historical(state).await,
Action::ActionLiquidityTournamentVote(_action) => todo!(),
Action::ActionLiquidityTournamentVote(action) => action.check_historical(state).await,
}
}

Expand Down Expand Up @@ -140,7 +140,7 @@ impl AppActionHandler for Action {
Action::ActionDutchAuctionSchedule(action) => action.check_and_execute(state).await,
Action::ActionDutchAuctionEnd(action) => action.check_and_execute(state).await,
Action::ActionDutchAuctionWithdraw(action) => action.check_and_execute(state).await,
Action::ActionLiquidityTournamentVote(_action) => todo!(),
Action::ActionLiquidityTournamentVote(action) => action.check_and_execute(state).await,
}
}
}

0 comments on commit dfef30f

Please sign in to comment.