diff --git a/contracts/lending/market_v2/src/contract.rs b/contracts/lending/market_v2/src/contract.rs index 6687f955..aad23d52 100644 --- a/contracts/lending/market_v2/src/contract.rs +++ b/contracts/lending/market_v2/src/contract.rs @@ -66,6 +66,7 @@ pub fn instantiate( reserve_factor: msg.reserve_factor, borrow_limit_ratio: msg.borrow_limit_ratio, oracle: msg.oracle.into(), + query_auth: msg.query_auth.into(), }; CONFIG.save(deps.storage, &cfg)?; VIEWING_KEY.save(deps.storage, &msg.viewing_key)?; diff --git a/contracts/lending/market_v2/src/msg.rs b/contracts/lending/market_v2/src/msg.rs index 08edbaf9..bc5bf4cb 100644 --- a/contracts/lending/market_v2/src/msg.rs +++ b/contracts/lending/market_v2/src/msg.rs @@ -51,6 +51,8 @@ pub struct InstantiateMsg { pub credit_agency_code_hash: String, /// Oracle address pub oracle: Contract, + /// Address of auth query contract + pub query_auth: Contract, } #[cw_serde] diff --git a/contracts/lending/market_v2/src/state.rs b/contracts/lending/market_v2/src/state.rs index f19879ab..6226a5b8 100644 --- a/contracts/lending/market_v2/src/state.rs +++ b/contracts/lending/market_v2/src/state.rs @@ -41,6 +41,8 @@ pub struct Config { pub credit_agency: ContractInfo, /// Address of oracle pub oracle: ContractInfo, + /// Address of auth query contract + pub query_auth: ContractInfo, pub reserve_factor: Decimal, }