Zapper Framework
Last updated
Last updated
Unified Modeling of Zap Actions as Swaps: The zapper framework integrates seamlessly with the DynaRouterAPI, simplifying and optimising interactions with DeFi vaults and liquidity pools. It models deposits into vaults as a swap from contribution tokens to vault shares. The underlying vault zapper contracts facilitate the transparent exchange of contribution tokens into deposit tokens of the vault. Similarly, liquidity zapper contracts manage the addition or removal of liquidity using a single underlying AMM weighted pool token.
Predictable Cross-Protocol Optimal Routes:
By modelling all zap actions as swap actions, the router framework can select the optimal output amount by previewing vault share redemption against the preview of a swap of vault shares in a decentralised exchange. Fine Grained Access Control: For regulated tokens or closed beta launches, Singularity Finance has developed a TokenWhitelistRegistry that manages access to different token routers and zappers.