Wormhole x Axelar | Lido Bridge: Implementation for wstETH on BNB Chain

With voting starting today, we at Axelar and Wormhole are very excited for our proposal to be considered by the Lido DAO. We’d like to share a brief update on the progress of our technical implementation.

Our teams have been hard at work building the multi-bridge token transfer design that we originally proposed. Behind the scenes, we’ve done a tremendous amount of work adding critical features, improving security, and optimizing gas consumption in the smart contracts.

The code is entirely open source and can be viewed in these two repositories —

  1. wstETH-specific implementation, with Axelar and Wormhole Endpoint contracts and a sample wstETHL2Token contract — wormhole-foundation/example-wormhole-axelar-wsteth (github.com)
  2. Implementation of the multi-bridge framework, which includes the EndpointManager contract — wormhole-foundation/example-native-token-transfers (github.com)

Please note that the code is still a work in progress and that it isn’t expected to be bug free yet. We are aiming for the implementation to be fully complete and audited, both by our internal security teams and external firms, by mid-Q2.

Some aspects of the implementation that we’d like to highlight:

  • The Endpoint contracts will be upgradeable via the EndpointManager contract. The EndpointManager is OwnableUpgradeable and the wstETHL2Token contract is Ownable. The OwnableUpgradeable and Ownable functionality should just be viewed as placeholders for now — we plan to work with the Lido DAO to ensure that the contracts properly integrate with the DAO’s preferred governance process.
  • We have added on-chain inbound and outbound rate-limiting as part of the EndpointManager contract. The outbound rate-limit is a single global limit for sending from a chain, while the inbound rate-limits are per-chain limits for receiving from specific chains.
  • We have implemented defense-in-depth security protections such as replay protection, invariant checking, and deterministic storage slots. Replay protection is implemented both by Endpoint contracts (Wormhole & Axelar message replay protection) and the EndpointManager contract (overall message replay protection). We guard against tricky edge cases by checking invariants (see here and here) around configured Endpoint contracts and the threshold attestations for messages to be considered valid. Since the contracts are designed to support upgradeability, we also use deterministic storage slots to protect against error cases if the DAO wishes to upgrade the contracts to newer versions in the future.
  • We use data structures that optimize gas consumption for Endpoint management, replay protection, and encoding/decoding structs.
  • The bridge can be easily integrated into any frontend UI, such as Wormhole Connect and Squid. The design also leverages Wormhole Standard Relaying and Axelar Gas Services so that end users have a one-click seamless experience.

We are very excited about our implementation and the opportunity to support the Lido DAO’s efforts in bringing wstETH to BNB via our joint Wormhole-Axelar bridge. We are also happy to answer any questions contributors may have and dive deeper into the technical aspects of our solution.

We look forward to seeing the outcome of the vote!

4 Likes