{"id":18705012,"url":"https://github.com/aave/incentives-controller","last_synced_at":"2025-04-12T10:07:03.855Z","repository":{"id":43857778,"uuid":"355450145","full_name":"aave/incentives-controller","owner":"aave","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-23T10:27:11.000Z","size":569,"stargazers_count":15,"open_issues_count":5,"forks_count":39,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T10:04:40.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aave.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-07T07:21:47.000Z","updated_at":"2025-04-07T10:38:19.000Z","dependencies_parsed_at":"2022-09-09T21:02:05.903Z","dependency_job_id":null,"html_url":"https://github.com/aave/incentives-controller","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/aave%2Fincentives-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aave%2Fincentives-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aave%2Fincentives-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aave%2Fincentives-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aave","download_url":"https://codeload.github.com/aave/incentives-controller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550634,"owners_count":21122933,"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-07T12:09:25.108Z","updated_at":"2025-04-12T10:07:03.832Z","avatar_url":"https://github.com/aave.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n[![Build pass](https://github.com/aave/incentives-controller/actions/workflows/node.js.yml/badge.svg)](https://github.com/aave/incentives-controller/actions/workflows/node.js.yml)\n[![codecov](https://codecov.io/gh/aave/incentives-controller/branch/master/graph/badge.svg?token=DRFNLw506C)](https://codecov.io/gh/aave/incentives-controller)\n\n# Aave incentives\n\n## Introduction\n\nThis repo contains the code and implementation of the contracts used to activate the liquidity mining program on the main market of the Aave protocol.\n\n## Implementation\n\nThe rewards are distributed in the form of stkAAVE, which is obtained by staking Aave in the Safety Module Staking contract located at https://etherscan.io/address/0x4da27a545c0c5b758a6ba100e3a049001de870f5.\n\nThe incentives controller contract, `StakedTokenIncentivesController`, stakes the rewards while transferring the obtained stkAAVE to the claiming user.\n\nThe implementation logic is defined as follow:\n\n- Each asset has a defined `emissionPerSecond`\n- For each asset, an `assetIndex` keeps track of the total accumulated rewards\n- For each user, a `userIndex` keeps track of the user accumulated rewards\n- On `handleAction()`, that is triggered whenever an aToken/debt Token is minted/burned by a user, the `userIndex` and the `assetIndex` are accumulated depending on the time passed since the last action\n- At any point in time the user pending rewards can be queried through the `getRewardsBalance()` function\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faave%2Fincentives-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faave%2Fincentives-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faave%2Fincentives-controller/lists"}