Skip to content

Commit

Permalink
Lend-market v2: Add query_auth parameter to instantiate message
Browse files Browse the repository at this point in the history
  • Loading branch information
ueco-jb committed Nov 28, 2023
1 parent c3a40d5 commit 751ee05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/lending/market_v2/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down
2 changes: 2 additions & 0 deletions contracts/lending/market_v2/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions contracts/lending/market_v2/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 751ee05

Please sign in to comment.