Hi all,
Nic Munoz-McDonald here. For context: I’m a member of Enzyme’s Technical Council, an auditor that’s worked on both Enzyme and Safe over the years, and a fan of Zodiac. I’ve been following the discussion, and want to clarify some points.
Speaking from a smart contract security perspective, there are significant differences in Karpatkey’s and Enzyme’s approaches. The Enzyme approach is characterized by two principles: “defense in depth” and “smart contract controls wherever possible”. To that end, Enzyme takes a more holistic approach to security than Karpatkey: which implements controls at the individual transaction level.
I’d actually agree with an even stronger statement: there’s no such thing as non-custodial fund management without smart contract controls at the overarching fund level. Directly transferring out assets is far from the only way to siphon value out of a fund. As a simple example, a dishonest fund operator could make AMM trades with excessive slippage. Naively, the Zodiac Roles Modifier can protect against this just fine: you can restrict these calls to using a max slippage parameter below a given threshold. However, that doesn’t truly solve the problem: the fund operator can perform as many max slippage trades as they like. Each individual trade conforms to the smart contract controls in place, but cumulatively they can drain the fund. Contrastingly, Enzyme’s solution takes this into account (protocol/contracts/release/extensions/policy-manager/policies/asset-managers/CumulativeSlippageTolerancePolicy.sol at v4 · enzymefinance/protocol · GitHub). While seemingly less flexible, Enzyme’s policy hook based architecture can provide more expressive and powerful smart contract based controls.
Integrating a protocol doesn’t stop at whitelisting its entry points. Something as seemingly simple as assessing the value of LP shares you receive from an AMM, is fraught with pitfalls and edge cases that can snowball into vulnerabilities. The flexibility of the Zodiac Roles Modifier fuels very large hidden costs: every integration multiplies the attack surface. With Karpatkey, it is not clear to me who bears the cost of auditing these configurations. With Enzyme, each integration has been vetted by the core development team—who always have a direct line of communication to the protocols’ respective teams—as well as 3rd party audits. All paid for by Enzyme.
All these are simply part of the day to day operations of the Enzyme Technical Council, and have been since its inception in 2019. Honestly, I’ve been called into too many war rooms alongside fellow Enzyme Technical Council members ChainSecurity (https://chainsecurity.com/) to take this accusation of inexperience seriously.