-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixes for the immunify bounty + instant exit #1
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
415bc78
feat: remove deposit_for
0xtekgrinder 6214329
feat: emergency_withdrawal inside veANGLE
0xtekgrinder 56247d9
feat: fixture to be able to deploy and use veANGLE
0xtekgrinder 884b4f5
feat: balanceOf now search for previous timestamp instead of reverting
0xtekgrinder b3447ce
fix: compile errors for new version of veANGLE
0xtekgrinder 0c7ecc3
feat: remove the constructor from veANGLE
0xtekgrinder fad028d
feat: add back the deposit_for for the veANGLE contract
0xtekgrinder 667b466
feat: chaneg the old veANGLE to the deployed version
0xtekgrinder 2131b5a
feat: withdraw fast now remove the lock and makes all non view functi…
0xtekgrinder 2057b20
fix: veANGLE now compiles with some syntax fixes
0xtekgrinder 1e74df9
tests: emergency withdrawal
0xtekgrinder 80299a3
feat: remove via_ir from compilation
0xtekgrinder 0190f9b
style: prettier contracts
0xtekgrinder 81035f8
chore: less strict linting
0xtekgrinder c7ae7c0
tests: unit tests for balanceOf
0xtekgrinder 90cda1b
tests: add invariants setup
0xtekgrinder 7c1380f
tests: add invariant working tests
0xtekgrinder ed86816
chore: update foundry.toml for invariants
0xtekgrinder ba9dec7
refacotr: update solidity version
0xtekgrinder 18af9a9
chore: remove --sizes check in ci
0xtekgrinder 854b654
chore: install vyper in ci
0xtekgrinder 5dded85
chore: use correct python version to install vyper
0xtekgrinder 13cee93
chore: try more verbose for unit tests
0xtekgrinder cd55d1b
feat: remove all unused files
0xtekgrinder 10b2cd8
style: fix solhint warnings
0xtekgrinder 1399271
feat: add back some interfaces
0xtekgrinder 5fcb527
chore: switch to fsolidity version 0.8.22 and use via_ir
0xtekgrinder d6f439b
feat: remove Simulate script
0xtekgrinder 391856c
feat: use private angle-sdk
0xtekgrinder 1004839
chore: update CI to install sdk
0xtekgrinder 01701aa
tests: add more unit tests regarding withdraw_fast
0xtekgrinder 15b2b8c
feat: add areason when reverting when no emergency
0xtekgrinder 91de576
chore: update solidity version in vscode settings
0xtekgrinder 7de5b50
chore: newline in .npmrc
0xtekgrinder 66c955c
style: format IStableMaster
0xtekgrinder 7191028
chore: update utils dependency
0xtekgrinder 51a0117
feat: DeployVeAngle script
0xtekgrinder 481299f
feat: vyper deployer with arguments use vyper
0xtekgrinder 42b435e
refactor: remove BasicScript
0xtekgrinder 1ab6280
feat: add fuzz tests for emergencyWithdrawal
0xtekgrinder 8bf18c4
tests: assertEq in invariants tests
0xtekgrinder 23bbcf1
doc: update README.md
0xtekgrinder 3b4d76d
doc: explain how to upgrade veANGLE
0xtekgrinder 6685b42
tests: fix invariants tests for balanceOf
0xtekgrinder f7680c9
fix: fuzz tests now doesn't infinite loop
0xtekgrinder dae57c9
tests: try to withdraw twice
0xtekgrinder 89a3d6b
fix: script to deploy inherit VyperDeployer
0xtekgrinder 60e1f44
fix: remove reetrancy lock in withdraw_fast
0xtekgrinder 841e12a
chore: upgrade vyper version in CI
0xtekgrinder f1c7f5a
chore: remove Upgrade doc
0xtekgrinder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Setup repo | ||
description: Runs all steps to setup the repo (install node_modules, build, etc...) | ||
inputs: | ||
registry-token: | ||
description: 'PAT to access registries' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
shell: bash | ||
run: | | ||
echo "::set-output name=dir::$(yarn cache dir)" | ||
echo "::set-output name=version::$(yarn -v)" | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
path: | | ||
**/node_modules | ||
${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
|
||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: echo "//npm.pkg.github.com/:_authToken=$GH_REGISTRY_ACCESS_TOKEN" >> .npmrc && yarn install --frozen-lockfile --verbose && rm -f .npmrc | ||
env: | ||
GH_REGISTRY_ACCESS_TOKEN: ${{ inputs.registry-token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@angleprotocol:registry=https://npm.pkg.github.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we remove the size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be able to compile because it fails as a test is too long