Skip to content

Commit

Permalink
Merge pull request #48 from WHELP-project/jakub/fix-fee-splitter-build
Browse files Browse the repository at this point in the history
Fix fee splitter execute entrypoint
  • Loading branch information
ueco-jb committed Feb 1, 2024
2 parents 19cfb91 + a4ab0eb commit 9bfd9e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions contracts/fee_splitter/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ pub fn instantiate(

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn execute(
deps: Deps<CoreumQueries>,
deps: DepsMut<CoreumQueries>,
env: Env,
_info: MessageInfo,
msg: ExecuteMsg,
) -> Result<Response, ContractError> {
match msg.clone() {
Expand All @@ -68,12 +69,12 @@ pub fn execute(
}

fn execute_send_tokens(
deps: Deps<CoreumQueries>,
deps: DepsMut<CoreumQueries>,
env: Env,
native_denoms: Vec<String>,
cw20_addresses: Vec<String>,
) -> Result<Response, ContractError> {
let config = query_config(deps)?;
let config = query_config(deps.as_ref())?;

let contract_address = env.contract.address.to_string();
// gather balances of native tokens, either from function parameter or all
Expand Down
4 changes: 2 additions & 2 deletions packages/dex/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
asset::{Asset, AssetInfo, AssetInfoValidated, AssetValidated, DecimalAsset},
factory::{ConfigResponse as FactoryConfigResponse, QueryMsg as FactoryQueryMsg},
fee_config::FeeConfig,
oracle::{SamplePeriod, TwapResponse},
oracle::SamplePeriod,
};

use coreum_wasm_sdk::core::CoreumQueries;
Expand Down Expand Up @@ -277,7 +277,7 @@ pub enum QueryMsg {
#[returns(CumulativePricesResponse)]
CumulativePrices {},
/// Returns a price history of the given duration
#[returns(TwapResponse)]
#[returns(crate::oracle::TwapResponse)]
Twap {
duration: SamplePeriod,
/// duration: Day and start_age: 3 means to start from first checkpoint 3 days ago
Expand Down

0 comments on commit 9bfd9e6

Please sign in to comment.