Skip to content

The Anvil protocol

Helva’s collateral mechanics run on Anvil (anvil.xyz), a trust-minimized collateral management protocol on Ethereum mainnet. Anvil is a third-party protocol — Helva builds on it but does not control it.

  • Non-custodial vaults. Borrowers deposit collateral into their own smart contract collateral vault.
  • The Letter of Credit mechanism. The LoC allows to reserve the collateral against a credit amount without giving up custody. See The Letter of Credit.
  • Atomic conversion. When conversion is triggered, only the required amount is converted to stablecoin. The remainder (after a liquidation fee) is returned atomically to the borrwer.
  • Permissionless liquidation of unhealthy positions, so a position can always be made safe even if any single party is offline.

Anvil has been repeatedly audited by two leading security research firms OpenZeppelin and Trail of Bits. As with any smart-contract system, undiscovered-vulnerability risk can never be fully eliminated.

  • Some protocol parameters (like collateral ratios) are set by Anvil governance, not by Helva. See below for what that might mean in theory and how do we see it practically.
  • Helva runs its own collateral management and monitoring directly against the Anvil contracts, independent of Anvil’s own frontend — so the service doesn’t depend on a third-party UI staying online.

Anvil’s governance is based on OpenZeppelin model, meaning token voting with a timelock for activation. That, however, still leaves some theoretical residual risk due to long durations of Helva loans and their underlying LoCs.

While we have measures in place to protect users from this risk (see below), we consider it merely theoretical. That is because Anvil has its own incentive in making the platforms building on top of it successful and its reputation, which has been materalized in one of the most prestigious VC firms Founders Fund leading its latest financing round.

Having said that, even this purely theoretical needs to be mitigated. On our end we are monitoring for the governance changes and should there be a proposal that would be detrimental to the security of the loans, we will require repayment of the loan and liquidate the collateral if necessary.