0xProject / ZEIPs

0x Improvement Proposals
Apache License 2.0
91 stars 15 forks source link

ETH support in MultiplexFeature #89

Closed dekz closed 3 years ago

dekz commented 3 years ago

Summary

This ZEIP adds various improvements to MultiplexFeature, most notably the ability to wrap/unwrap ETH as a convenience to the user. This reduces the cost of ETH-based trading for users in certain execution flows.

Type:

CORE

Motivation

MultiplexFeature is designed to execute gas-efficient swaps for a subset of the sources supported by Transfomers. In particular, MultiplexFeature significantly reduces the gas costs of consuming 0x RFQ liquidity while maintaining safeguards against reverts. Version 1 of the feature did not include the ability to wrap/unwrap ETH, so users buying/selling ETH would not realize these gas savings of the Multiplex execution path.

Multiplex Version 2 adds support for ETH buys/sells, as well as a number of smaller changes that are described in the PR.

Specification

https://github.com/0xProject/protocol/pull/263

Implementation

This proposal would update the Multiplex feature to the latest version. The 0x V4 architecture allows features to be added and upgraded. No change is required for most integrators; certain smart contract integrations may need to update to accommodate the new function signatures introduced by Multiplex V2.

Designated team: 0x Labs

Notes

The change has been spot-checked by Consensys Diligence