generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: oracles with firewalls on mint and burn (#105)
* feat: oracles with firewalls on mint and burn * feat: oracles with target value as max * feat: fixed tests + test on mint and burn firewalls oracles * test updateOracle * feat: start testing deployment * feat: start scripts * feat: mint and burn test done * chore: try to fix linter issues * feat: testing done * format: prettier contracts * chore : add scripts to ignored files in slither * chore: add uri env variables to ci tests * fix: SwapTest and SavingsTest now compiles * fix part of the stack too deep when via-ir * chore remap import from test * find which test files has compilation problem * fix all compilation tests except RedeemTest * add back the RedeemTest * fix redeem test compilation * chore: setup repo inside ci * chore: move setup repo action to actions subdirectory * start burn protection for users * fix firewall and user protection + tests * feat: add back burnRatio deviation user protection * fix burnRatio protection * return ratio * tests fixed * decimal issue * working tests * yarn prettier * add bERNX + new target exposures * testing after adding bERNX * feat: change updateOracle to only trustedSeller only * add fork block number option * change input to secret * revert prev change * add space * fix: fix install * update vscode settings * reduce stack too deep * fix burn test * revert deadline tests changes * feat: USDA setup (#108) * feat: usda setup * feat: setup script for USDA transmuter * feat: Morpho test * adjusting comments * feat: put variables in constants * feat: upgrade tests * feat: change some stuff * fix tests * feat: add keyring * feat: update sdk * feat: change steakUSDC fees * fix last tests * finish usda setup * feat: add minter flashloan * remove flashloan * feat: script * fix: lint * fix: firewall mint steakhouse * remove variables * Add a test on non arbitrage Mint->Burn * update post review * removed checks on oracle update * compiling version * fix tests * fix all tests and deploy tests * chore: review minor changes
- Loading branch information
1 parent
61d9be3
commit ec7d7ab
Showing
55 changed files
with
3,898 additions
and
462 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
{ | ||
"solidity.formatter": "prettier", | ||
"[typescript]": { | ||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint" | ||
}, | ||
"[solidity]": { | ||
"editor.defaultFormatter": "JuanBlanco.solidity" | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true | ||
}, | ||
"editor.formatOnSave": true, | ||
"workbench.colorCustomizations": { | ||
"diffEditor.insertedTextBackground": "#00bb0044", | ||
"diffEditor.removedTextBackground": "#ff000044" | ||
}, | ||
"slither.solcPath": "", | ||
"slither.hiddenDetectors": [], | ||
"solidity.compileUsingRemoteVersion": "v0.8.19+commit.7dd6d404" | ||
"solidity.compileUsingRemoteVersion": "v0.8.22", | ||
"files.insertFinalNewline": true, | ||
"solidity.remappings": [ | ||
"ds-test/=lib/forge-std/lib/ds-test/src/", | ||
"forge-std/=lib/forge-std/src/", | ||
"stringutils/=lib/solidity-stringutils", | ||
"contracts/=contracts/", | ||
"test/=test/", | ||
"interfaces/=contracts/interfaces/", | ||
"oz/=lib/openzeppelin-contracts/contracts/", | ||
"oz-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", | ||
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", | ||
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", | ||
"mock/=test/mock/", | ||
"prb/math/=lib/prb-math/src/", | ||
"borrow/=lib/borrow-contracts/contracts", | ||
"utils/=lib/utils" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity >=0.5.0; | ||
|
||
/// @title IMorphoOracle | ||
/// @notice Interface for the oracle contracts used within Morpho | ||
interface IMorphoOracle { | ||
function price() external view returns (uint256); | ||
} |
Oops, something went wrong.