-
Notifications
You must be signed in to change notification settings - Fork 12
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
Deploy to Base and support USDC #172
Open
maxweng
wants to merge
53
commits into
develop
Choose a base branch
from
feature/uni-1825-deploy-to-base-sepolia-testnet
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
6b53062
new: deploy lens on optimism.
twygod af8688c
chg: update hardhat to 2.21.0
maxweng c94c453
chg: update deploy script to support USDC and Base network
maxweng 68c84ad
chg: update github actions
maxweng a7092fe
chg: update hardhat version
maxweng eca9109
chg: remove gov actions
maxweng cf7330d
chg: update dependencies
maxweng 76c1e05
chg: update github actions
maxweng 96144bc
chg: add base-sepolia deployment
maxweng a0235ae
chg: update eth-optimism/sdk to support base network
maxweng 58df6dd
new: deploy lens
twygod 7758295
fix: unit error
twygod a4a5f81
chg: update contract and test
twygod cf09374
chg: update contract and test
twygod b31a98d
chg: update deploy script and deploy contract
twygod 36f7883
chg: deploy and set aaveadapter on base sepolia
twygod de2b1c3
new: add testing
twygod 38fc165
chg: add ScaledDecimalBase contract
maxweng b3ca13e
fix: compiler warnings
maxweng feabaf2
chg: add env var DECIMALS for various tokens decimals testing
maxweng 5b204ba
fix: update erc20 mock contract to fix permit func error
twygod c61b149
chg: add new test
twygod 7b00ef5
chg: update UNIT setting on foundry test
twygod 58a40b5
chg: set DECIMAL's default value if not set
maxweng 8003e7d
chg: add base-sepolia testnet
maxweng 9fe5a80
Merge remote-tracking branch 'origin/develop' into feature/uni-1825-d…
maxweng 353db2e
chg: fix test errors after merging the dev branch
maxweng 0ce7036
fix: slither warnings
maxweng 1e6c540
chg: add extra check on the withdrawal amount from the assetManager
maxweng 84eb9d7
chg: update to use the correct OZ lib
maxweng 9f1c1ea
fix: calculate the global total stake after total frozen is updated
maxweng 7c39016
fix: coverage report error
maxweng bb7454f
fix: rounding up the utoken amount when redeeming
maxweng b1786d2
Merge remote-tracking branch 'origin/feature/uni-1825-deploy-to-base-…
maxweng 10e974b
Merge pull request #175 from unioncredit/finding/uni-1992-repaying-a-…
maxweng da5c99d
chg: consider introducing an option for rounding the decimalReducing(…
twygod be12536
chg: add test
twygod 3ad06dc
chg: modify coverage configuration
twygod 2cc2c60
chg: add scaledDecimal test
twygod 2027dec
chg: update scaledDecimal test
twygod d5d4996
chg: update scaledDecimal test
twygod 9425e85
fix: repayBorrowWithERC20Permit functions use incorrectly scaled accu…
twygod 037dbea
chg: update test
twygod 1dd601d
fix: exchangeRateStored decimals are incorrect and misaligned with ex…
twygod b47c6b8
chg: update test
twygod 295042b
fix: the amount of _totalStaked added when writeOffDebt is not scaled
twygod 3d6da9a
chg: add test
twygod 93934fa
chg: max_borrow_rate to 100% apr
maxweng d3197fc
Merge branch 'feature/uni-1825-deploy-to-base-sepolia-testnet' into f…
maxweng ef7e42d
Merge pull request #180 from unioncredit/finding/uni-1989-wrong-calcu…
maxweng 2216798
fix: slither warnings
maxweng 65007a0
new: deploye contract when fixed
twygod 0626512
chg: update contract address
twygod 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
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 |
---|---|---|
|
@@ -11,12 +11,12 @@ jobs: | |
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
@@ -45,14 +45,14 @@ jobs: | |
run: yarn hh:test | ||
|
||
- name: Run Slither | ||
uses: crytic/[email protected].0 | ||
uses: crytic/[email protected].1 | ||
id: slither | ||
with: | ||
node-version: 16 | ||
node-version: 20 | ||
sarif: results.sarif | ||
fail-on: none | ||
|
||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v2 | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} |
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 |
---|---|---|
|
@@ -7,9 +7,8 @@ jobs: | |
name: Run slither | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: crytic/[email protected].0 | ||
- uses: actions/checkout@v4 | ||
- uses: crytic/[email protected].1 | ||
with: | ||
node-version: 16 | ||
node-version: 20 | ||
target: "." | ||
slither-args: '--filter-path "test|node_modules|contracts/mocks"' |
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ docs | |
.envrc | ||
dist | ||
report | ||
arguments.js |
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
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.
add comment