Skip to content

Commit

Permalink
fix: spread assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x authored Oct 20, 2023
2 parents 0dfcd12 + 5e57ffb commit 054d320
Show file tree
Hide file tree
Showing 26 changed files with 439 additions and 569 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion contracts/liquidity_hub/fee_collector/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fee_collector"
version = "1.1.1"
version = "1.1.2"
authors = ["Kerber0x <[email protected]>"]
edition.workspace = true
description = "Contract to collect the fees accrued by the pools and vaults in the liquidity hub"
Expand Down
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 054d320

Please sign in to comment.