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

Formulas

PreviousThe gameNextDecentralized reputation

Last updated 2 years ago

The formula below is to determine the specific rewards a user has made between time t=s and t=s+n, calculated per vault the user has locked tokens on in the game:

where:

and

s: Rebalancing period of the vault when the user basket has been created.

n: Number of rebalancing periods of the underlying vaults.

i: Underlying protocol number from whitelist.

Rs,s+n: Rewards build up for a specific user between t=s and t=s+n, in the same currency as Ut when Rs,s+n0.

RLTt,i: Reward per locked token, share of rewards from protocol i at time t per locked token on a specific vault, in the same currency as Ut when RLTt,i0.

cumRLTt: Cumulative Reward per locked token on time t.

Ai: Allocation on protocol i by game player (in nr of DRB tokens).

Pt,i: Price of protocol LP token i at time t.

PFt: Performance Fee at time t, set by the DAO, currently 10%.

Ut: Total Underlying amount in the vault at time t.

TLTt: Total Locked Tokens, total amount of Derby Tokens (DRB) locked in the game on a vault at time t.

To penalize bad behavior, game players receive a small penalty in the form of slashed Derby tokens if the performance of their underlying portfolio is negative. This penalty is computed using a simple formula:

Ps,s+n: Penalty in amount of Derby tokens (DRB) to be slashed

Ed,u: Exchangerate DRB/UnderlyingToken

NRF: Negative Reward Factor (between 0 and 1), not 100% of the negative rewards have to be slashed.