Check out the Issue Explorer
Looking to fund some work? You can submit a new Funded Issue here.
[jurors.py](https://github.com/marczeller/Kleros-Monitor-Bot/blob/master/jurors.py) currently use a hardcoded amount dispute into a while loop.
`case_Number = 1
juror_accounts = 
while case_Number < 63:`
this is obviously highly ineffective as we don't want to change the int `63` all the time.
The fix is simple, listening to events linked to `DisputeCreation` on `0x988b3a538b618c7a603e1c11ab82cd16dbe28069` in order to fetch the total number of disputes in Kleros(exemple below)
latest `DisputeCreation` event will always have a DisputeID = total number of disputes. (disputesIDs are incremental)
What we need :
1. Event listener function on `0x988b3a538b618c7a603e1c11ab82cd16dbe28069` that retrieve the latest DisputeCreation disputeID, store it into a variable `total_disputes`
that function should return `self.total_disputes`
ideally this should be integrated into [kleros.py](https://github.com/marczeller/Kleros-Monitor-Bot/blob/master/kleros.py)
2. integration of `total_dispute` into the while loop such as `while case_Number < total_dispute` into [jurors.py](https://github.com/marczeller/Kleros-Monitor-Bot/blob/master/jurors.py)
I'm obviously new to this, if you have a better way to do this i'm open-minded !
also happy to provide a small bounty for the help.