Skip to content

Commit 4f1f750

Browse files
authored
feat: Add v1.9.0 release
feat: Add v1.9.0 release
2 parents 59ce121 + 16525ad commit 4f1f750

31 files changed

+5160
-582
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build contracts
2323
run: |
2424
forge --version
25-
forge build --skip test --sizes
25+
forge build --sizes ./src
2626
2727
test:
2828
runs-on: ubuntu-latest

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@
4747
path = lib/spark-vaults-v2
4848
url = https://github.com/sparkdotfi/spark-vaults-v2
4949
branch = dev
50+
[submodule "lib/uniswap-v4-periphery"]
51+
path = lib/uniswap-v4-periphery
52+
url = https://github.com/Uniswap/v4-periphery.git
53+
[submodule "lib/uniswap-v4-core"]
54+
path = lib/uniswap-v4-core
55+
url = https://github.com/Uniswap/v4-core.git

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,14 @@ Below are all stated trust assumptions for using this contract in production:
140140
- Assume that the funds return to the OTC Buffer contract via transfer. This is to accommodate most exchanges/OTC desks that only have the ability to complete the swap by sending token to an address (i.e. not being able to make any arbitrary contracts calls outside of the ERC20 spec).
141141
- The maximum loss by the protocol is limited to the single outstanding OTC swap amount for a given exchange.
142142
- The recharge rate is configured to be low enough that the system will not practically allow for multiple swaps in a row without receiving material funds from the exchange.
143+
- Ethena's delegated signer role can be set by the RELAYER. The delegated signer role can technically be set by a malicious relayer to be a malicious actor. Ethena's API's [Order Validity Checks](https://docs.ethena.fi/solution-design/minting-usde/order-validity-checks) is trusted to prevent attacks in this scenario.
143144

144145
## Operational Requirements
145146

146147
- All ERC-4626 vaults that are onboarded MUST have an initial burned shares amount that prevents rounding-based frontrunning attacks. These shares have to be unrecoverable so that they cannot be removed at a later date.
147148
- All ERC-20 tokens are to be non-rebasing with sufficiently high decimal precision.
148149
- Rate limits must be configured for specific ERC-4626 vaults and AAVE aTokens (vaults without rate limits set will revert). Unlimited rate limits can be used as an onboarding tool.
150+
- All Uniswap V4 pool onboardings are to be done with 1:1 assets.
149151
- Rate limits must take into account:
150152
- Risk tolerance for a given protocol
151153
- Griefing attacks (e.g., repetitive transactions with high slippage by malicious relayer).

audits/v190-cantina-audit.pdf

507 KB
Binary file not shown.

audits/v190-certora-audit.pdf

462 KB
Binary file not shown.

foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ remappings = [
1818
'@layerzerolabs/lz-evm-messagelib-v2/=lib/layerzero-v2/packages/layerzero-v2/evm/messagelib/',
1919
'solidity-bytes-utils/=lib/solidity-bytes-utils/',
2020
'forge-std/=lib/forge-std/src/',
21+
'@uniswap/v4-core/=lib/uniswap-v4-core/'
2122
]
2223

2324
[fuzz]

lib/uniswap-v4-core

Submodule uniswap-v4-core added at e50237c

lib/uniswap-v4-periphery

Submodule uniswap-v4-periphery added at 3779387

script/input/1/arbitrum_one-production.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
"freezer": "0x90D8c80C028B4C09C0d8dcAab9bbB057F0513431",
77
"usdc": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
88
"usds": "0x6491c05A82219b8D1479057361ff1654749b876b",
9-
"susds": "0xdDb46999F8891663a8F2828d25298f70416d7610"
9+
"susds": "0xdDb46999F8891663a8F2828d25298f70416d7610",
10+
"almProxy": "0x92afd6F2385a90e44da3a8B60fe36f6cBe1D8709",
11+
"rateLimits": "0x19D08879851FB54C2dCc4bb32b5a1EA5E9Ad6838"
1012
}

script/input/1/avalanche-production.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
"psm": "0x0000000000000000000000000000000000000000",
55
"relayer": "0x8a25A24EDE9482C4Fc0738F99611BE58F1c839AB",
66
"freezer": "0x90D8c80C028B4C09C0d8dcAab9bbB057F0513431",
7-
"usdc": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
7+
"usdc": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
8+
"rateLimits": "0xb79972e8B21f0dE911E65AC342ac85ad38C9A77a",
9+
"almProxy": "0xecE6B0E8a54c2f44e066fBb9234e7157B15b7FeC"
810
}

0 commit comments

Comments
 (0)