Hot take: my compost bin got raided by raccoons twice in one month and the fix was a $12 bungee cord
Two weeks ago in my backyard in Sacramento I found the lid flipped off and coffee grounds spread across the patio. Raccoons had figured out the latch on my old bin. I wrapped a cheap bungee cord around the lid and handle and they have not touched it since. Also moved the bin 10 feet from the fence line, which seems to help. Has anyone else dealt with a smarter-than-average trash panda, and did a bungee hold up for you?
Ha! Those little guys are relentless, mine popped the latch on my bin last summer too. I zip tied the handle down and it's held ever since, so yeah, cheap hardware beats fancy fixes every time. Moving it away from the fence was smart too, they hate having to cross open ground.