Axis-Fi / axis-core

Axis Protocol
https://axis.finance
Other
6 stars 1 forks source link

EMPA: Refactor (module version) and compare gas costs with standalone #50

Closed Oighty closed 5 months ago

Oighty commented 6 months ago

Per recent conversations about needing to support more potential winning bidders (up to 10,000 as opposed to the current limit of around 400), we need to develop a standalone EMPA contract that avoids several costly operations:

The standalone EMPA refactor referenced in #48 solves various problems with the current implementation, but departs from our general modular framework. Ideally, we would port the necessary changes back to a module-based version that exists within the singleton AuctionHouse. This requires some additional refactoring of the Auction module abstract, Auction House, and writing a new EMPA Module (EMPAM).

To determine which version to use, we should assess how much overhead the module version adds (due to greater generality of the abstractions and probably a few extra external calls) and use that to determine if the module version is efficient enough (which is preferred).