Skip to content

Commit 12da123

Browse files
authored
feat: Add v1.4.0
feat: Add v1.4.0
2 parents 3de54c3 + 6936033 commit 12da123

13 files changed

+1554
-660
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This is a linear rate limit that increases over time with a maximum limit. This
6464
Below are all stated trust assumptions for using this contract in production:
6565
- The `DEFAULT_ADMIN_ROLE` is fully trusted, to be run by governance.
6666
- The `RELAYER` role is assumed to be able to be fully compromised by a malicious actor. **This should be a major consideration during auditing engagements.**
67-
- The logic in the smart contracts must prevent the movement of value anywhere outside of the ALM system of contracts.
67+
- The logic in the smart contracts must prevent the movement of value anywhere outside of the ALM system of contracts. The exception for this is in asynchronous style integrations such as BUIDL, where `transferAsset` can be used to send funds to a whitelisted address. LP tokens are then asynchronously minted into the ALMProxy in a separate transaction.
6868
- Any action must be limited to "reasonable" slippage/losses/opportunity cost by rate limits.
6969
- The `FREEZER` must be able to stop the compromised `RELAYER` from performing more harmful actions within the max rate limits by using the `removeRelayer` function.
7070
- A compromised `RELAYER` can perform DOS attacks. These attacks along with their respective recovery procedures are outlined in the `Attacks.t.sol` test files.
758 KB
Binary file not shown.

audits/20250227-cantina-audit.pdf

574 KB
Binary file not shown.

foundry.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ out = "out"
44
libs = ["lib"]
55
solc_version = '0.8.25'
66
optimizer = true
7-
optimizer_runs = 200
7+
optimizer_runs = 1
88
fs_permissions = [
99
{ access = "read", path = "./script/input/"},
1010
{ access = "read-write", path = "./script/output/"}
@@ -14,6 +14,10 @@ evm_version = 'cancun'
1414
[fuzz]
1515
runs = 1000
1616

17+
[invariant]
18+
runs = 1
19+
depth = 100
20+
1721
[etherscan]
1822
mainnet = { key = "${ETHERSCAN_API_KEY}" }
1923
optimism = { key = "${OPTIMISMSCAN_API_KEY}" }

0 commit comments

Comments
 (0)