Derivative Tokens
Last updated
Was this helpful?
Last updated
Was this helpful?
All derivatives (LONG and SHORT) and Liquidity tokens are different IDs of a single token. Token ID is encoded in the following format:
ID = 0x##a...a
Where 0xa...a
is its pool address, and 0x##
is the side code of the token in the pool:
0x10
: LONG side
0x20
: SHORT side
0x30
: Liquidity Provider side
Each token ID can only be minted and burnt by its pool.
The ERC-1155 token standard is deployed with 2 extensions: Timelock and Shadow.
: an implementation of that tracks a maturity time after an amount of token is minted. (See Maturity for more details)
: an extension of that allows any of its IDs to deploy a Shadow token with its contract address for DeFi composability. Each Shadow contract can be deployed by anyone, anytime, and it shares the same balance and transfer behavior with the original token ID after being deployed.