Skip to content

Commit

Permalink
chore: remove migrate msg
Browse files Browse the repository at this point in the history
  • Loading branch information
trung2891 committed Sep 17, 2024
1 parent 19c319b commit db79ad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
9 changes: 1 addition & 8 deletions contracts/oraiswap-v3/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,16 +321,9 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult<Binary> {
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(deps: DepsMut, _env: Env, msg: MigrateMsg) -> Result<Response, ContractError> {
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
let original_version =
cw2::ensure_from_older_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;
let config = Config {
fee_tiers: msg.fee_tiers,
admin: msg.admin,
protocol_fee: msg.protocol_fee,
incentives_fund_manager: msg.incentives_fund_manager,
};
CONFIG.save(deps.storage, &config)?;

// // query all position, then update token id
// let positions: Vec<_> = crate::state::POSITIONS
Expand Down
7 changes: 1 addition & 6 deletions contracts/oraiswap-v3/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,7 @@ pub enum ExecuteMsg {
}

#[cw_serde]
pub struct MigrateMsg {
pub admin: Addr,
pub fee_tiers: Vec<FeeTier>,
pub protocol_fee: Percentage,
pub incentives_fund_manager: Addr,
}
pub struct MigrateMsg {}

#[cw_serde]
#[derive(QueryResponses)]
Expand Down

0 comments on commit db79ad8

Please sign in to comment.