Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(participation): decay support #915

Merged
merged 15 commits into from
Aug 10, 2022
Merged

feat(participation): decay support #915

merged 15 commits into from
Aug 10, 2022

Conversation

lumtis
Copy link
Contributor

@lumtis lumtis commented Jul 27, 2022

Add in the params of the module decay information.

If enabled, a decay factor is applied to received rewards depending on the current timestamp

Decay factor change is linear from start to end. At end airdrop is no longer claimable.

@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #915 (a0a8a78) into develop (9366849) will increase coverage by 0.04%.
The diff coverage is 22.09%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #915      +/-   ##
===========================================
+ Coverage    10.55%   10.60%   +0.04%     
===========================================
  Files          327      328       +1     
  Lines        75202    75537     +335     
===========================================
+ Hits          7939     8007      +68     
- Misses       67073    67340     +267     
  Partials       190      190              
Impacted Files Coverage Δ
x/claim/types/params.pb.go 0.90% <0.37%> (-0.80%) ⬇️
x/claim/types/params.go 60.86% <80.00%> (+14.71%) ⬆️
x/claim/keeper/mission.go 96.51% <100.00%> (+0.30%) ⬆️
x/claim/keeper/params.go 100.00% <100.00%> (ø)
x/claim/types/decay.go 100.00% <100.00%> (ø)

@lumtis lumtis marked this pull request as ready for review August 5, 2022 14:10
@lumtis
Copy link
Contributor Author

lumtis commented Aug 5, 2022

Let's wait for #914 before merging this PR

Otherwise, I still open it for review @aljo242

aljo242
aljo242 previously approved these changes Aug 8, 2022
Copy link
Contributor

@aljo242 aljo242 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just run make format before merging

@lumtis lumtis merged commit 0cf0d76 into develop Aug 10, 2022
@lumtis lumtis deleted the feat/decay branch August 10, 2022 12:13
@lumtis lumtis linked an issue Aug 18, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement decay support for distribution
2 participants