Skip to content

Commit b0c7b5a

Browse files
committed
fix: remaining tests
1 parent c5c1ec2 commit b0c7b5a

File tree

6 files changed

+8
-40
lines changed

6 files changed

+8
-40
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ update:; forge update
3535
build :; FOUNDRY_PROFILE=production forge build
3636
build-unoptimized :; FOUNDRY_PROFILE=localdev forge build
3737
build-sizes :; FOUNDRY_PROFILE=production forge build --sizes
38-
test-vvv :; forge test --match-contract SXSVDNormal4626MultiTokenInputLineaNoSlippageAMB23 --evm-version cancun -vvv
38+
test-vvv :; forge test --match-contract MDMVW5115TokenInputSlipageAMB23 --evm-version cancun -vvv
3939
ftest :; forge test --evm-version cancun
4040
test-ci :; forge test --no-match-path "test/invariant/**/*.sol" --evm-version cancun
4141
coverage :; FOUNDRY_PROFILE=coverage forge coverage --no-match-path "test/invariant/**/*.sol" --no-match-contract SmokeTest --evm-version cancun --report lcov

foundry.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ script = "script"
3535
src = "src"
3636
test = "test"
3737
auto_detect_remappings = false
38-
assertions_revert = false # see https://t.me/foundry_rs/36706
39-
legacy_assertions = true # see https://t.me/foundry_rs/36706
38+
assertions_revert = true # see https://t.me/foundry_rs/36706
39+
legacy_assertions = false # see https://t.me/foundry_rs/36706
4040
gas_limit = "18446744073709551615" # see https://t.me/foundry_rs/36706
4141

4242
[profile.localdev]
Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1 @@
1-
{
2-
"AxelarImplementation": "0xbf938adDB48594089B20677931f028261D25D6A2",
3-
"BroadcastRegistry": "0x856ddF6348fFF6B774566cD63f2e8db3796a0965",
4-
"CoreStateRegistry": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
5-
"DeBridgeForwarderValidator": "0xDEa392D62cA1Edb74FB9210Aed714ad8F12b3E60",
6-
"DeBridgeValidator": "0x04A9e7318544DA4dd8c3d76E9c72d2087e285a8d",
7-
"DstSwapper": "0x2691638Fa19357773C186BA34924E194B4Ab6cDa",
8-
"ERC4626Form": "0xAb7F7c525D941e874870Fc54CC83d64738d024e0",
9-
"ERC5115Form": "0xBab86d7d37692E4FE779B64A5bC7Cfbb2a7c46F1",
10-
"ERC5115To4626WrapperFactory": "0x664E1e7b8393DF4aC4EFAbEf9d56B2100098FCE2",
11-
"EmergencyQueue": "0xE22DCd9264086DF7B26d97A9A9d35e8dFac819dd",
12-
"HyperlaneImplementation": "0xe6f739F355f9e9e3788752e6cfBB2A6B7b18a13c",
13-
"LayerzeroImplementation": "0xB07e2B06839ECF55A1E47A52E4A14ba6D6D76fA4",
14-
"LayerzeroV1Implementation": "0xc100592b40eeb4CBC7524092A00400917421ab64",
15-
"LiFiValidator": "0x717de40D4e360C678aC5e195B99605bc4aAC697E",
16-
"OneInchValidator": "0x0000000000000000000000000000000000000000",
17-
"PayMaster": "0x3639492Dc83019EA36899108B4A1A47cC3b3ecAa",
18-
"PayloadHelper": "0xAD2b7eD1315330633bc265A0109D3B12D4caed3c",
19-
"PaymentHelper": "0x69c531E5bdf2458FFb4f5E0dB3DE41745151b2Bd",
20-
"RewardsDistributor": "0xce23bD7205bF2B543F6B4eeC00Add0C111FEFc3B",
21-
"SocketOneInchValidator": "0x0000000000000000000000000000000000000000",
22-
"SocketValidator": "0x0000000000000000000000000000000000000000",
23-
"SuperPositions": "0x01dF6fb6a28a89d6bFa53b2b3F20644AbF417678",
24-
"SuperRBAC": "0x480bec236e3d3AE33789908BF024850B2Fe71258",
25-
"SuperRegistry": "0x17A332dC7B40aE701485023b219E9D6f493a2514",
26-
"SuperformFactory": "0xD85ec15A9F814D6173bF1a89273bFB3964aAdaEC",
27-
"SuperformRouter": "0xa195608C2306A26f727d5199D5A382a4508308DA",
28-
"VaultClaimer": "0xC4A234A40aC13b02096Dd4aae1b8221541Dc5d5A",
29-
"WormholeARImplementation": "0xbe296d633E91BD3E72f52732d80F7b28F18cDB54",
30-
"WormholeSRImplementation": "0x2827eFf89affacf9E80D671bca6DeCf7dbdcCaCa"
31-
}
1+
{}

