Application Concepts
In this section we are going to explain some application (Injective) specific concepts.
Token Factory
The Token Factory module on Injective which allows users and contracts to create new native tokens and swap native tokens with CW20 tokens using the Mint + Burn model. This is an important feature to have on chain because representing assets from different sources to a native bank denom is crucial to allow users to access the rest of the on-chain modules like exchange, auction, insurance funds, etc. The token factory denoms are in the following format factory/{creator address}/{subdenom}
.
Combined with the CW20AdapterContract
which acts as a creator, we allow CW20 assets to be natively represented on Injective as Token Factory denoms. The way it works is that CW20 assets are held by the CW20AdapterContract
and minted as a factory denom for the injective address and when we want to redeem them back to CW20, they are burned from the bank module and unlocked from the CW20AdapterContract
back to the owner address.
Example on how to redeem a factory denom to CW20:
Example on how to convert CW20 to a factory denom:
Last updated