enzymefinance / protocol

Enzyme Protocol Implementation
https://enzyme.finance
GNU General Public License v3.0
375 stars 156 forks source link

refactor: move adapter config from Registry to adapters #994

Closed SeanJCasey closed 4 years ago

SeanJCasey commented 4 years ago

This PR moves the relevant info for identifying and using adapters to the adapter contracts. Previously, this was not possible because of the way we call adapters (via a delegatecall), but it is not possible to dynamically define immutable constants at deploy time (i.e., the integration gateway address for the adapter).

Notes: