Dragobit Vaults
Last updated
Last updated
As introduced in the previous chapter, when minting a Dragobit, a certain amount of the specified ERC-20 token will be attached to it. The amount of the token may vary per Dragobit, depending on the on-chain token price at the time of the transaction. When a Dragobit is transferred, access to the attached tokens is also transferred. The token is held in a separate smart contract for each Dragobit, known as the "Dragobit Vault".
When minting a Dragobit, the minter has the chance to get a boosted amount of the attached ERC-20 token which comes from a special vault that is owned by the Dragobits contract itself. The chance probability may vary per deployment.
Only the owner of a Dragobit can access its vault. A vault can hold not only tokens but also ETH (native gas). If a Dragobit owner wishes to withdraw tokens or ETH from the vault, this can be done anytime when the Dragobit is not actively engaged in gameplay.
However, to claim from the vault, the Dragobit NFT must be burned. This mechanic ensures that once a major player chooses to exit, space is made for new players. For instance, if the exiting player owned a Dragobit with very high strength, it would have been particularly powerful in gameplay.
Additionally, when claiming from the vault, a certain percentage of the tokens will remain in the vault to be indirectly burned. This serves as spam protection to prevent players from circumventing the reroll fee.