The finalization of KCC-20 introduces the possibility of building covenant applications that can understand and interact with any KCC-20 fungible token.
KAS, Kaspa’s native currency, is a fungible asset that covenants can interact with directly through the UTXO value. However, the ecosystem would benefit from a KCC-20 representation of KAS, allowing it to compose with other KCC-20 tokens through the same KCC-20 interface.
A DEX, for example, could use the same general-purpose pool covenant to swap between any two KCC-20 tokens, including KAS, without having to introduce special logic for the native currency.
Potentially, there could be many implementations and deployments of a KAS-backed KCC-20 token. However, as an ecosystem, we would benefit from agreeing on a canonical implementation and deployment, allowing applications to recognize and interact with the same KAS representation, rather than fragmenting liquidity across different wrappers.
PR #4 Adds KAS-backed KAS20 example proposes an implementation of a KAS-backed KCC-20 token.
The backing is straightforward- each KAS20 base unit represents one sompi, held directly in the token’s UTXO. With 8 decimals specified through KCC-23 metadata, 100,000,000 base units represent 1 KAS20, backed by 1 KAS.
Anyone can mint KAS20 by locking the corresponding KAS, transfer it using the KCC-20 interface, and redeem it by burning the tokens to release the backing KAS, accounting for transaction fees. The implementation also supports borrowed receive and permissionless creation of additional minters.
The PR is a starting point for discussion, and I’d appreciate any feedback.