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

cleanup: remove unused RewardStreamer contract #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions .gas-report
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,6 @@
| run | 2383391 | 2383391 | 2383391 | 2383391 | 3 |


| src/RewardsStreamer.sol:RewardsStreamer contract | | | | | |
|--------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 677674 | 3080 | | | | |
| Function Name | min | avg | median | max | # calls |
| accountedRewards | 350 | 600 | 350 | 2350 | 8 |
| getUserInfo | 789 | 789 | 789 | 789 | 12 |
| rewardIndex | 349 | 599 | 349 | 2349 | 8 |
| stake | 85202 | 100705 | 105102 | 111812 | 3 |
| totalStaked | 350 | 350 | 350 | 350 | 8 |
| unstake | 110056 | 110062 | 110062 | 110068 | 2 |
| updateRewardIndex | 23372 | 45573 | 39574 | 73774 | 3 |


| src/RewardsStreamerMP.sol:RewardsStreamerMP contract | | | | | |
|------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
Expand Down Expand Up @@ -201,12 +187,11 @@
| test/mocks/MockToken.sol:MockToken contract | | | | | |
|---------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 625370 | 3260 | | | | |
| 625454 | 3260 | | | | |
| Function Name | min | avg | median | max | # calls |
| approve | 46330 | 46339 | 46342 | 46342 | 262 |
| balanceOf | 558 | 989 | 558 | 2558 | 139 |
| mint | 51279 | 56438 | 51279 | 68379 | 275 |
| transfer | 34384 | 42934 | 42934 | 51484 | 2 |
| approve | 46330 | 46339 | 46342 | 46342 | 257 |
| balanceOf | 558 | 926 | 558 | 2558 | 103 |
| mint | 51279 | 56407 | 51279 | 68379 | 270 |


| test/mocks/StackOverflowStakeManager.sol:StackOverflowStakeManager contract | | | | | |
Expand Down
1 change: 0 additions & 1 deletion .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ RewardsStreamerMP_RewardsTest:testSetRewards_RevertsBadAmount() (gas: 39404)
RewardsStreamerMP_RewardsTest:testSetRewards_RevertsBadDuration() (gas: 39340)
RewardsStreamerMP_RewardsTest:testSetRewards_RevertsNotAuthorized() (gas: 39375)
RewardsStreamerMP_RewardsTest:testTotalRewardsSupply() (gas: 610662)
RewardsStreamerTest:testStake() (gas: 869181)
StakeTest:test_StakeMultipleAccounts() (gas: 494442)
StakeTest:test_StakeMultipleAccountsAndRewards() (gas: 500380)
StakeTest:test_StakeMultipleAccountsMPIncreasesMaxMPDoesNotChange() (gas: 830612)
Expand Down
126 changes: 0 additions & 126 deletions src/RewardsStreamer.sol

This file was deleted.

206 changes: 0 additions & 206 deletions test/RewardsStreamer.t.sol

This file was deleted.

Loading