Skip to content

Commit

Permalink
fix: foreign investments bench (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli authored Sep 27, 2023
1 parent 8ecf05c commit 4aae695
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pallets/foreign-investments/src/impls/benchmark_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

use cfg_primitives::CFG;
use cfg_traits::{
benchmarking::{
BenchForeignInvestmentSetupInfo, ForeignInvestmentBenchmarkHelper,
Expand All @@ -33,7 +34,7 @@ pub const CURRENCY_POOL: CurrencyId = CurrencyId::ForeignAsset(1);
pub const CURRENCY_FOREIGN: CurrencyId = CurrencyId::ForeignAsset(2);
pub const DECIMALS_POOL: u32 = 12;
pub const DECIMALS_FOREIGN: u32 = 6;
pub const INVEST_AMOUNT_POOL_DENOMINATED: u128 = 1_000_000_000_000;
pub const INVEST_AMOUNT_POOL_DENOMINATED: u128 = 100_000_000 * CFG;
pub const INVEST_AMOUNT_FOREIGN_DENOMINATED: u128 = INVEST_AMOUNT_POOL_DENOMINATED / 1_000_000;

impl<T: Config> ForeignInvestmentBenchmarkHelper for Pallet<T>
Expand Down

0 comments on commit 4aae695

Please sign in to comment.