Skip to content

Commit

Permalink
feat: add max_spread property on pool router
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x committed Oct 19, 2023
1 parent e56f1cb commit eaa125a
Show file tree
Hide file tree
Showing 19 changed files with 293 additions and 321 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions contracts/liquidity_hub/fee_collector/src/commands.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use cosmwasm_std::{
to_binary, Addr, BalanceResponse, BankQuery, Coin, CosmosMsg, DepsMut, Env, MessageInfo,
QueryRequest, ReplyOn, Response, StdResult, SubMsg, Uint128, WasmMsg, WasmQuery,
to_binary, Addr, BalanceResponse, BankQuery, Coin, CosmosMsg, Decimal, DepsMut, Env,
MessageInfo, QueryRequest, ReplyOn, Response, StdResult, SubMsg, Uint128, WasmMsg, WasmQuery,
};
use cw20::{Cw20ExecuteMsg, Cw20QueryMsg};

Expand Down Expand Up @@ -289,6 +289,7 @@ pub fn aggregate_fees(
operations,
minimum_receive: None,
to: None,
max_spread: Some(Decimal::percent(50u64)),
})?;

match offer_asset_info.clone() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ pub fn increase_allowance(app: &mut App, sender: Addr, contract_addr: Addr, spen
contract_addr,
&cw20::Cw20ExecuteMsg::IncreaseAllowance {
spender: spender.to_string(),
amount: Uint128::new(500_000_000_000u128),
amount: Uint128::new(5_000_000_000_000u128),
expires: None,
},
&[],
Expand Down
Loading

0 comments on commit eaa125a

Please sign in to comment.