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

Deposit accounting #6

Merged
merged 1 commit into from
Dec 22, 2023
Merged

Deposit accounting #6

merged 1 commit into from
Dec 22, 2023

Conversation

apbendi
Copy link
Collaborator

@apbendi apbendi commented Dec 12, 2023

This PR adds basic accounting to track per-deposit, per-depositor, and global accounting information when users stake tokens. It does not add the ability to withdraw or modify deposits, nor does it implement any of the logic around actually earning rewards from stake. Those features will be implemented in future PRs.

@apbendi apbendi force-pushed the deposit-accounting branch 2 times, most recently from ca84d74 to 9c110e1 Compare December 13, 2023 03:16
@apbendi apbendi marked this pull request as ready for review December 20, 2023 19:18
Copy link
Collaborator

@wildmolasses wildmolasses left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@alexkeating alexkeating left a comment

Choose a reason for hiding this comment

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

Looking good a couple small comments and questions

test/UniStaker.t.sol Show resolved Hide resolved
test/UniStaker.t.sol Show resolved Hide resolved
test/UniStaker.t.sol Show resolved Hide resolved
Copy link

Coverage after merging deposit-accounting into main will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   UniStaker.sol94.74%50%100%100%57

@apbendi apbendi merged commit a330505 into main Dec 22, 2023
4 checks passed
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.

3 participants