Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
larry0x committed May 20, 2023
1 parent 4ca750d commit 6888cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/red_bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use cosmos_sdk_proto::cosmwasm::wasm::v1::{
};
use cosmwasm_std::{from_slice, to_vec, Uint128};
use mars_red_bank::interest_rates::{get_underlying_debt_amount, get_underlying_liquidity_amount};
use mars_red_bank_types::red_bank::{self, Market};
use mars_red_bank_types::red_bank::{Market, QueryMsg};
use serde::Serialize;
use tonic::transport::Channel;

Expand All @@ -35,7 +35,7 @@ pub async fn query_red_bank_tvl(client: &mut QueryClient<Channel>) -> Result<Red
let new_markets_raw = client
.smart_contract_state(QuerySmartContractStateRequest {
address: RED_BANK.into(),
query_data: to_vec(&red_bank::QueryMsg::Markets {
query_data: to_vec(&QueryMsg::Markets {
start_after: start_after.clone(),
limit: Some(10), // the max limit
})?,
Expand Down

0 comments on commit 6888cc7

Please sign in to comment.