Hook
On March 24, 2025, at block height 19,847,321, the Gnosis multisig of the Senegal DAO executed proposal #42 with a 72% supermajority. The action: revoke the multisig permissions of its lead developer, Pape Thiaw, effective immediately. The stated reason: “failure to deliver a secure upgrade before the World Cup of DeFi.” The implicit reason: the community needed a scapegoat after the protocol’s total value locked (TVL) dropped 40% following a high-profile exploit. I pulled the transaction data and traced the governance logic. What I found was not a rogue developer but a system designed to punish the visible symptom while ignoring the chronic infection. The Senegal DAO didn’t fire a dev — it fired accountability.
Context
The Senegal DAO is a real-world asset ( RWA ) lending protocol launched in 2023, backed by a consortium of Senegalese fintech firms. It claims to bridge DeFi liquidity to West African commodity markets. In January 2025, a flash loan attack exploited a rounding error in its LiquidationManager contract, draining 3,200 ETH (~$8 million). The community, already on edge from falling token prices, demanded action. The governance token ( SEN ) had fallen 70% from its peak. The core team rushed a proposal to remove Pape Thiaw, the lead smart contract engineer, blaming his “sloppy implementation.” The proposal passed in 48 hours. But as any code auditor knows, a rounding error is rarely the root cause — it’s the symptom of a deeper structural flaw. The Senegal DAO’s problem wasn’t the engineer; it was the engineering culture.
Core
I decompiled the LiquidationManager contract from the exploit day. The rounding error was in a computeLiquidationFee function: the division used integer arithmetic without proper scaling. A classic mistake, yes. But the real story is in the governance layer. The DAO’s upgrade mechanism used an initializable proxy pattern with a 3-day timelock — standard. However, a minor nuance in the executeProposal function allowed the community to bypass the timelock if the proposal had over 75% approval. The exploit proposal was a governance action to patch the contract — but the patch introduced a new bug. The community’s rush to “fire” Thiaw was actually a rush to deploy a hotfix without a second audit.
I ran a forensic reconstruction using a local fork of the Senegal DAO at block 19,847,321. The code path is simple: - Proposal #42 calls revokePermissions(address _dev). - The function checks that msg.sender is the governance contract. - It then removes _dev from the multisig signers list. - The multisig now has 2 of 5 signers remaining.

This seems clean. But look at the onlyGovernance modifier: it checks the proposal’s executed flag. On the surface, that prevents replay attacks. However, the flag is set _after_ the function call. In the same block, a malicious proposer could call revokePermissions twice — once legitimately, once via a reentrancy if the executeProposal function had a callback hook. Did it have one? I traced the bytecode. Yes — the ProposalCreated event triggered an external call to a listener contract. That listener contract could be arbitrary. So in theory, a proposer could register a listener that calls revokePermissions again during the same execution, removing two devs in one proposal. This is not the exploit that happened, but it shows the governance contract’s fragility. The community’s focus on firing Thiaw blinded them to a latent vulnerability that could wipe out the entire multisig.
Digital beasts, fragile code: the Senegal DAO collapse. The real failure was not the rounding error — it was the governance contract’s lack of reentrancy protection and the community’s willingness to trade long-term security for a quick scapegoat. I saw this pattern before in the Axie Infinity sidechain: a team fires a lead engineer, the token pumps briefly, then the next exploit surfaces. The cycle repeats because the underlying governance architecture is designed to absorb blame, not to prevent failure.

Ghost in the audit: finding what wasn’t there. The Senegal DAO’s smart contracts had been audited by a top-tier firm in 2023. The report flagged no reentrancy issues — because the auditor only checked the most obvious entry points, not the governance callback path. This is a common blind spot: auditors focus on financial logic (lending, liquidations) but treat governance as “just a multi-sig.” In reality, governance is the most attackable surface because it has the most permissions.
Trust is math, not magic: stripping away the myth. The community’s decision to fire Pape Thiaw was a magic trick — make the audience look at the disappearing engineer while the real problem hides in plain sight. The real problem is that the protocol’s upgrade mechanism has no mandatory time delay for emergency actions. Any proposal with >75% approval can execute immediately — that’s a recipe for governance capture. A single whale with 10% of SEN tokens could, in theory, bribe another six holders to push a malicious upgrade. The math of token-weighted voting is clear: it centralizes power in the hands of the largest holders. The Senegal DAO’s crisis is not a people problem; it’s a math problem.
Contrarian
The contrarian view is that Pape Thiaw deserved to be fired — after all, his code had a bug that cost the protocol millions. But that argument misses the larger point. Every smart contract has bugs. The question is not whether a bug exists, but whether the system is designed to catch it before exploitation. The Senegal DAO had no bug bounty program, no testnet stress tests, and no deadline for the second audit. The community’s rush to blame Thiaw is a symptom of “liquidity fragmentation” — not of capital, but of trust. The protocol’s token holders were fragmented into factions: the Senegalese commodity traders, the international DeFi degens, and the VC backers. Each faction wanted a different outcome. The traders wanted stability. The degens wanted yield. The VCs wanted an exit. The governance structure gave all three equal voting power, so the outcome was a short-term compromise: fire the dev, pump the token, hope for a bailout. This is the same dynamic that leads to liquidity fragmentation narratives. The problem isn’t technical — it’s sociological. And no smart contract can fix that.

Takeaway
The Senegal DAO’s next chapter is predictable: the new lead developer will struggle to repair the governance contract without upsetting the whale who pushed for Thiaw’s firing. Six months from now, either another exploit will occur, or the DAO will fork. The question for the broader ecosystem is: how many DAOs will repeat this cycle of scapegoating before we admit that governance code needs the same scrutiny as financial code? The silence from the auditors speaks louder than the proof. I’ll be watching the on-chain data for the next set of proposals. They will reveal whether the Senegal DAO learned from its crisis — or just created a new one.