Skip to content
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

Latest code #2

Merged
merged 201 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
2f68165
Merge pull request #823 from autonomoussoftware/1.1.0-release
marcelomorgado Apr 10, 2023
bab2263
Fix error messages
marcelomorgado Apr 10, 2023
d7658a2
Merge pull request #825 from autonomoussoftware/fix-error-output
marcelomorgado Apr 11, 2023
b96802a
Implement deleverage feature
marcelomorgado Apr 13, 2023
eb1ba67
Rename deleverage to flashRepay
marcelomorgado Apr 18, 2023
579d97c
Merge pull request #819 from autonomoussoftware/deleverage
marcelomorgado Apr 21, 2023
0df82e9
Increase accrueInterest robustness
marcelomorgado Apr 24, 2023
d2635e7
Merge pull request #830 from autonomoussoftware/accrual-bug
marcelomorgado Apr 25, 2023
3f40b57
Setup foundry CI tests
marcelomorgado Apr 25, 2023
a5a0e04
Merge pull request #833 from autonomoussoftware/foundry-ci-tests
marcelomorgado Apr 26, 2023
5c42c3d
Move linting checks to CI
marcelomorgado May 12, 2023
290fd7b
Fix Foundry test
marcelomorgado May 12, 2023
dd88090
Fix foundry tests
marcelomorgado May 15, 2023
db9b1fb
Merge pull request #838 from autonomoussoftware/lint-ci
rokso May 15, 2023
14f3509
Update version to 1.2.0
marcelomorgado May 12, 2023
5800934
Merge pull request #839 from autonomoussoftware/version-1.2.0
marcelomorgado May 16, 2023
c474c75
Implement OP deployment scripts
marcelomorgado May 22, 2023
8157795
Merge pull request #842 from autonomoussoftware/op
marcelomorgado May 22, 2023
52c3003
Claim rewards from Vesper
marcelomorgado May 24, 2023
49e8011
Synth deployment on Optimism chain
rokso May 24, 2023
740b194
Merge pull request #845 from autonomoussoftware/synth-on-optimism
patidarmanoj10 May 25, 2023
5e881e1
Merge pull request #844 from autonomoussoftware/vesper-claim
patidarmanoj10 May 25, 2023
752f8c8
Update OP E2E test suite
marcelomorgado May 25, 2023
a75423b
Merge pull request #847 from autonomoussoftware/update-op-e2e-tests
marcelomorgado May 25, 2023
6994360
Remove mock Oracle for synthetic tokens
marcelomorgado May 25, 2023
486bf73
Upgraded Synth to 1.2.0
rokso May 26, 2023
a74ee6d
Merge pull request #851 from autonomoussoftware/flash-repay-deploy
rokso May 30, 2023
e783382
Added new 1.2.0 release
rokso May 30, 2023
301c4df
Merge pull request #848 from autonomoussoftware/remove-oracle-mock-fr…
marcelomorgado May 30, 2023
4bee356
Cover flashRepay in E2E tests
marcelomorgado May 30, 2023
4453f62
Merge pull request #854 from autonomoussoftware/new-release
rokso May 31, 2023
d24fa7a
Upgraded Synth to 1.2.0 on Optimism
rokso May 31, 2023
1c2e285
Merge pull request #856 from autonomoussoftware/synth-op-upgrade
patidarmanoj10 Jun 1, 2023
6f14883
Reran script to generate latest deployment data
rokso Jun 1, 2023
c4500e4
Merge pull request #855 from autonomoussoftware/amend-e2e-tests
patidarmanoj10 Jun 6, 2023
43ecde5
Merge pull request #858 from autonomoussoftware/deployment-data
patidarmanoj10 Jun 6, 2023
0e265c5
Added syncTokenSpeed function as temporary fix
rokso Jun 8, 2023
d237856
Merge pull request #864 from autonomoussoftware/token-speed-fix
rokso Jun 8, 2023
2bd9666
Deployed tokenSpeed sync hot fix
rokso Jun 8, 2023
e9a67b7
Merge pull request #865 from autonomoussoftware/hot-fix-deployment
rokso Jun 9, 2023
ae026b7
Fixed bug in claimable function
rokso Jun 13, 2023
545ef68
Merge pull request #867 from autonomoussoftware/rewards-hot-fix
rokso Jun 13, 2023
b2801a2
Deployed rewards hot fix on OP chain
rokso Jun 13, 2023
d125884
Added auto repay test
rokso Jun 13, 2023
168a6a9
Merge pull request #869 from autonomoussoftware/auto-repya-test
rokso Jun 14, 2023
86d5a6d
Merge pull request #868 from autonomoussoftware/deployed-hot-fix
rokso Jun 14, 2023
bd221e9
Amend E2E tests
marcelomorgado Aug 1, 2023
bf127f0
Merge pull request #918 from autonomoussoftware/amend-mseth-related-t…
marcelomorgado Aug 3, 2023
9e1b756
Cross-chain Synth (WIP)
marcelomorgado Jun 1, 2023
73fc313
Amend quoteCallbackTxNativeFee
marcelomorgado Jun 21, 2023
8fa2dd1
Support zap-in for layer2 leverage
marcelomorgado Jun 21, 2023
3db1554
Cover failure transactions scenarios
marcelomorgado Jun 28, 2023
c69c64c
Implement L2 flash repay
marcelomorgado Jul 6, 2023
798e86a
Cover retrying when OutOfFund error
marcelomorgado Jul 6, 2023
c83f36b
Cover retry edge cases
marcelomorgado Jul 7, 2023
50ec2b4
Split ProxyOFT contract
marcelomorgado Jul 7, 2023
acd6eaf
Extract SmartFarmingManager contract
marcelomorgado Jul 7, 2023
5f3ba79
Fix tests
marcelomorgado Jul 10, 2023
46a17b1
Make OFT contracts upgradeable
marcelomorgado Jul 11, 2023
26f442e
Amend gaslimit params
marcelomorgado Jul 11, 2023
cc1b0ec
Address SmartFarmingManager TODO comments
marcelomorgado Jul 12, 2023
2a5717c
Implement test for cross-chain simple transfers
marcelomorgado Jul 12, 2023
d7c8710
Removed unused code
rokso Jul 12, 2023
f1163f0
Added code doc and events
rokso Jul 12, 2023
1787fe8
Fix layer2FlashRepay and write SFM unit tests
marcelomorgado Jul 14, 2023
ea4511d
Upgraded to OZ version 4.6.0
patidarmanoj10 Jul 13, 2023
c78c8af
Fixed some todos
rokso Jul 13, 2023
30fd866
Fixed deployment script
patidarmanoj10 Jul 17, 2023
7ec7643
Write unit tests for Layer2ProxyOFT
marcelomorgado Jul 14, 2023
218df5c
Added unit tests for Layer1ProxyOFT
rokso Jul 17, 2023
a670c1d
Emit leverage and flashRepay events
marcelomorgado Jul 17, 2023
a2d7314
Address SFM TODOs
marcelomorgado Jul 17, 2023
e0f882e
Move swapper to PoolRegistry
marcelomorgado Jul 17, 2023
3d94c49
Address few TODOs
marcelomorgado Jul 17, 2023
948abf7
wip
patidarmanoj10 Jul 17, 2023
3793eae
Gas optimizations
marcelomorgado Jul 17, 2023
8df32b7
Skip size check
marcelomorgado Jul 17, 2023
3f6c0a7
Reduce ProxyOFT contracts' sizes
marcelomorgado Jul 18, 2023
da389a8
Amend lib comment
marcelomorgado Jul 18, 2023
b00f750
Remove unused storage
marcelomorgado Jul 18, 2023
815ded6
Added tests for Synth bridge params
rokso Jul 17, 2023
0a08460
Extract Quoter contract
marcelomorgado Jul 18, 2023
65c2951
Fix tests
marcelomorgado Jul 19, 2023
b6a5422
Added comments
patidarmanoj10 Jul 19, 2023
7ec3a56
Address TODOs
marcelomorgado Jul 19, 2023
ca0ece8
Implement bridge pausing
marcelomorgado Jul 19, 2023
d9efa76
Improve code
marcelomorgado Jul 20, 2023
7016c04
Improve Quoter
marcelomorgado Jul 20, 2023
30da1ca
Minor amends
marcelomorgado Jul 20, 2023
0fe4e9d
Allow leverage/flashRepay on L2
marcelomorgado Jul 20, 2023
6b80c74
Remove unused test case
marcelomorgado Jul 20, 2023
32d9802
Improve bridging cap
marcelomorgado Jul 31, 2023
063a705
Amend tests
marcelomorgado Aug 8, 2023
d40827b
Multi-directional cross-chain operations
marcelomorgado Aug 4, 2023
1eeb81a
Code improvements
marcelomorgado Aug 7, 2023
3e351ee
Amend unit tests
marcelomorgado Aug 8, 2023
da94730
Implement toggleDestinationChainIsActive
marcelomorgado Aug 8, 2023
8160eab
Merge pull request #921 from autonomoussoftware/multidirectional-leve…
patidarmanoj10 Aug 22, 2023
4cd72bd
Validate crossChainLeverage amountIn value
marcelomorgado Aug 28, 2023
951ff38
Improve DebtToken modifiers
marcelomorgado Aug 28, 2023
b21234a
Amend deployment scripts
marcelomorgado Aug 10, 2023
bed8534
Fix hardhat tests
marcelomorgado Aug 28, 2023
d3413f7
Add comment for whenNotShutdown
marcelomorgado Aug 29, 2023
640f063
E2E cross-chains tests
marcelomorgado Aug 29, 2023
1130b20
Address review requests
marcelomorgado Aug 29, 2023
385b4d1
Merge pull request #944 from autonomoussoftware/check-ccleverage-amount
marcelomorgado Aug 29, 2023
92b9e6f
Merge pull request #945 from autonomoussoftware/improve-debt-token-mo…
marcelomorgado Aug 29, 2023
88eb5d2
Disable initialize for implementations
marcelomorgado Aug 29, 2023
1bd26e2
Merge pull request #950 from autonomoussoftware/when-not-shutdown-com…
marcelomorgado Aug 29, 2023
bf6d436
Validate CF
marcelomorgado Aug 30, 2023
4d44370
Merge pull request #951 from autonomoussoftware/validate-cf
marcelomorgado Aug 30, 2023
39e357f
Merge pull request #922 from autonomoussoftware/lz-deployment-scripts
marcelomorgado Aug 30, 2023
36143bb
Merge pull request #952 from autonomoussoftware/cross-chain-e2e-tests
marcelomorgado Aug 30, 2023
a4c6b70
Merge pull request #949 from autonomoussoftware/initialize-impls
marcelomorgado Aug 30, 2023
cd5f74c
Merge pull request #954 from autonomoussoftware/sync-main-with-prod
marcelomorgado Aug 31, 2023
9843dff
Deployment E2E tests
marcelomorgado Aug 31, 2023
82e6411
Merge pull request #955 from autonomoussoftware/deployment-prep
marcelomorgado Sep 1, 2023
aace70a
Internal audit
marcelomorgado Sep 5, 2023
72ab1d8
Handy multi-sig proposal script
marcelomorgado Sep 5, 2023
725f3c8
Merge pull request #960 from autonomoussoftware/multsig-script
marcelomorgado Sep 6, 2023
11ba4c0
Merge pull request #957 from autonomoussoftware/internal-audit
marcelomorgado Sep 6, 2023
bdcf93e
Deployment scripts review and improvements
marcelomorgado Sep 6, 2023
1eb356d
Allow using underlying on cross-chain flashRepay
marcelomorgado Sep 7, 2023
974b536
Improve cross-chain functions args naming
marcelomorgado Sep 8, 2023
2ab84c6
Merge pull request #965 from autonomoussoftware/flashrepay-with-naked
marcelomorgado Sep 12, 2023
c58a56f
Merge pull request #962 from autonomoussoftware/upgrade-prep
marcelomorgado Sep 12, 2023
4cf36b1
Expose user-friendly sendFrom function
marcelomorgado Sep 8, 2023
4a4d5ac
Merge pull request #966 from autonomoussoftware/better-sendfrom-ux
marcelomorgado Sep 12, 2023
db7ff70
Merge pull request #835 from autonomoussoftware/lz-poc
patidarmanoj10 Sep 12, 2023
72edd46
Validate CF when initializing
marcelomorgado Sep 12, 2023
c9e6e25
Implement MetAirdrop contract
marcelomorgado Sep 12, 2023
c9f6318
Store proofs ipfs hash
marcelomorgado Sep 12, 2023
cd9f076
Do not lock if claiming after the lock period
marcelomorgado Sep 13, 2023
13a0d2d
Fix possible comparison bug
marcelomorgado Sep 14, 2023
3409877
Upgrade version to 1.3.0
marcelomorgado Sep 20, 2023
15e0fb6
Merge pull request #967 from autonomoussoftware/met-airdrop
marcelomorgado Sep 22, 2023
6781899
Test msUSD and msOP leverage
marcelomorgado Sep 25, 2023
4354d8a
Merge pull request #973 from autonomoussoftware/small-deployment-fix
marcelomorgado Sep 26, 2023
ef887b8
Merge pull request #979 from autonomoussoftware/bump-version
marcelomorgado Sep 26, 2023
a85f54e
Push Resonance audit doc
marcelomorgado Sep 26, 2023
a33dabd
Merge pull request #982 from autonomoussoftware/test-msop-msusd
marcelomorgado Sep 26, 2023
122ecca
Merge pull request #971 from autonomoussoftware/validate-cf-init
marcelomorgado Sep 26, 2023
d210f2e
Merge pull request #983 from autonomoussoftware/resonance-audit-doc
marcelomorgado Sep 26, 2023
1e2b875
Amend SG integration
marcelomorgado Sep 26, 2023
1a62d03
Address review requests
marcelomorgado Sep 27, 2023
3a7c598
Merge pull request #987 from autonomoussoftware/amend-sg
marcelomorgado Sep 29, 2023
85f3292
Update test blocks
marcelomorgado Oct 2, 2023
9393354
Implement deployment tests scripts
marcelomorgado Oct 2, 2023
417a75f
Merge pull request #984 from autonomoussoftware/deployment-review
marcelomorgado Oct 2, 2023
15ec6a4
Improve deployment E2E test scripts
marcelomorgado Oct 3, 2023
c2513c0
Merge pull request #990 from autonomoussoftware/improve-deployment-e2…
marcelomorgado Oct 3, 2023
7c6b840
Address review requests
marcelomorgado Oct 5, 2023
eaf7547
Write tests for OOG/OOF scenarios
marcelomorgado Oct 5, 2023
6a2e6fe
Amend comments
marcelomorgado Oct 6, 2023
f5bbd69
Improve scripts
marcelomorgado Oct 6, 2023
b4ed549
Merge pull request #993 from autonomoussoftware/cc-review-findings
marcelomorgado Oct 6, 2023
4b61b21
Release 1.3.0
marcelomorgado Oct 10, 2023
1b20ed6
Merge pull request #995 from autonomoussoftware/synth-upgrade
marcelomorgado Oct 10, 2023
f919d74
Fix LZ Airdrop
marcelomorgado Oct 10, 2023
e79ac18
Merge pull request #998 from autonomoussoftware/fix-airdrop
patidarmanoj10 Oct 10, 2023
394499f
Prepare CrossChainDispatcher upgrade
marcelomorgado Oct 10, 2023
151eaa2
Merge pull request #999 from autonomoussoftware/prepare-ccd-upgrade
marcelomorgado Oct 11, 2023
9e3928c
Deployed and upgraded CCD contract
patidarmanoj10 Oct 11, 2023
371a55d
Merge pull request #1001 from autonomoussoftware/prepare-ccd-upgrade
patidarmanoj10 Oct 12, 2023
fdf5421
Fix LZ/SG issues
marcelomorgado Oct 11, 2023
2706047
Prepare deployment
marcelomorgado Oct 11, 2023
c748716
Fix tests
marcelomorgado Oct 11, 2023
9da56aa
Address review requests
marcelomorgado Oct 12, 2023
7201cb7
Merge pull request #1000 from autonomoussoftware/cc-debug
marcelomorgado Oct 12, 2023
8ff4fb3
Write tests for Multi-pool scenarios
marcelomorgado Oct 12, 2023
ccd40d4
Amend deployment scripts
marcelomorgado Oct 12, 2023
c608276
Store deployment files
marcelomorgado Oct 12, 2023
4b18871
Amend leverage gas params
marcelomorgado Oct 16, 2023
2194196
Merge pull request #1013 from autonomoussoftware/cc-gas-adjustment
marcelomorgado Oct 16, 2023
21fd448
Merge pull request #1004 from autonomoussoftware/deploy-sg-fixes
marcelomorgado Oct 16, 2023
ed39488
Few deployment json updates
marcelomorgado Oct 16, 2023
4a049e3
Merge pull request #1015 from autonomoussoftware/update-deployments-json
marcelomorgado Oct 18, 2023
56348f2
Merge pull request #1003 from autonomoussoftware/multi-pool
marcelomorgado Oct 18, 2023
72a20bf
CrossChain-related improvements
marcelomorgado Oct 17, 2023
8bc3267
Support zap-in for CC leverage
marcelomorgado Oct 17, 2023
10ef800
Minor amends
marcelomorgado Oct 17, 2023
2c0ee14
Address review requests
marcelomorgado Oct 18, 2023
730bef1
Make retry functions payable
marcelomorgado Oct 18, 2023
8745f36
Refund cc flash repay in excess
marcelomorgado Oct 18, 2023
d435e9c
Rebase
marcelomorgado Oct 18, 2023
c17d755
Merge pull request #1016 from autonomoussoftware/some-cc-improvements
marcelomorgado Oct 18, 2023
320a0a6
Implement cc flash repay flag
marcelomorgado Oct 18, 2023
bf65ddb
Merge pull request #1022 from autonomoussoftware/cc-flash-repay-flag
marcelomorgado Oct 18, 2023
35313b1
Prepare deployment
marcelomorgado Oct 19, 2023
3c21408
Address review request
marcelomorgado Oct 19, 2023
a82b1e2
Merge pull request #1023 from autonomoussoftware/upgrade-cc-prep
marcelomorgado Oct 19, 2023
90e5e74
Upgraded contracts
patidarmanoj10 Oct 20, 2023
fce632d
Cross-chain technical doc
marcelomorgado Oct 23, 2023
23730d7
Add CC flags and caps section
marcelomorgado Oct 24, 2023
07960b1
Merge pull request #1029 from autonomoussoftware/ui-cc-doc
patidarmanoj10 Oct 24, 2023
28313cd
Merge pull request #1028 from autonomoussoftware/prod-deployment
marcelomorgado Oct 26, 2023
92da3c2
Merge pull request #1043 from autonomoussoftware/develop
marcelomorgado Oct 27, 2023
a36e869
Merge pull request #1051 from autonomoussoftware/auditReport
patidarmanoj10 Oct 30, 2023
508af83
latest audit report
patidarmanoj10 Oct 30, 2023
821efd9
Merge pull request #1054 from autonomoussoftware/auditReport
patidarmanoj10 Oct 30, 2023
0ff67a1
Merge pull request #1055 from autonomoussoftware/develop
patidarmanoj10 Oct 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"max-len": ["error", {"code": 120}],
"semi": ["error", "never"],
"quotes": ["error", "single"],
"arrow-body-style": "off"
"arrow-body-style": "off",
"sort-keys": "off"
}
}
4 changes: 2 additions & 2 deletions .github/env.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NODE_URL=https://eth.connect.bloq.cloud/v1/witness-open-trouble
BLOCK_NUMBER=16976969
NODE_URL=https://eth-mainnet.alchemyapi.io/v2/NbZ2px662CNSwdw3ZxdaZNe31yZbyddK
BLOCK_NUMBER=18383559
46 changes: 46 additions & 0 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: foundry tests
on:
pull_request:
paths:
- "test/foundry/**/*.sol"
- "contracts/**/*.sol"
- package*.json
- ".github/env.properties"
- ".github/workflows/foundry.yml"

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: cat "${GITHUB_WORKSPACE}/.github/env.properties" >> $GITHUB_ENV

- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
- run: npm i

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
7 changes: 5 additions & 2 deletions .github/workflows/main.yml → .github/workflows/hardhat.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: hardhat tests
on:
pull_request:
paths:
Expand All @@ -7,7 +7,7 @@ on:
- "deploy/**/*.ts"
- package*.json
- ".github/env.properties"
- ".github/workflows/main.yml"
- ".github/workflows/hardhat.yml"

jobs:
test:
Expand All @@ -26,5 +26,8 @@ jobs:
- name: Run npm install
run: npm i

- name: Run npm run lint
run: npm run lint

- name: Running tests
run: npm t
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

5 changes: 0 additions & 5 deletions .lintstagedrc.json

This file was deleted.

Binary file added audits/Audit_Report_BLOQ-MSC_FINAL.pdf
Binary file not shown.
Binary file added audits/Audit_Report_BLOQ-MSC_REVIEW.pdf
Binary file not shown.
Loading
Loading