Skip to content

Commit

Permalink
✅ custom:todo OracleDataRequired error
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Oct 25, 2024
1 parent 2a378b1 commit fc785d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/Unwind.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ contract UnwindTest is Bootstrap {
engine.unwindCollateral(accountId, 1, 1, address(0), 1, 1, 1, "");
}

function test_unwindCollateral() public {
function test_unwindCollateral_s() public {
/// @custom:todo OracleDataRequired
// uint256 initialAccountDebt = perpsMarketProxy.debt(ACCOUNT_ID);
// assertEq(initialAccountDebt, INITIAL_DEBT);

// /// 88632937628670419535
// int256 availableMargin = perpsMarketProxy.getAvailableMargin(ACCOUNT_ID);
// int256 withdrawableMargin = perpsMarketProxy.getWithdrawableMargin(ACCOUNT_ID);
// int256 withdrawableMargin =
// perpsMarketProxy.getWithdrawableMargin(ACCOUNT_ID);

// /// While there is debt, withdrawable margin should be 0
// assertEq(withdrawableMargin, 0);
Expand All @@ -65,11 +65,11 @@ contract UnwindTest is Bootstrap {
// engine.unwindCollateral({
// _accountId: ACCOUNT_ID,
// _collateralId: 4,
// _collateralAmount: 38000000000000000,
// _collateralAmount: 38_000_000_000_000_000,
// _collateral: WETH_ADDR,
// _zapMinAmountOut: 829762200000000000,
// _unwrapMinAmountOut: 3796200000000000,
// _swapMaxAmountIn: 3824606425619680,
// _zapMinAmountOut: 829_762_200_000_000_000,
// _unwrapMinAmountOut: 3_796_200_000_000_000,
// _swapMaxAmountIn: 3_824_606_425_619_680,
// _path: weth_path
// });

Expand Down

0 comments on commit fc785d7

Please sign in to comment.