Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 668 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 668 Bytes

Cosmos Zone APR Calculation

APR 구하는 공식

Annual Provision = GET {Cosmos SDK REST Endpoint}/cosmos/mint/v1beta1/annual_provisions
Bonded Tokens = GET {Cosmos SDK Rest Endpoint}/cosmos/staking/v1beta1/pool

block_provision = Annual Provision / blocks_per_year-Param
Real Annual Provision = block_provision * blocks_per_Year-Real

Nominal APR = [Annual Provision * (1-Community Tax)] / Bonded Tokens ;
Real Staking APR = (Nominal APR) * [(Real Annual Provision) / (Annual Provision)]

Final Staking APR = (Real Staking APR) * (1-Validator’s commission)

Run

npm i

COSMOS_REST_URL=https://evmos-testnet-api.polkachu.com npm start