Skip to content

Commit

Permalink
cleanup: remove unused RewardStreamer contract
Browse files Browse the repository at this point in the history
This was some version of the staking contract for demonstration purposes
and is not actually used as we're working on `RewardStreamerMP` version,
which is aware of multiplier points.

Closes #84
  • Loading branch information
0x-r4bbit committed Dec 12, 2024
1 parent b5ce251 commit a432d3f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 352 deletions.
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.

0 comments on commit a432d3f

Please sign in to comment.