@@ -23,10 +23,8 @@ async fn test_get_all_liquidity_pools() {
23
23
const RSP_1_LIQUIDITY_POOL_TYPE : & str = "constant_product" ;
24
24
const RSP_1_LIQUIDITY_POOL_TOTAL_TRUSTLINES : & str = "1" ;
25
25
const RSP_1_LIQUIDITY_POOL_RESERVE_ASSET_0 : & str = "native" ;
26
- const RSP_1_LIQUIDITY_POOL_RESERVE_AMOUNT_0 : & str = "15088.1447038" ;
27
26
const RSP_1_LIQUIDITY_POOL_RESERVE_ASSET_1 : & str =
28
27
"USDC:GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5" ;
29
- const RSP_1_LIQUIDITY_POOL_RESERVE_AMOUNT_1 : & str = "0.0062521" ;
30
28
31
29
const RSP_2_LIQUIDITY_POOL_ID : & str =
32
30
"0a9a1af472bd6107075610add5759bddfb1d82f80c664ee5198cd24509541841" ;
@@ -98,18 +96,16 @@ async fn test_get_all_liquidity_pools() {
98
96
all_liquidity_pools_response_2. reserves( ) [ 0 ] . asset( ) ,
99
97
RSP_1_LIQUIDITY_POOL_RESERVE_ASSET_0
100
98
) ;
101
- assert_eq ! (
102
- all_liquidity_pools_response_2. reserves( ) [ 0 ] . amount( ) ,
103
- RSP_1_LIQUIDITY_POOL_RESERVE_AMOUNT_0
104
- ) ;
99
+ assert ! ( !all_liquidity_pools_response_2. reserves( ) [ 0 ]
100
+ . amount( )
101
+ . is_empty( ) ) ;
105
102
assert_eq ! (
106
103
all_liquidity_pools_response_2. reserves( ) [ 1 ] . asset( ) ,
107
104
RSP_1_LIQUIDITY_POOL_RESERVE_ASSET_1
108
105
) ;
109
- assert_eq ! (
110
- all_liquidity_pools_response_2. reserves( ) [ 1 ] . amount( ) ,
111
- RSP_1_LIQUIDITY_POOL_RESERVE_AMOUNT_1
112
- ) ;
106
+ assert ! ( !all_liquidity_pools_response_2. reserves( ) [ 1 ]
107
+ . amount( )
108
+ . is_empty( ) ) ;
113
109
114
110
let all_liquidity_pools_request_2 = AllLiquidityPoolsRequest :: new ( )
115
111
. add_native_reserve ( )
0 commit comments