Skip to content

Commit

Permalink
Update contracts/dao/neutron-flashloans/src/contract.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Mozhaev <programmer10110@gmail.com>
  • Loading branch information
zavgorodnii and pr0n00gler authored Jun 18, 2024
1 parent b6c4ee8 commit 32cd613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/dao/neutron-flashloans/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ fn calculate_fee(
requested_amount: Vec<Coin>,
fee_rate: Decimal,
) -> Result<Vec<Coin>, ContractError> {
let mut fee: Vec<Coin> = vec![];
let mut fee: Vec<Coin> = Vec::with_capacity(requested_amount.len());
for coin in requested_amount {
let coin_fee = Coin::new((fee_rate * coin.amount).u128(), coin.denom);
fee.push(coin_fee)
Expand Down

0 comments on commit 32cd613

Please sign in to comment.