@@ -13,8 +13,8 @@ settings:
1313
1414token :
1515 address : " 0x62083c80353Df771426D209eF578619EE68D5C7A"
16- balance_min : 1_000_000
17- balance_fund : 1_000_000
16+ balance_min : 100_000_000_000_000_000_000
17+ balance_fund : 100_000_000_000_000_000_000
1818
1919nodes :
2020 mode : managed
3535 - 10_000 # 1% proportional fee
3636 proportional-imbalance-fee :
3737 - " 0x62083c80353Df771426D209eF578619EE68D5C7A"
38- - 10_000 # 1 % imbalance fee on channel balance
38+ - 20_000 # 2 % imbalance fee on channel balance
3939
4040# # This is the MFEE4 scenario. It creates a network with topology 0 -> 1 -> 2 -> 3 and checks
4141# # whether a path is returned. It also checks that correct fees are deducted.
@@ -46,18 +46,18 @@ scenario:
4646 - parallel :
4747 name : " Open channels"
4848 tasks :
49- - open_channel : {from: 0, to: 1, total_deposit: 100_000 }
50- - open_channel : {from: 1, to: 0, total_deposit: 100_000 }
51- - open_channel : {from: 1, to: 2, total_deposit: 100_000 }
52- - open_channel : {from: 2, to: 1, total_deposit: 100_000 }
53- - open_channel : {from: 2, to: 3, total_deposit: 100_000 }
54- - open_channel : {from: 3, to: 2, total_deposit: 100_000 }
49+ - open_channel : {from: 0, to: 1, total_deposit: 1_000_000_000_000_000_000 }
50+ - open_channel : {from: 1, to: 0, total_deposit: 1_000_000_000_000_000_000 }
51+ - open_channel : {from: 1, to: 2, total_deposit: 1_000_000_000_000_000_000 }
52+ - open_channel : {from: 2, to: 1, total_deposit: 1_000_000_000_000_000_000 }
53+ - open_channel : {from: 2, to: 3, total_deposit: 1_000_000_000_000_000_000 }
54+ - open_channel : {from: 3, to: 2, total_deposit: 1_000_000_000_000_000_000 }
5555 - serial :
5656 name : " Test providing routes"
5757 tasks :
5858 - wait_blocks : 2
5959 # Check that the PFS returns a path from 0 to 3
60- - transfer : {from: 0, to: 3, amount: 10_000 , expected_http_status: 200}
60+ - transfer : {from: 0, to: 3, amount: 500_000_000_000_000_000 , expected_http_status: 200}
6161
6262 # # Check that the path is indeed the expected one
6363 - assert_pfs_history :
@@ -67,15 +67,16 @@ scenario:
6767 expected_routes :
6868 - [0, 1, 2, 3]
6969
70- # 487 TKN fees are calculated, 5% margin of that is 24 TKN
71- # This results in a total fee of 511
72- - assert : {from: 0, to: 1, total_deposit: 100_000, balance: 89_489, state: "opened"}
73- - assert : {from: 1, to: 0, total_deposit: 100_000, balance: 11_0511, state: "opened"}
70+ - wait_blocks : 2
71+ # 41_963_768_101_996_008 TKN fees are calculated which are 8.4% of the initial payment, 5% margin are added
72+ # This results in a total fee of 44_061_956_507_095_808
73+ - assert : {from: 0, to: 1, total_deposit: 1_000_000_000_000_000_000, balance: 455_938_043_492_904_366, state: "opened"}
74+ - assert : {from: 1, to: 0, total_deposit: 1_000_000_000_000_000_000, balance: 1_544_061_956_507_095_634, state: "opened"}
7475
75- # 511 TKN fees
76- - assert : {from: 1, to: 2, total_deposit: 100_000 , balance: 89_737 , state: "opened"}
77- - assert : {from: 2, to: 1, total_deposit: 100_000 , balance: 11_0263 , state: "opened"}
76+ # update comment ...
77+ - assert : {from: 1, to: 2, total_deposit: 1_000_000_000_000_000_000 , balance: 478_064_586_391_421_968 , state: "opened"}
78+ - assert : {from: 2, to: 1, total_deposit: 1_000_000_000_000_000_000 , balance: 1_521_935_413_608_578_032 , state: "opened"}
7879
79- # 263 TKN fees
80- - assert : {from: 2, to: 3, total_deposit: 100_000 , balance: 89_980 , state: "opened"}
81- - assert : {from: 3, to: 2, total_deposit: 100_000 , balance: 110_020 , state: "opened"}
80+ # update comment ...
81+ - assert : {from: 2, to: 3, total_deposit: 1_000_000_000_000_000_000 , balance: 498_254_201_118_912_876 , state: "opened"}
82+ - assert : {from: 3, to: 2, total_deposit: 1_000_000_000_000_000_000 , balance: 1_501_745_798_881_087_124 , state: "opened"}
0 commit comments