From 1021deecff15648ce2b4f1a5ee37d832a99754fc Mon Sep 17 00:00:00 2001 From: Michel <105498726+Sk8erboi84@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:42:32 +0200 Subject: [PATCH] Added the pool amount for long (#638) * added pool amount * fmt check --- tests/integration/test_long_integration.cairo | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_long_integration.cairo b/tests/integration/test_long_integration.cairo index f91ad5cb..61fb573c 100644 --- a/tests/integration/test_long_integration.cairo +++ b/tests/integration/test_long_integration.cairo @@ -120,9 +120,6 @@ fn test_long_market_integration() { // TODO Check why we don't need to set pool_amount_key // // Set pool amount in data_store. // let mut key = keys::pool_amount_key(market.market_token, contract_address_const::<'ETH'>()); - // data_store.set_u256(key, 50000000000); - // key = keys::pool_amount_key(market.market_token, contract_address_const::<'USDC'>()); - // data_store.set_u256(key, 50000000000); // Send token to deposit in the deposit vault (this should be in a multi call with create_deposit) IERC20Dispatcher { contract_address: market.long_token } @@ -285,6 +282,17 @@ fn test_long_market_integration() { // data_store.set_u256(keys::pool_amount_key(market.market_token, contract_address_const::<'ETH'>()), 1000000); // Execute the swap order. + data_store + .set_u256( + keys::pool_amount_key(market.market_token, contract_address_const::<'USDC'>()), + 10000000000 + ); + data_store + .set_u256( + keys::pool_amount_key(market.market_token, contract_address_const::<'ETH'>()), + 10000000000 + ); + let signatures: Span = array![0].span(); let set_price_params = SetPricesParams { signer_info: 2,