{"id":20573840,"url":"https://github.com/soohoio/cosmos-staking-apr","last_synced_at":"2025-07-27T11:38:05.647Z","repository":{"id":86879833,"uuid":"588881302","full_name":"soohoio/cosmos-staking-apr","owner":"soohoio","description":"Cosmos Zone 별 Staking APR 구하는 방법 및 코드 구현","archived":false,"fork":false,"pushed_at":"2023-04-24T14:55:16.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T21:29:00.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soohoio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-14T10:49:02.000Z","updated_at":"2023-01-14T10:49:50.000Z","dependencies_parsed_at":"2023-05-29T16:30:27.483Z","dependency_job_id":null,"html_url":"https://github.com/soohoio/cosmos-staking-apr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soohoio%2Fcosmos-staking-apr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soohoio%2Fcosmos-staking-apr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soohoio%2Fcosmos-staking-apr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soohoio%2Fcosmos-staking-apr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soohoio","download_url":"https://codeload.github.com/soohoio/cosmos-staking-apr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242193283,"owners_count":20087347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T05:29:19.010Z","updated_at":"2025-03-06T10:35:56.529Z","avatar_url":"https://github.com/soohoio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cosmos Zone APR Calculation\n\n\n## APR 구하는 공식\n\n```\nAnnual Provision = GET {Cosmos SDK REST Endpoint}/cosmos/mint/v1beta1/annual_provisions\nBonded Tokens = GET {Cosmos SDK Rest Endpoint}/cosmos/staking/v1beta1/pool\n\nblock_provision = Annual Provision / blocks_per_year-Param\nReal Annual Provision = block_provision * blocks_per_Year-Real\n\nNominal APR = [Annual Provision * (1-Community Tax)] / Bonded Tokens ;\nReal Staking APR = (Nominal APR) * [(Real Annual Provision) / (Annual Provision)]\n\nFinal Staking APR = (Real Staking APR) * (1-Validator’s commission)\n```\n\n## Run\n\n```bash\nnpm i\n\nCOSMOS_REST_URL=https://evmos-testnet-api.polkachu.com npm start\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoohoio%2Fcosmos-staking-apr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoohoio%2Fcosmos-staking-apr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoohoio%2Fcosmos-staking-apr/lists"}