class CheckFundsGtZeroHandler {

    @EventListener
    public void handleFund(final RequestFundedEvent requestFundedEvent) {
        final Long requestId = requestFundedEvent.getRequestId();

        if (hasTokenValueGtZero(fundService.getTotalFundsForRequest(requestId)) && hasRequestStatus(requestId, OPEN)) {
            requestService.update(new UpdateRequestStatusCommand(requestId, FUNDED));
        }
    }

    public  CheckFundsGtZeroHandler(final FundService fundService, final RequestService requestService);

}