Gangmembers have the ability to remove other gangmembers from the gang, even the GodFather. This should be the right of the GodFather only.
A missing modifier on the quitTheGang
function allows other mischievous gangmembers to boot their fellow criminals out of the gang and not able to get their USDC back unless they can convince the GodFather to waste even more of his/her precious time on this blockchain nonsense.
If a gangmember is really brave, they can remove the GodFather from the gang and cause even more illicit misery.
To resolve, there is code below that the GodFather would need to perform to re-instate themselves as a gangmember and reassert authority and give themselves time to go find a sharp knife.
Inconvenience and the threat of lost digits for gang-members and a waste of effort, time and blood-pressure tablets for the GodFather.
forge test to prove this out. Most of the actions in this test shouldn't really happen!
Add the right modifier to the quitTheGang function :
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.