Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: foreign investments bench #1572

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading