Balmy
Swappers
Swappers
  • Swappers
  • Architecture
    • Swapper Registry
    • Swap Adapter
    • Extensions
    • Swap Proxy
  • Tech guides
    • Implementing the swappers
    • Smart Contract Registry
    • Github
Powered by GitBook
On this page

Was this helpful?

  1. Architecture

Swapper Registry

PreviousSwappersNextSwap Adapter

Last updated 2 years ago

Was this helpful?

As mentioned before, is an infrastructure created to interact mainly with ERC20 tokens, dexes and dexes aggregators.

Most interactions with ERC20 tokens are pretty limited and as such tightly defined (approve, send, etc.), while interactions with dexes and dex aggregators usually rely heavily on arbitrary data execution (0x, 1inch and Paraswap).

Is it because of this that the exists. Different contracts from the Mean Finance ecosystem will ask this contract if an address is a valid swapper or not, thus avoiding malicious contracts to execute arbitrary data. Additionally, in some cases, swappers have supplementary allowance targets that need ERC20 approvals. We will also track those here.

Swapper Registry will have two access roles: Super admins and Admins:

  • Super admins: Will be able to add new super admins and admins.

  • Admins: Will be the ones adding or removing swappers and allowance targets from the allowed lists.

Swappers
Swapper Registry