computed bases
This commit is contained in:
@@ -100,7 +100,6 @@ contract PartyPlannerTest is Test {
|
||||
name,
|
||||
symbol,
|
||||
tokens,
|
||||
bases,
|
||||
computedKappa,
|
||||
swapFeePpm,
|
||||
flashFeePpm,
|
||||
@@ -176,7 +175,7 @@ contract PartyPlannerTest is Test {
|
||||
|
||||
int128 kappa1 = LMSRStabilized.computeKappaFromSlippage(tokens1.length, int128((1 << 64) - 1), int128(1 << 62));
|
||||
(IPartyPool pool1,) = planner.newPool(
|
||||
"Pool 1", "LP1", tokens1, bases1,
|
||||
"Pool 1", "LP1", tokens1,
|
||||
kappa1, 3000, 5000, false,
|
||||
payer, receiver, deposits1, 1000e18, 0
|
||||
);
|
||||
@@ -196,7 +195,7 @@ contract PartyPlannerTest is Test {
|
||||
|
||||
int128 kappa2 = LMSRStabilized.computeKappaFromSlippage(tokens2.length, int128((1 << 64) - 1), int128(1 << 62));
|
||||
(IPartyPool pool2,) = planner.newPool(
|
||||
"Pool 2", "LP2", tokens2, bases2,
|
||||
"Pool 2", "LP2", tokens2,
|
||||
kappa2, 3000, 5000, false,
|
||||
payer, receiver, deposits2, 1000e18, 0
|
||||
);
|
||||
@@ -240,7 +239,7 @@ contract PartyPlannerTest is Test {
|
||||
vm.expectRevert("Planner: tokens and deposits length mismatch");
|
||||
// call old-signature convenience (it will still exist) for the mismatched-length revert check
|
||||
planner.newPool(
|
||||
"Test Pool", "TESTLP", tokens, bases,
|
||||
"Test Pool", "TESTLP", tokens,
|
||||
int128((1 << 64) - 1), int128(1 << 62), 3000, 5000, false,
|
||||
payer, receiver, deposits, 1000e18, 0
|
||||
);
|
||||
@@ -254,7 +253,7 @@ contract PartyPlannerTest is Test {
|
||||
|
||||
vm.expectRevert("Planner: payer cannot be zero address");
|
||||
planner.newPool(
|
||||
"Test Pool", "TESTLP", tokens, bases,
|
||||
"Test Pool", "TESTLP", tokens,
|
||||
kappaErr, 3000, 5000, false,
|
||||
address(0), receiver, validDeposits, 1000e18, 0
|
||||
);
|
||||
@@ -262,7 +261,7 @@ contract PartyPlannerTest is Test {
|
||||
// Test zero receiver address
|
||||
vm.expectRevert("Planner: receiver cannot be zero address");
|
||||
planner.newPool(
|
||||
"Test Pool", "TESTLP", tokens, bases,
|
||||
"Test Pool", "TESTLP", tokens,
|
||||
kappaErr, 3000, 5000, false,
|
||||
payer, address(0), validDeposits, 1000e18, 0
|
||||
);
|
||||
@@ -273,7 +272,7 @@ contract PartyPlannerTest is Test {
|
||||
vm.warp(1000);
|
||||
vm.expectRevert("Planner: deadline exceeded");
|
||||
planner.newPool(
|
||||
"Test Pool", "TESTLP", tokens, bases,
|
||||
"Test Pool", "TESTLP", tokens,
|
||||
kappaDeadline, 3000, 5000, false,
|
||||
payer, receiver, validDeposits, 1000e18, block.timestamp - 1
|
||||
);
|
||||
@@ -301,7 +300,7 @@ contract PartyPlannerTest is Test {
|
||||
(IPartyPool pool,) = planner.newPool(
|
||||
string(abi.encodePacked("Pool ", vm.toString(i))),
|
||||
string(abi.encodePacked("LP", vm.toString(i))),
|
||||
tokens, bases,
|
||||
tokens,
|
||||
kappaLoop, 3000, 5000, false,
|
||||
payer, receiver, deposits, 1000e18, 0
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user