File tree Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,8 @@ keep_alive_interval = 1200000
60
60
# This will limit the returned Campaigns to the set number
61
61
max_campaigns_earning_from = 25
62
62
63
- # 0.0001 (UnifiedNum) per 1 impression
63
+ # 0.0000001 (UnifiedNum) per 1 impression
64
64
# 10 / 10^8 = 0.0000001
65
- # 0.00010000
66
65
global_min_impression_price = ' 10'
67
66
68
67
[chain ."Ganache #1" ]
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ keep_alive_interval = 1200000
39
39
# This will limit the returned Campaigns to the set number
40
40
max_campaigns_earning_from = 25
41
41
42
- # 0.01 (UnifiedNum) per 1000 impressions
42
+ # 0.00001 (UnifiedNum) per 1 impression
43
43
# 1_000 / 10^8 = 0.00001
44
44
global_min_impression_price = ' 1000'
45
45
Original file line number Diff line number Diff line change @@ -1008,10 +1008,10 @@ pub mod insert_events {
1008
1008
1009
1009
// Payout: 0.00003 (min pricing bound per 1 event)
1010
1010
// Leader fee: 0.03
1011
- // Leader payout: 0.00003 * 0.03 = 0.00 000 090 = UnifiedNum(90_000 )
1011
+ // Leader payout: 0.00003 * 0.03 = 0.00 000 090 = UnifiedNum(90 )
1012
1012
//
1013
1013
// Follower fee: 0.02
1014
- // Follower payout: 0.00003 * 0.02 = 0.00 000 060 = UnifiedNum(60_000 )
1014
+ // Follower payout: 0.00003 * 0.02 = 0.00 000 060 = UnifiedNum(60 )
1015
1015
//
1016
1016
// campaign budget left - payout - leader fee - follower fee
1017
1017
// 1000.0 - 0.03 - 0.00 000 090 - 0.00 000 060 = 999.9699985
Original file line number Diff line number Diff line change @@ -321,27 +321,22 @@ mod tests {
321
321
. expect ( "Should parse" ) ,
322
322
channel,
323
323
creator : * ADVERTISER ,
324
- // 150.00000000
325
- budget : UnifiedNum :: from ( 15_000_000_000 ) ,
324
+ budget : UnifiedNum :: from_whole ( 150 ) ,
326
325
validators,
327
326
title : Some ( "Dummy Campaign" . to_string ( ) ) ,
328
327
pricing_bounds : vec ! [
329
328
(
330
329
IMPRESSION ,
331
330
Pricing {
332
- // 0.04000000
333
- min: 4_000_000 . into( ) ,
334
- // 0.05000000
335
- max: 5_000_000 . into( ) ,
331
+ min: UnifiedNum :: from_whole( 0.04 ) ,
332
+ max: UnifiedNum :: from_whole( 0.05 ) ,
336
333
} ,
337
334
) ,
338
335
(
339
336
CLICK ,
340
337
Pricing {
341
- // 0.06000000
342
- min: 6_000_000 . into( ) ,
343
- // 0.10000000
344
- max: 10_000_000 . into( ) ,
338
+ min: UnifiedNum :: from_whole( 0.06 ) ,
339
+ max: UnifiedNum :: from_whole( 0.1 ) ,
345
340
} ,
346
341
) ,
347
342
]
You can’t perform that action at this time.
0 commit comments