centfinance / Symmetric.PoolsUI

High quality liquidity pool and index fund. The link below is for the xDai development server.
https://pools-xdai.cent.finance
GNU General Public License v3.0
5 stars 6 forks source link

CELO rewards spit with new SYMM token pools #126

Closed TheNewAutonomy closed 2 years ago

TheNewAutonomy commented 2 years ago

With the addition of SYMM Optics v2 and new pools that use this new token we need to pay out CELO rewards to these new pools as well as the pools with SYMM Optics v1. Below is the logic that we've been supplied to implement.

WEEKLY CELO QUANTITY for 60/40 SYMM/cUSD pool needs to be distributed by TVL for eaach so this would be addded to our current formula current fformula for 60/40 pools stable = {​​($40,000/celo price) / 84 ddays}​​ = daily celo rewards we then have to calculate breakdown by TVL as follows in the U/I => (TVL for SYMMv1 pool) / (TVL SYMMv1 pool + TVL SYMM v2 pool) this above equation multiplied by daily breakdown gives us CELO rewards for SYMM v1 for SYMM v2 we do => DAILY CELO REWARDS * {​​ (TVL for SYMM v2 pool)/(TVL for SYMM v2 +TVL SYMMv1)}​​ this ratio ensure the rewards are distributed based on market cap between the 2 pools as TVL leaves SYMM v1 DAILY rewards will go up for v2 pools