LogoLogo
  • TruFin Protocol
  • Overview
    • TruFin
  • TruStake Vaults
    • TruStake (MATIC) Staker
    • TruStake (Aptos) Staker
    • TruStake (NEAR) Staker
    • TruStake (Injective) Staker
    • TruStake (Solana) Staker
    • How the TruStake Vaults work
    • User Interface
    • Allocating Rewards
      • Starting a New Allocation
      • Keeping track of your Allocations
      • Changing an existing Allocation
      • Distributing Allocated Rewards
      • Seeing your Allocation History
    • Calculating Vault Performance
    • Validators
    • Fees
  • TruStake Staker Examples
  • Tokens
    • TruMATIC Token
      • Contract Addresses
      • Wallets
      • Transferring
      • Staking & Unstaking
      • Bridging
        • Add TruMATIC to your Token List
        • Bridge TruMATIC from Ethereum to Polygon
        • Bridge TruMATIC from Polygon to Ethereum
    • TruAPT Token
      • Contract Address
      • Wallets
      • Transferring
      • Staking & Unstaking
    • TruNEAR Token
      • Contract Address
      • Wallets
      • Transferring
      • Staking & Unstaking
    • TruINJ Token
      • Contract Address
      • Wallets
      • Transferring
      • Staking & Unstaking
    • TruSOL Token
      • Contract Address
      • Wallets
      • Transferring
      • Staking & Unstaking
  • Getting Access
    • Accessing the Protocol
    • Jurisdictions
  • Resources
    • Website
    • App
  • Developers
    • Security & Audits
  • Integrated Third Parties
    • Elliptic
  • Polices
    • Polices and Terms
    • Digital Asset Warning
Powered by GitBook
On this page
  • Overview
  • Technical Details

Was this helpful?

  1. TruStake Vaults

Calculating Vault Performance

PreviousSeeing your Allocation HistoryNextValidators

Last updated 1 year ago

Was this helpful?

Overview

The rewards percentage is estimated on-the-fly using actual vault data. This takes the last five days or so of vault rewards and assumes they are representative of the next year.

The rewards shown exclude .

Technical Details

More concretely:

  1. The TruFin LST / Native Token exchange rate as calculated by the vault is sampled periodically, on average every hour.

  2. This time-series is then resampled, interpolating linearly in time between points in the price series to generate a new time-series with points precisely one hour apart.

  3. The mean hourly return is taken over the last 120 share price readings.

  4. This average is then compounded hourly to give an annual return.

Formally, denote by {(ti,si)}i=1,…,120\{(t_{i},s_{i})\}_{i=1,\dots,120}{(ti​,si​)}i=1,…,120​ tuples representing successive times t1<…<t120t_{1} < \ldots < t_{120}t1​<…<t120​ and exchange rate prices originally sampled. This is converted into a time-series {(tj′,sj′)}j=1,…,n\{(t^\prime_{j},s^\prime_{j})\}_{j = 1,\dots,n}{(tj′​,sj′​)}j=1,…,n​ where for each jjj

tj+1′−tj′=1 hourtn′=t120sj′=si+1(ti+1−tj′)+si(tj′−ti)ti+1−ti\begin{align*}t^\prime_{j+1} - t^\prime_{j} &= 1\text{ hour}\\ t^\prime_{n} &= t_{120} \\ s^\prime_{j} &= \frac{s_{i+1}(t_{i+1} - t^\prime_j) + s_{i}(t^\prime_{j} - t_{i})}{t_{i+1} - t_{i}}\end{align*}tj+1′​−tj′​tn′​sj′​​=1 hour=t120​=ti+1​−ti​si+1​(ti+1​−tj′​)+si​(tj′​−ti​)​​

where iii is such that ti≤tj′≤ti+1t_{i} \le t^\prime_{j} \le t_{i+1}ti​≤tj′​≤ti+1​ and n=⌊t120−t11 hour⌋n = \left\lfloor \frac{t_{120} - t_{1}}{\text{1 hour}} \right\rfloorn=⌊1 hourt120​−t1​​⌋, i.e. the number of whole hours in the original sample. We then convert this into a list of hourly returns, adjusting for vault fees rj=(sj+1/sj−1)/(1−fee)r_{j} = (s_{j+1} / s_{j} - 1) / (1-\text{fee})rj​=(sj+1​/sj​−1)/(1−fee). To calculate the final rewards, we take the mean rˉ=1n−1∑j=1n−1rj\bar{r} = \frac{1}{n-1}\sum_{j=1}^{n-1}r_{j}rˉ=n−11​∑j=1n−1​rj​ of these hourly returns and compound this over a year to give an annual number:

APY:=(1+rˉ)24×365−1\mathrm{APY} := \left(1+\bar{r}\right)^{24\times 365} - 1APY:=(1+rˉ)24×365−1

Please note: the APY displayed on the front end is simply an estimate and can vary significantly depending on the performance of the network and of the validator to which we delegate.

Digital Assets prices are volatile and fluctuate day-to-day. Transactions involving these Digital Assets through the Protocol are a high-risk activity. Proper diligence and sound judgement should be used in evaluating the risks associated with these activities. Neither TruFin nor the Protocol solicit nor make any representation that Digital Assets are an investment vehicle suitable for a user. The decision to undertake transactions involving Digital Assets on the Protocol rests entirely on the user's own independent judgement. The Terms and Conditions in full can be found .

here
vault fees