Skip to content

Commit

Permalink
allow unused code and increase cu limit mine
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Aug 12, 2024
1 parent dead9aa commit 1fe5762
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/banner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use dioxus::prelude::*;
#[derive(Clone, PartialEq)]
pub enum BannerStyle {
Info,
#[allow(dead_code)]
Error,
}

Expand Down
1 change: 1 addition & 0 deletions src/components/landing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use crate::{
utils::asset_path,
};

#[allow(dead_code)]
#[derive(Copy, Clone, PartialEq, Eq)]
enum TextColor {
Black,
Expand Down
2 changes: 1 addition & 1 deletion src/gateway/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub const CU_LIMIT_CREATE_ATA: u32 = 85_000; // MI added
pub const CU_LIMIT_CLAIM: u32 = 12_000;
pub const CU_LIMIT_STAKE: u32 = 12_000; // MI added
pub const CU_LIMIT_TRANSFER: u32 = 30_000; // MI added, incl. memo
pub const CU_LIMIT_MINE: u32 = 500_000;
pub const CU_LIMIT_MINE: u32 = 1_000_000; // MI vanilla: 500_000;
pub const CU_LIMIT_UPGRADE: u32 = 30_000; // MI

const RPC_RETRIES: usize = 0;
Expand Down
1 change: 1 addition & 0 deletions src/hooks/use_ore_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ impl UiTokenAmountDefault for UiTokenAmount {
#[derive(Clone)]
pub struct Balances {
pub v1: UiTokenAmount,
#[allow(dead_code)]
pub v2: UiTokenAmount,
}
1 change: 1 addition & 0 deletions src/hooks/use_screen_size.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use dioxus::prelude::*;

#[allow(dead_code)]
pub enum ScreenSize {
Desktop,
Tablet,
Expand Down

0 comments on commit 1fe5762

Please sign in to comment.