@@ -69,15 +69,14 @@ def test_initial_report_and_participation_fee_collection(localFixture, universe,
69
69
70
70
marketStake = marketInitialReport .getStake ()
71
71
expectedFees = reporterFees * marketStake / totalStake
72
- expectedGasBond = 2 * constants .GAS_TO_REPORT () * constants .DEFAULT_REPORTING_GAS_PRICE ()
73
72
with TokenDelta (reputationToken , marketStake , tester .a0 , "Redeeming didn't refund REP" ):
74
- with EtherDelta (expectedFees + expectedGasBond , tester .a0 , localFixture .chain , "Redeeming didn't increase ETH correctly" ):
73
+ with EtherDelta (expectedFees , tester .a0 , localFixture .chain , "Redeeming didn't increase ETH correctly" ):
75
74
assert marketInitialReport .redeem (tester .a0 )
76
75
77
76
categoricalMarketStake = categoricalInitialReport .getStake ()
78
77
expectedFees = reporterFees * categoricalMarketStake / totalStake
79
78
with TokenDelta (reputationToken , categoricalMarketStake , tester .a0 , "Redeeming didn't refund REP" ):
80
- with EtherDelta (expectedFees + expectedGasBond , tester .a0 , localFixture .chain , "Redeeming didn't increase ETH correctly" ):
79
+ with EtherDelta (expectedFees , tester .a0 , localFixture .chain , "Redeeming didn't increase ETH correctly" ):
81
80
assert categoricalInitialReport .redeem (tester .a0 )
82
81
83
82
def test_failed_crowdsourcer_fees (localFixture , universe , market , cash , reputationToken ):
@@ -162,9 +161,8 @@ def test_one_round_crowdsourcer_fees(localFixture, universe, market, cash, reput
162
161
163
162
# The initial reporter gets fees even though they were not correct. They do not get their REP back though
164
163
expectedFees = cash .balanceOf (feeWindow .address ) + cash .balanceOf (universe .getOrCreateFeeWindowBefore (feeWindow .address ))
165
- expectedGasBond = 2 * constants .GAS_TO_REPORT () * constants .DEFAULT_REPORTING_GAS_PRICE ()
166
164
with TokenDelta (reputationToken , 0 , tester .a0 , "Redeeming didn't refund REP" ):
167
- with EtherDelta (expectedFees + expectedGasBond , tester .a0 , localFixture .chain , "Redeeming didn't increase ETH correctly" ):
165
+ with EtherDelta (expectedFees , tester .a0 , localFixture .chain , "Redeeming didn't increase ETH correctly" ):
168
166
assert initialReporter .redeem (tester .a0 )
169
167
170
168
def test_multiple_round_crowdsourcer_fees (localFixture , universe , market , cash , reputationToken ):
@@ -203,9 +201,8 @@ def test_multiple_round_crowdsourcer_fees(localFixture, universe, market, cash,
203
201
# The initial reporter locked in REP for 5 rounds.
204
202
expectedInitialReporterFees = getExpectedFees (localFixture , cash , initialReporter , 5 )
205
203
expectedRep = long (initialReporter .getStake () + initialReporter .getStake () / 2 )
206
- expectedGasBond = 2 * constants .GAS_TO_REPORT () * constants .DEFAULT_REPORTING_GAS_PRICE ()
207
204
with TokenDelta (reputationToken , expectedRep , tester .a0 , "Redeeming didn't refund REP" ):
208
- with EtherDelta (expectedInitialReporterFees + expectedGasBond , tester .a0 , localFixture .chain , "Redeeming didn't increase ETH correctly" ):
205
+ with EtherDelta (expectedInitialReporterFees , tester .a0 , localFixture .chain , "Redeeming didn't increase ETH correctly" ):
209
206
assert initialReporter .redeem (tester .a0 )
210
207
211
208
# The first winning dispute crowdsourcer will get fees for 4 rounds
0 commit comments