test/fuzz/scenarios/scenarios-withdraw-multiDstMultiVaultWithdraw/5115.TokenInputSlippageAMB23.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ contract MDMVW5115TokenInputSlipageAMB23 is ProtocolActions {
158158

159159
/// @dev notice partial withdrawals in ETH->0 and OP->2
160160
if (DST_CHAINS[i] == ETH) {
161-
amountOneWithdraw_ = uint128(bound(amountOneWithdraw_, 1, superPositions[0] - 1));
161+
amountOneWithdraw_ = uint128(bound(amountOneWithdraw_, 10, superPositions[0] - 1));
162162
AMOUNTS[DST_CHAINS[i]][1] = [amountOneWithdraw_, superPositions[1], superPositions[2]];
163163
} else if (DST_CHAINS[i] == OP) {
164-
amountOneWithdraw_ = uint128(bound(amountOneWithdraw_, 1, superPositions[2] - 1));
164+
amountOneWithdraw_ = uint128(bound(amountOneWithdraw_, 10, superPositions[2] - 1));
165165
AMOUNTS[OP][1] = [superPositions[0], superPositions[1], amountOneWithdraw_];
166166
} else if (DST_CHAINS[i] == AVAX) {
167167
AMOUNTS[DST_CHAINS[i]][1] = [superPositions[0], superPositions[1]];

test/fuzz/scenarios/scenarios-withdraw-multiDstSingleVaultWithdraw/70.TokenInput.Slippage.AMB13.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ contract MDSVW70TokenInputSlippageAMB13 is ProtocolActions {
117117
AMOUNTS[DST_CHAINS[i]][1] = [superPositions[0]];
118118
} else if (DST_CHAINS[i] == OP) {
119119
/// @dev bounded to 1 less due to partial withdrawals
120-
amountOneWithdraw_ = uint128(bound(amountOneWithdraw_, 1, superPositions[0] - 1));
120+
amountOneWithdraw_ = uint128(bound(amountOneWithdraw_, 10, superPositions[0] - 1));
121121
AMOUNTS[DST_CHAINS[i]][1] = [amountOneWithdraw_];
122122
}
123123
}

test/unit/crosschain-data/utils/PayloadHelper.multiVault.t.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ contract PayloadHelperMultiTest is ProtocolActions {
3333
TARGET_FORM_KINDS[ETH][0] = [0, 0];
3434
TARGET_FORM_KINDS[ETH][1] = [0, 0];
3535

36-
AMOUNTS[ETH][0] = [23_184, 213];
37-
// AMOUNTS[ETH][1] = [23_183, 213];
36+
AMOUNTS[ETH][0] = [20_000, 213];
3837

3938
MAX_SLIPPAGE = 1000;
4039

@@ -146,7 +145,6 @@ contract PayloadHelperMultiTest is ProtocolActions {
146145

147146
_runMainStages(action, act, multiSuperformsData, singleSuperformsData, aV, vars, success);
148147
}
149-
150148
_checkDstPayloadLiqData(
151149
getContract(FINAL_LIQ_DST_WITHDRAW[ETH][0], UNDERLYING_TOKENS[actions[1].externalToken])
152150
);

0 commit comments

Comments
 (0)