Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
99724c1
Add collateralFactor event on NFT oracle
SonOfMosiah Jan 25, 2023
4efc768
Ammon/supa 56 readability styling update (#208)
SonOfMosiah Mar 9, 2023
5449f3b
Add reinvest function
SonOfMosiah Mar 9, 2023
2a7a155
Rename Safe -> Wallet
SonOfMosiah Mar 9, 2023
a2ede88
Add quickWithdraw functions
SonOfMosiah Mar 10, 2023
c278207
Functional rebalance function
SonOfMosiah Mar 11, 2023
7bc6839
FIX: yarn tsc --noEmit
SonOfMosiah Mar 11, 2023
b47da46
FIX: yarn lint
SonOfMosiah Mar 11, 2023
d338806
No Global Imports
SonOfMosiah Mar 13, 2023
f342dd8
Merge pull request #212 from futureswap/ammon/supa-108-no-global-imports
SonOfMosiah Mar 13, 2023
b30cbce
Add safeTransfer options
SonOfMosiah Mar 13, 2023
07ed1cc
docs (README) fix typo
Alexsey Mar 14, 2023
3dd25d2
ref (lib/calls) drop useless code, give vars specific names
Alexsey Mar 14, 2023
490f649
feat (package:scripts) improve `start` to restart the node if already…
Alexsey Mar 14, 2023
ee4f668
chore (deployment/addresses.json) update localhost addresses
Alexsey Mar 14, 2023
b2747a7
feat (scripts/setupLocalhost) make ethernal credentials optional
Alexsey Mar 14, 2023
10ad05b
Add Operator events
SonOfMosiah Mar 14, 2023
11c1474
Ammon/supa 106 reduce executebatch complexity (#210)
SonOfMosiah Mar 20, 2023
0a3bc21
Merge branch 'master' into ammon/supa-75-create-batch-calls
SonOfMosiah Mar 20, 2023
8fe911d
chore (packages:pm2) 5.2.2 -> 5.3.0
Alexsey Mar 21, 2023
b777612
fix (packages:scripts) `start` and `stop`
Alexsey Mar 21, 2023
e877387
Add success validation for quickWithdraw
SonOfMosiah Apr 25, 2023
22d603d
Bump @openzeppelin/contracts from 4.8.2 to 4.8.3 (#220)
dependabot[bot] May 23, 2023
588dd21
Merge pull request #211 from supafinance/ammon/supa-75-create-batch-c…
SonOfMosiah May 23, 2023
b27a555
Merge pull request #224 from supafinance/SoM/emit-risk-factors
SonOfMosiah May 23, 2023
8686e47
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 20, 2023
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
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ rules:
spaced-comment: error
symbol-description: error

"@typescript-eslint/await-thenable": off
"@typescript-eslint/ban-ts-comment":
[error, {ts-ignore: "allow-with-description", minimumDescriptionLength: 5}]
"@typescript-eslint/consistent-generic-constructors": off
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,27 @@ jobs:
- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"

- name: "test with Forge"
run: "yarn test:forge"
# Add any step generating a gas report to a temporary file named gasreport.ansi. For example:
- name: Run tests
run: forge test --gas-report > gasreport.ansi # <- this file name should be unique in your repository!
env:
# make fuzzing semi-deterministic to avoid noisy gas cost estimation
# due to non-deterministic fuzzing (but still use pseudo-random fuzzing seeds)
FOUNDRY_FUZZ_SEED: 0x${{ github.event.pull_request.base.sha || github.sha }}

- name: Compare gas reports
uses: Rubilmax/foundry-gas-diff@v3.13.6
with:
summaryQuantile: 0.9 # only display the 10% most significant gas diffs in the summary (defaults to 20%)
sortCriteria: avg,max # sort diff rows by criteria
sortOrders: desc,asc # and directions
ignore: test-foundry/**/* # filter out gas reports from specific paths (test/ is included by default)
id: gas_diff

- name: Add gas diff to sticky comment
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
uses: marocchino/sticky-pull-request-comment@v2
with:
# delete the comment in case changes no longer impact gas costs
delete: ${{ !steps.gas_diff.outputs.markdown }}
message: ${{ steps.gas_diff.outputs.markdown }}
3 changes: 2 additions & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"not-rely-on-block-hash": "error",
"not-rely-on-time": "off",
"reentrancy": "error",
"state-visibility": "off"
"state-visibility": "off",
"no-console": "off"
}
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# DOS Contracts
# Supa Contracts

the infra of defi

## Installation

clone the project and make sure you have a Node version > 16

## To complie
## To compile

```bash
npx hardhat compile
Expand Down Expand Up @@ -47,7 +47,7 @@ Then
yarn setupLocalhost
```

Check the deployments folder for the updated addresses. If they have changed make use to take the DOS address and put it in the subgraph folder: subgraph.yaml and networks.json
Check the deployments folder for the updated addresses. If they have changed make use to take the Supa address and put it in the subgraph folder: subgraph.yaml and networks.json

Now run

Expand All @@ -67,7 +67,7 @@ Then run
yarn deploy-local
```

On the dos-frontend repo make sure to copy and paste the contract addresses to the addresses.json file.
On the supa-frontend repo make sure to copy and paste the contract addresses to the addresses.json file.

run

Expand Down
Loading