Extensible Wrapped Tokens

Objective

The primary objective of the Lossless Wrapped ERC20 Extensible tokens is to offer a flexible and modular way to extend the functionality of any ERC20 token. This extensibility allows for the integration of various features, including but not limited to Lossless Core protocol protection, without the need to relaunch or rewrite existing smart contracts. The extensible token design enables token admins to choose and install extensions that best suit their needs or even develop custom extensions for their specific use cases.

Lossless Wrapped ERC20 Extensible

By default, it has no kind of extra features more than a regular ERC20. Instead, the token admin has the ability to "install" extensions to expand its functionality. Lossless will provide a set of extensions like "Lossless Core Protection" which will add Lossless products functionality. This is fully optional, and protocols have the ability to write their own extensions.

Extensions

Interfaces

Main Workflow

Usage

To create an extensible wrapped token, the Lossless Wrapped ERC20 Extensible smart contract must be deployed. Once deployed, the token admin can choose from a range of pre-built extensions, such as the Lossless Core Extension, Aegis Core Extension, and Rugpull Prevention Extension, or develop custom extensions to enhance the token's functionality.

To install an extension, the token admin calls the appropriate function in the smart contract, providing the extension's address. Once the extension is installed, the token's behavior will be modified according to the extension's logic. Token admins can also uninstall extensions, reverting the token's behavior to its previous state.

The extensible wrapped token design ensures that the token can adapt to changing requirements, incorporating new features, or removing unwanted functionality as needed, without impacting the underlying ERC20 token.

It is essential to communicate with the token's community and keep them informed about any official wrapped contract and changes made to the token's functionality through the installed extensions. This transparency helps maintain trust and ensures users are aware of the token's capabilities and limitations.

Last updated