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

Add audit reports, deployment logs, & update README #88

Merged
merged 3 commits into from
May 24, 2024
Merged
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
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ scopelint spec

This command will use the names of the contract's unit tests to generate a human readable spec. It will list each contract, its constituent functions, and the human readable description of functionality each unit test aims to assert.

### Audits

The UniStaker, V3FactoryOwner, and DelegationSurrogate contracts have been extensively audited. The reports for these audits can be found in the [/audits](/audits/) directory.

### Deployments

Production deployments of these contracts are available at the following addresses on Ethereum mainnet:

|Contract|Address|
|--------|-------|
|UniStaker|[0xE3071e87a7E6dD19A911Dbf1127BA9dD67Aa6fc8](https://etherscan.io/address/0xe3071e87a7e6dd19a911dbf1127ba9dd67aa6fc8#code)|
|V3FactoryOwner|[0x2e27332b25Ce245F6628377bc83573A001313C58](https://etherscan.io/address/0x2e27332b25ce245f6628377bc83573a001313c58)|

## License

The code in this repository is licensed under the [GNU Affero General Public License](LICENSE) unless otherwise indicated.
Expand Down
Binary file added audits/2024_02_UniStaker_ToB_Report.pdf
Binary file not shown.
1,241 changes: 1,241 additions & 0 deletions audits/2024_03_UniStaker_Code4rena Contest.md

Large diffs are not rendered by default.

Binary file added audits/2024_04_UniStaker_Cantina_Report.pdf
Binary file not shown.
252 changes: 252 additions & 0 deletions broadcast/Deploy.s.sol/1/run-1716563645.json

Large diffs are not rendered by default.

252 changes: 252 additions & 0 deletions broadcast/Deploy.s.sol/1/run-latest.json

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions test/helpers/UniStaker.handler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract UniStakerHandler is CommonBase, StdCheats, StdUtils {
countCall("enableRewardNotifier")
doCheckpoints
{
vm.assume(_notifier != address(0));
vm.assume(_notifier != address(0) && _notifier != address(uniStaker));
_rewardNotifiers.add(_notifier);
vm.prank(admin);
uniStaker.setRewardNotifier(_notifier, true);
Expand Down Expand Up @@ -157,9 +157,7 @@ contract UniStakerHandler is CommonBase, StdCheats, StdUtils {
function claimReward(uint256 _actorSeed) public countCall("claimReward") doCheckpoints {
_useActor(_beneficiaries, _actorSeed);
vm.startPrank(_currentActor);
uint256 rewardsClaimed =
uniStaker.scaledUnclaimedRewardCheckpoint(_currentActor) / uniStaker.SCALE_FACTOR();
uniStaker.claimReward();
uint256 rewardsClaimed = uniStaker.claimReward();
vm.stopPrank();
ghost_rewardsClaimed += rewardsClaimed;
}
Expand Down
Loading