liquidity: fix tests to reflect new miner fee scaling

pull/581/head
George Tsagkarelis 1 year ago
parent 102d3cdd1a
commit 36f014ac0a
No known key found for this signature in database
GPG Key ID: 0807D1013F48208A

@ -73,7 +73,9 @@ var (
OutgoingChanSet: loopdb.ChannelSet{chanID1.ToUint64()}, OutgoingChanSet: loopdb.ChannelSet{chanID1.ToUint64()},
MaxPrepayRoutingFee: prepayFee, MaxPrepayRoutingFee: prepayFee,
MaxSwapRoutingFee: routingFee, MaxSwapRoutingFee: routingFee,
MaxMinerFee: scaleMinerFee(testQuote.MinerFee), MaxMinerFee: scaleMaxMinerFee(
scaleMinerFee(testQuote.MinerFee),
),
MaxSwapFee: testQuote.SwapFee, MaxSwapFee: testQuote.SwapFee,
MaxPrepayAmount: testQuote.PrepayAmount, MaxPrepayAmount: testQuote.PrepayAmount,
SweepConfTarget: defaultConfTarget, SweepConfTarget: defaultConfTarget,
@ -86,7 +88,9 @@ var (
OutgoingChanSet: loopdb.ChannelSet{chanID2.ToUint64()}, OutgoingChanSet: loopdb.ChannelSet{chanID2.ToUint64()},
MaxPrepayRoutingFee: prepayFee, MaxPrepayRoutingFee: prepayFee,
MaxSwapRoutingFee: routingFee, MaxSwapRoutingFee: routingFee,
MaxMinerFee: scaleMinerFee(testQuote.MinerFee), MaxMinerFee: scaleMaxMinerFee(
scaleMinerFee(testQuote.MinerFee),
),
MaxPrepayAmount: testQuote.PrepayAmount, MaxPrepayAmount: testQuote.PrepayAmount,
MaxSwapFee: testQuote.SwapFee, MaxSwapFee: testQuote.SwapFee,
SweepConfTarget: defaultConfTarget, SweepConfTarget: defaultConfTarget,
@ -771,7 +775,9 @@ func TestSuggestSwaps(t *testing.T) {
}, },
MaxPrepayRoutingFee: prepay, MaxPrepayRoutingFee: prepay,
MaxSwapRoutingFee: routing, MaxSwapRoutingFee: routing,
MaxMinerFee: scaleMinerFee(testQuote.MinerFee), MaxMinerFee: scaleMaxMinerFee(
scaleMinerFee(testQuote.MinerFee),
),
MaxSwapFee: testQuote.SwapFee, MaxSwapFee: testQuote.SwapFee,
MaxPrepayAmount: testQuote.PrepayAmount, MaxPrepayAmount: testQuote.PrepayAmount,
SweepConfTarget: defaultConfTarget, SweepConfTarget: defaultConfTarget,
@ -1330,7 +1336,9 @@ func TestSizeRestrictions(t *testing.T) {
OutgoingChanSet: loopdb.ChannelSet{chanID1.ToUint64()}, OutgoingChanSet: loopdb.ChannelSet{chanID1.ToUint64()},
MaxPrepayRoutingFee: prepay, MaxPrepayRoutingFee: prepay,
MaxSwapRoutingFee: routing, MaxSwapRoutingFee: routing,
MaxMinerFee: scaleMinerFee(testQuote.MinerFee), MaxMinerFee: scaleMaxMinerFee(
scaleMinerFee(testQuote.MinerFee),
),
MaxSwapFee: testQuote.SwapFee, MaxSwapFee: testQuote.SwapFee,
MaxPrepayAmount: testQuote.PrepayAmount, MaxPrepayAmount: testQuote.PrepayAmount,
SweepConfTarget: defaultConfTarget, SweepConfTarget: defaultConfTarget,
@ -1487,7 +1495,9 @@ func TestFeePercentage(t *testing.T) {
rec = loop.OutRequest{ rec = loop.OutRequest{
Amount: 7500, Amount: 7500,
OutgoingChanSet: loopdb.ChannelSet{chanID1.ToUint64()}, OutgoingChanSet: loopdb.ChannelSet{chanID1.ToUint64()},
MaxMinerFee: scaleMinerFee(okQuote.MinerFee), MaxMinerFee: scaleMaxMinerFee(
scaleMinerFee(testQuote.MinerFee),
),
MaxSwapFee: okQuote.SwapFee, MaxSwapFee: okQuote.SwapFee,
MaxPrepayAmount: okQuote.PrepayAmount, MaxPrepayAmount: okQuote.PrepayAmount,
SweepConfTarget: defaultConfTarget, SweepConfTarget: defaultConfTarget,
@ -1650,7 +1660,9 @@ func TestBudgetWithLoopin(t *testing.T) {
rec = loop.OutRequest{ rec = loop.OutRequest{
Amount: 7500, Amount: 7500,
OutgoingChanSet: loopdb.ChannelSet{chanID1.ToUint64()}, OutgoingChanSet: loopdb.ChannelSet{chanID1.ToUint64()},
MaxMinerFee: scaleMinerFee(okQuote.MinerFee), MaxMinerFee: scaleMaxMinerFee(
scaleMinerFee(testQuote.MinerFee),
),
MaxSwapFee: okQuote.SwapFee, MaxSwapFee: okQuote.SwapFee,
MaxPrepayAmount: okQuote.PrepayAmount, MaxPrepayAmount: okQuote.PrepayAmount,
SweepConfTarget: defaultConfTarget, SweepConfTarget: defaultConfTarget,

Loading…
Cancel
Save