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 —
- wstETH-specific implementation, with Axelar and Wormhole
Endpointcontracts and a samplewstETHL2Tokencontract — wormhole-foundation/example-wormhole-axelar-wsteth (github.com) - Implementation of the multi-bridge framework, which includes the
EndpointManagercontract — 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
Endpointcontracts will be upgradeable via theEndpointManagercontract. TheEndpointManagerisOwnableUpgradeableand thewstETHL2Tokencontract isOwnable. TheOwnableUpgradeableandOwnablefunctionality 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
EndpointManagercontract. 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
Endpointcontracts (Wormhole & Axelar message replay protection) and theEndpointManagercontract (overall message replay protection). We guard against tricky edge cases by checking invariants (see here and here) around configuredEndpointcontracts and thethresholdattestations 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!