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

Fix master tests #38

Merged
merged 1 commit into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/test/PSMCallee.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ contract PSMCalleeTest is DSTest {
psm = Chainlog(chainlog).getAddress("MCD_PSM_PAX_A");
}

function test_take() public {
// Disabled as this test is directed for a specific offboarding operation.
// It should be modified and used once such operation is planned again.
function test_take() private { // Make public to enable
uint256 amt = 20_000 * WAD;

address vault = 0x816F1dD29c428427A36799358a5f2e1CEa5E770c; // 14459
Expand Down
4 changes: 2 additions & 2 deletions src/test/Simulation.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -523,15 +523,15 @@ contract SimulationTests is DSTest {
function getLink(uint256 amountLink) private {
uint256 linkPrice = getLinkPrice();
uint256 ethPrice = getEthPrice();
uint256 amountWeth = amountLink * linkPrice / ethPrice * 11 / 10;
uint256 amountWeth = amountLink * linkPrice / ethPrice * 13 / 10;
getWeth(amountWeth);
weth.approve(uniAddr, amountWeth);
address[] memory path = new address[](2);
path[0] = wethAddr;
path[1] = linkAddr;
uniRouter.swapExactTokensForTokens({
amountIn: amountWeth,
amountOutMin: 0,
amountOutMin: amountLink,
path: path,
to: address(this),
deadline: block.timestamp
Expand Down