VeBetterDAO Docs
  • VeBetterDAO
    • VeBetterDAO
    • B3TR & VOT3 Tokens
    • B3TR Emissions
    • Treasury
    • X2Earn Allocations
    • X2Earn Apps
    • Governance
    • Voter Rewards
    • Smart Contracts
    • Roles And Permissions
    • Trust Assumptions
    • Verify contract
  • Developer Guides
    • Get Started
    • Test Environment
    • Testnet B3TR tokens
    • Reward Distribution
      • JavaScript
      • Solidity
      • Manage distributors funds
    • Sustainability Proof and Impacts
    • Reward Metadata
    • Security Considerations
    • Submit Your App
    • X2Earn Creators NFT
    • Resources
  • VePassport
    • VePassport
    • Checks
      • Personhood Check
      • Proof of Participation
      • Proof of investment
      • Bot Signaling
      • Blacklisting and Whitelisting
    • Passport Delegation
    • Accounts Linking
    • Roles
  • Vechain Node Holders Guides
    • Endorsement Guide for VeChain Node Holders
    • Node Management
    • Vechain Nodes X GM NFTs: Maximizing Benefits within VeBetter DAO
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Developer Guides
  2. Reward Distribution

Manage distributors funds

PreviousSolidityNextSustainability Proof and Impacts

Last updated 1 month ago

Was this helpful?

Every app receives B3TR from weekly allocation rounds in a contract called X2EarnRewardsPool and those rewards are now configurable by the app admin. In fact, you can split allocated tokens between distributable rewards pool for your user and a treasury pool, withdrawal for operational needs. You also have the possibility to pause distribution anytime, this won't affect the reward pool unless you move funds to the app balance.

This dual-pool mechanism allows you to have more control over your distribution funds. You can manage these configurations directly from the app admin dashboard in the VeBetterDAO app. Or by interacting with our X2EarnRewardsPool contract.

Only the app admin can set this distributable rewards pool, by increasing/ decreasing the wished amount. If you are new to the DAO, note that this feature will be enabled by default. You will have to immediately refill your rewards pool, up to the amount you want to distribute.

Q&A

What happen if my rewards pool goes to 0 ?

If your balance is empty, it's either because you enabled the feature without adding funds to your rewards pool, or because you've run out of funds. You can either refill your rewards pool or disable the feature entirely at any time:

Via VeBetterDAO Dashboard

  • Refill: Add funds directly through the VBD dashboard

  • Disable: Toggle off the feature in settings

Via X2EarnRewardsPoolSmart Contract

// Option 1: Refill your rewards pool with additional funds
// @param amount The amount of tokens to add to your rewards pool
X2EarnRewardsPool.increaseRewardsPoolBalance(bytes32 appId, uint256 amount)


// Option 2: Toggle rewards functionality on/off
// @param enable Set to false to disable rewards, true to enable
X2EarnRewardsPool.toggleRewardsPoolBalance(bytes32 appId, bool enable)