πŸ‘“Precise APY calculations

General (Commonly used formulas)

User’s reward allocation for a singular position

RD%=Cxβˆ‘n=1usersCnΒ Cx=Tβ‹…MR_{D\%} = \frac{C_x}{\sum_{n=1}^{users}C_n} \\\ \\C_x = T \cdot M

Where:RD%β€…β€Šβˆ’β€…β€Šallocationβ€…β€Šofβ€…β€Šrewardsβ€…β€Šforβ€…β€Štheβ€…β€Šuserβ€…β€ŠXβ€²sβ€…β€ŠpositionCx,Cnβˆ’β€…β€Šcontributionβ€…β€Šofβ€…β€Štheβ€…β€Šuserβ€…β€ŠX,β€…β€ŠNusersβ€…β€Šβˆ’β€…β€Šamountβ€…β€Šofβ€…β€Špositionsβ€…β€Šinβ€…β€Štheβ€…β€ŠPolicyβ€…β€ŠBookTβ€…β€Šβˆ’β€…β€Šuserβ€…β€ŠXβ€²sβ€…β€Šstakedβ€…β€Šfundsβ€…β€Šofβ€…β€Štheβ€…β€ŠpositionMβ€…β€Šβˆ’β€…β€Šuserβ€…β€ŠXβ€²sβ€…β€Šmultiplierβ€…β€Šofβ€…β€Štheβ€…β€Šposition\\\textbf{Where:}\\R_{D\%} \; -\; allocation \; of \; rewards \; for \; the \; user \; X's \; position\\C_x, C_n - \; contribution \; of \; the \; user \; X,\; N \\users \; - \; amount \; of \; positions \; in \; the \; Policy \; Book\\T \; - \; user \; X's \; staked \; funds \; of \; the \; position\\M \; - \; user \; X's \; multiplier \; of \; the \; position

User’s yearly rewards for position X

Rx=RPBβ‹…BPYβ‹…RD%R_x= RPB \cdot BPY \cdot R_{D\%}

Where:Rxβˆ’β€…β€Šyearlyβ€…β€Šrewardsβ€…β€Šforβ€…β€Štheβ€…β€Šuserβ€…β€ŠXβ€²sβ€…β€ŠpositionRPBβ€…β€Šβˆ’β€…β€ŠPolicyβ€…β€ŠBookβ€²sβ€…β€Šrewardβ€…β€Šperβ€…β€ŠblockBPYβ€…β€Šβˆ’β€…β€Šblocksβ€…β€Šinβ€…β€Šaβ€…β€ŠyearRD%β€…β€Šβˆ’β€…β€Šallocationβ€…β€Šofβ€…β€Šrewardsβ€…β€Šforβ€…β€Štheβ€…β€Šuserβ€…β€ŠXβ€²sβ€…β€Šposition\\\textbf{Where:}\\R_x - \; yearly\; rewards \; for \; the \; user \; X's \; position\\RPB \; - \; Policy \;Book's \; reward \; per \; block\\BPY \; - \; blocks \; in \; a \; year\\R_{D\%} \; - \; allocation \; of \; rewards \; for \; the \; user \; X's \; position

Policy Book X reward multiplier calculation

Where: UR - Utilization Ratio RM - Reward Multiplier

These constants have been skipped in the formulas for clarity's sake. Base RM = 1 Min. RM = 0.15 Max. RM = 2 Risky UR = 85% Moderate UR = 50%

UR<50%β€…β€ŠβŸΉβ€…β€ŠRMx=URβˆ’1%50%βˆ—(1βˆ’0.15)+0.15UR < 50\% \implies RM_x=\frac{UR-1\%}{50\%}*(1-0.15)+0.15
50%<UR<85%β€…β€ŠβŸΉβ€…β€ŠRMx=150 \%< UR < 85\% \implies RM_x=1
UR>85%β€…β€ŠβŸΉβ€…β€ŠRMx=1+(2βˆ’1)βˆ—(URβˆ’85%)100%βˆ’85%UR > 85\% \implies RM_x= 1+\frac{(2-1)*(UR-85\%)}{100\%-85\%}

Policy Book X reward allocation calculation

RP%=RMxβ‹…CPIPxβˆ‘n=1pools(RMnβ‹…Β CPIPn)R_{P\%} = \frac{RM_x \cdot CPIP_x}{\sum_{n=1}^{pools}(RM_n \cdot \ CPIP_n)}

Where:RP%β€…β€Šβˆ’β€…β€Šallocationβ€…β€Šofβ€…β€Šrewardsβ€…β€Šforβ€…β€Štheβ€…β€ŠPolicyβ€…β€ŠBookβ€…β€ŠXRMxβ€…β€Šβˆ’β€…β€ŠRewardβ€…β€ŠMultplierβ€…β€Šofβ€…β€Štheβ€…β€ŠPolicyβ€…β€ŠBookβ€…β€ŠXCPIPxβ€…β€Šβˆ’β€…β€Šstakedβ€…β€ŠDEINxCoverβ€…β€Šinβ€…β€ŠPolicyβ€…β€ŠBookβ€…β€ŠXpoolsβ€…β€Šβˆ’β€…β€Šnumberβ€…β€Šofβ€…β€Šwhitelistedβ€…β€Špools\\\textbf{Where:}\\R_{P\%} \; - \; allocation \; of \; rewards \; for \; the \; Policy \; Book\; X\\RM_x \; - \; Reward \; Multplier \; of \; the \; Policy \; Book \; X\\CPIP_x \; - \; staked \; DEINxCover \; in \; Policy \; Book \; X\\pools \; - \; number \; of \; whitelisted \;pools

Underwriting Position APY

APYx=Rxβ‹…DEINpriceTxAPY_x = \frac{R_x\cdot DEIN_{price}}{T_x}

Where:Rxβ€…β€Šβˆ’β€…β€Šyearlyβ€…β€Šrewardsβ€…β€Šforβ€…β€Štheβ€…β€Špositionβ€…β€ŠxTxβ€…β€Šβˆ’β€…β€Šstakedβ€…β€Šfundsβ€…β€Šinβ€…β€Štheβ€…β€Špositionβ€…β€ŠxDEINpriceβ€…β€Šβˆ’β€…β€Špriceβ€…β€Šofβ€…β€ŠDEIN\\\textbf{Where:} \\R_x \; - \; yearly \;rewards \; for \; the \; position \; x\\T_x \; - \; staked \; funds \; in \; the \; position \; x\\DEIN_{price} \; - \; price \; of \; DEIN

Underwriting Max (General) APY

This is the APY used on general Policy Book views. It's an estimation of the biggest possible return, it assumes the minimal investment and longest staking duration.

APYmax=Rxβ‹…DEINpriceTx\\APY_{max} = \frac{R_x \cdot DEIN_{price}}{T_x}

Where:Rxβ€…β€Šisβ€…β€Šcalculatedβ€…β€Šforβ€…β€ŠCx=500Tx=100DEINpriceβˆ’β€…β€Špriceβ€…β€Šofβ€…β€ŠDEIN \\\textbf{Where:}\\R_x \; is \; calculated \; for \; C_x = 500 \\T_x = 100 \\DEIN_{price} - \; price \; of \; DEIN

Last updated