Skip to content

Commit 117b76b

Browse files
committed
wip
1 parent f7259ff commit 117b76b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/MaglevBase.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ abstract contract MaglevBase is EVCUtil, Ownable {
6969
virtualReserve1 = vr1;
7070

7171
syncVirtualReserves();
72+
73+
virtualReserve0 = reserve0;
74+
virtualReserve1 = reserve1;
7275
}
7376

7477
/// @dev Call whenever underlying balances change externally

src/MaglevEulerSwap.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ contract MaglevEulerSwap is MaglevBase {
2929
uint256 py = 1e18;
3030
uint256 cx = 0.40e18;
3131
uint256 cy = 0.85e18;
32+
33+
//require(_verify(49e18, 51e18, px, py, 50e18, 50e18, cx, cy), KNotSatisfied());
34+
35+
console.log("QQ", newReserve0, newReserve1);
36+
console.log("ZZ", virtualReserve0, virtualReserve1);
3237
require(_verify(newReserve0, newReserve1, px, py, virtualReserve0, virtualReserve1, cx, cy), KNotSatisfied());
3338
}
3439

test/EulerSwap.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ contract EulerSwapTest is MaglevTestBase {
3131

3232
function test_basicSwap() public {
3333
uint256 amountIn = 1e18;
34-
uint256 amountOut = 0.3e18;
34+
uint256 amountOut = 0.9999999e18;
3535

3636
assetTST.mint(address(this), amountIn);
3737

0 commit comments

Comments
 (0)