-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for the immunify bounty + instant exit (#1)
* feat: remove deposit_for * feat: emergency_withdrawal inside veANGLE * feat: fixture to be able to deploy and use veANGLE * feat: balanceOf now search for previous timestamp instead of reverting * fix: compile errors for new version of veANGLE * feat: remove the constructor from veANGLE * feat: add back the deposit_for for the veANGLE contract * feat: chaneg the old veANGLE to the deployed version * feat: withdraw fast now remove the lock and makes all non view functions unaccessible * fix: veANGLE now compiles with some syntax fixes * tests: emergency withdrawal * feat: remove via_ir from compilation * style: prettier contracts * chore: less strict linting * tests: unit tests for balanceOf * tests: add invariants setup * tests: add invariant working tests * chore: update foundry.toml for invariants * refacotr: update solidity version * chore: remove --sizes check in ci * chore: install vyper in ci * chore: use correct python version to install vyper * chore: try more verbose for unit tests * feat: remove all unused files * style: fix solhint warnings * feat: add back some interfaces * chore: switch to fsolidity version 0.8.22 and use via_ir * feat: remove Simulate script * feat: use private angle-sdk * chore: update CI to install sdk * tests: add more unit tests regarding withdraw_fast * feat: add areason when reverting when no emergency * chore: update solidity version in vscode settings * chore: newline in .npmrc * style: format IStableMaster * chore: update utils dependency * feat: DeployVeAngle script * feat: vyper deployer with arguments use vyper * refactor: remove BasicScript * feat: add fuzz tests for emergencyWithdrawal * tests: assertEq in invariants tests * doc: update README.md * doc: explain how to upgrade veANGLE * tests: fix invariants tests for balanceOf * fix: fuzz tests now doesn't infinite loop * tests: try to withdraw twice * fix: script to deploy inherit VyperDeployer * fix: remove reetrancy lock in withdraw_fast * chore: upgrade vyper version in CI * chore: remove Upgrade doc
- Loading branch information
1 parent
386791a
commit e0d7134
Showing
59 changed files
with
3,105 additions
and
640 deletions.
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.