@@ -58,11 +58,11 @@ const TEST_AD_SLOT: Lazy<(AdSlot, AdUnit)> = Lazy::new(|| {
5858 [
5959 (
6060 GANACHE_INFO_1 . tokens [ "Mocked TOKEN 1" ] . address ,
61- UnifiedNum :: from_whole ( 0.010 ) ,
61+ UnifiedNum :: from_whole ( 0.000010 ) ,
6262 ) ,
6363 (
6464 GANACHE_INFO_1337 . tokens [ "Mocked TOKEN 1337" ] . address ,
65- UnifiedNum :: from_whole ( 0.001 ) ,
65+ UnifiedNum :: from_whole ( 0.000001 ) ,
6666 ) ,
6767 ]
6868 . into_iter ( )
@@ -808,7 +808,6 @@ async fn test_price_is_less_than_min_per_impression() {
808808 total : UnifiedNum :: from_whole ( 200_000 )
809809 . to_precision ( campaign. token . precision . into ( ) ) ,
810810 } ;
811-
812811 app. adapter . client . set_deposit (
813812 & campaign. of_channel ( ) ,
814813 campaign. context . creator ,
@@ -843,9 +842,9 @@ async fn test_price_is_less_than_min_per_impression() {
843842 // override the pricing bound
844843 let pricing_less_than_global = Pricing {
845844 min : app. config . limits . units_for_slot . global_min_impression_price
846- - UnifiedNum :: from_whole ( 0.00003 ) ,
845+ - UnifiedNum :: from_whole ( 0.00000003 ) ,
847846 max : app. config . limits . units_for_slot . global_min_impression_price
848- - UnifiedNum :: from_whole ( 0.00001 ) ,
847+ - UnifiedNum :: from_whole ( 0.00000001 ) ,
849848 } ;
850849 assert ! (
851850 pricing_less_than_global. min
@@ -860,7 +859,6 @@ async fn test_price_is_less_than_min_per_impression() {
860859 . pricing_bounds
861860 . insert ( IMPRESSION , pricing_less_than_global)
862861 . expect ( "Should have a pricing bound for IMPRESSION before we've overwritten it" ) ;
863-
864862 let deposit = Deposit {
865863 total : UnifiedNum :: from_whole ( 200_000 )
866864 . to_precision ( campaign. token . precision . into ( ) ) ,
@@ -908,7 +906,7 @@ async fn test_price_is_less_than_min_per_impression() {
908906 . as_mut ( )
909907 . expect ( "Should have min_per_impression set" ) ;
910908
911- let min_per_impression = UnifiedNum :: from_whole ( 0.00001 ) ;
909+ let min_per_impression = UnifiedNum :: from_whole ( 0.00000001 ) ;
912910 assert ! (
913911 min_per_impression < campaign_0. context. pricing_bounds[ & IMPRESSION ] . min,
914912 "AdSlot.min_per_impression should be less than Campaign 0 pricing bound in order to match it"
0 commit comments