Skip to content

Commit

Permalink
test: add new token types
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTimepunk committed Jun 3, 2024
1 parent 9e0e1f5 commit 3c5273a
Show file tree
Hide file tree
Showing 52 changed files with 191 additions and 69 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ update:; forge update
build :; FOUNDRY_PROFILE=production forge build
build-unoptimized :; FOUNDRY_PROFILE=localdev forge build
build-sizes :; FOUNDRY_PROFILE=production forge build --sizes
test-vvv :; forge test --match-contract SDMVW02NativeInputNoSlippageAMB12 -vvvvv
test-vvv :; forge test --match-contract SXSVW5115NativeSlippageAMB23 -vvvvv
ftest :; forge test
test-ci :; forge test --no-match-path "test/invariant/**/*.sol"
coverage :; FOUNDRY_PROFILE=coverage forge coverage --no-match-path "test/invariant/**/*.sol" --no-match-contract SmokeTest --report lcov
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contract MDMVDMulti0026NativeSlippageAMB23 is ProtocolActions {
revertRole: "",
slippage: 421, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: true,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ contract MDMVDMulti021120NoNativeSlippageAMB23 is ProtocolActions {
revertRole: "",
slippage: 777, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ contract MDSVDNormal4626NoNativeNoSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: true,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract MDSVDNormal4626RevertTokenInputSlippageAMB1 is ProtocolActions {
revertRole: "",
slippage: 742, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ contract MDSVD4626RevertTimelockedNativeNoSlippageAMB23 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ contract MDSVDTimelockedNoNativeSlippageAMB23 is ProtocolActions {
revertRole: "",
slippage: 821, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDiMVDMulti00NoNativeNoSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDiMVDMulti021NoNativeSlippageAMB24 is ProtocolActions {
revertRole: "",
slippage: 777, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDiMVDMulti021NoNativeSlippageAMB23 is ProtocolActions {
revertRole: "",
slippage: 777, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDiMVDMulti102NativeSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 774, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDiMVDMulti26NativeNoSlippageAMB13 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract SDSVD4626KycSwapNativeSlippage is ProtocolActions {
revertRole: "",
slippage: 123, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDC, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDC, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDMVDMulti00NoNativeNoSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDMVDMulti021NoNativeSlippageAMB23 is ProtocolActions {
revertRole: "",
slippage: 777, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDMVDMulti102NativeSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 774, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SDMVDMulti26NativeNoSlippageAMB13 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract SXSVDNormal4626NoNativeNoSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: true,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract SXSVDNormal4626NoNativeNoSlippageAMB15 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: true,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SXSVDNormal4626RevertTokenInputSlippageAMB1 is ProtocolActions {
revertRole: "",
slippage: 742, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract SXSVDTimelocked4626NoNativeSlippageAMB23 is ProtocolActions {
revertRole: "",
slippage: 600, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract SXSVDTimelocked2TokenInputSlippageAMB13 is ProtocolActions {
revertRole: "",
slippage: 321, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ contract MDMVW0102408NativeInputSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 643, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contract MDMVW0102408NativeInputSlipageAMB13 is ProtocolActions {
revertRole: "",
slippage: 643, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ contract MDMVW84002408NativeInputSlipageAMB12NewDst is ProtocolActions {
revertRole: "",
slippage: 643, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ contract MDMVW84002408NativeInputSlipageAMB12ABA is ProtocolActions {
revertRole: "",
slippage: 643, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ contract MDMVW84002408NativeInputSlipageAMB14 is ProtocolActions {
revertRole: "",
slippage: 643, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ contract MDSVW010NativeSlippage2AMB12 is ProtocolActions {
revertRole: "",
slippage: 775, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract MDSVWNormal4626NativeSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 111, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ contract MDSVWNormal4626NativeSlippageAMB24 is ProtocolActions {
revertRole: "",
slippage: 111, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract MDSVWNormal4626NativeSlippageAMB23 is ProtocolActions {
revertRole: "",
slippage: 743, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract MDSVWNormal4626NativeSlippageAMB25 is ProtocolActions {
revertRole: "",
slippage: 743, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract MDSVWNormal4626NativeSlippageAMB26 is ProtocolActions {
revertRole: "",
slippage: 743, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ contract SDiMVW02NativeInputNoSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract SDiMVW874NativeInputSlippageAMB13 is ProtocolActions {
revertRole: "",
slippage: 555, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract SDiMVW874NativeInputSlippageAMB34 is ProtocolActions {
revertRole: "",
slippage: 555, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ contract SXSVWNormal4626NativeSlippage is ProtocolActions {
revertRole: "",
slippage: 312, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ contract SXSVWRevertTimelockedNativeSlippageNewDst is ProtocolActions {
revertRole: "",
slippage: 224, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ contract SXSVWRevertTimelockedNativeSlippage is ProtocolActions {
revertRole: "",
slippage: 224, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract SDMVW02NativeInputNoSlippageAMB12 is ProtocolActions {
revertRole: "",
slippage: 0, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contract SDMVW841NativeInputSlippageAMB13 is ProtocolActions {
revertRole: "",
slippage: 555, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract SDMVW844NativeInputSlippageAMB14 is ProtocolActions {
revertRole: "",
slippage: 555, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract SDMVW844NativeInputSlippageAMB35 is ProtocolActions {
revertRole: "",
slippage: 555, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract SDMVW844NativeInputSlippageAMB36 is ProtocolActions {
revertRole: "",
slippage: 555, // 0% <- if we are testing a pass this must be below each maxSlippage,
dstSwap: false,
externalToken: 3 // 0 = DAI, 1 = USDT, 2 = WETH
externalToken: 69_420 // 0 = DAI, 1 = USDT, 2 = WETH
})
);

Expand Down
Loading

0 comments on commit 3c5273a

Please sign in to comment.