Derby Finance Docs
  • Introduction
  • Products
    • Vaults
      • User interactions
        • Deposit
        • Withdraw
        • Relevant view functions
      • Deployed vaults
        • USDC_Low_Risk
      • Cross-chain implementation
      • Rebalancing
      • Gas efficiency
      • Currency swapping
      • Automatic yield harvesting
  • Game
    • User interactions
      • Mint new basket
      • Rebalance basket
      • Redeem rewards
      • Basket allocated tokens
      • Basket allocations in protocol
      • Basket redeemed rewards
      • Basket unredeemed rewards
    • DeFi yield optimization
    • The game
    • Formulas
    • Decentralized reputation
    • NFTs as user profiles
    • Delegation
  • Developers
    • Architecture
      • Single chain
      • Cross-chain
      • Other important flows
    • Contract overview
    • Deployed contract addresses
    • Security
  • DAO
    • Governance
    • The DRB token
    • Adding a new vault
    • Adding new protocols to an existing vault
    • Important parameters
    • Keeper
    • Guardian
  • Roadmap
    • Roadmap
Powered by GitBook
On this page
  1. Game
  2. User interactions

Mint new basket

This is where a user can mint his or her basket NFT by calling the following function in the game contract:

function mintNewBasket(uint256 _vaultNumber) external returns(uint256)

Where the _vaultNumber refers to the vault number for which the user wishes to create a basket. By calling this function the user will mint an NFT on the game contract. The function returns the basketId wich refers to the NFT the user has minted. By rebalancing this basket, as explained in the next section, the user can lock DRB tokens and start putting allocations to different protocols.

PreviousUser interactionsNextRebalance basket

Last updated 2 years ago