Skip to content
Closed
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/console/src/accounts/impls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::constants::E8S_PER_ICP;
use crate::constants::{NO_CREDITS};
use crate::types::state::{Account, OpenIdData, Provider};
use ic_cdk::api::time;
use junobuild_auth::openid::credentials::delegation::types::interface::OpenIdDelegationCredential;
Expand Down Expand Up @@ -74,7 +74,7 @@ impl Account {
mission_control_id: None,
provider: provider.clone(),
owner: *user,
credits: E8S_PER_ICP,
credits: NO_CREDITS,
created_at: now,
updated_at: now,
}
Expand Down
7 changes: 7 additions & 0 deletions src/console/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ pub const MISSION_CONTROL_CREATION_FEE_CYCLES: CyclesTokens =
// A credit which can be used to start one satellite or one orbiter.
pub const E8S_PER_ICP: Tokens = Tokens::from_e8s(100_000_000);

// On Apr. 4, 2026, someone exploited the free tier to spin up free canisters.
// They created roughly 60-70 identities to spin up the same number of canisters.
// The rate limiter worked as expected — they had to wait a few minutes before creating more users.
// Unfortunately, until further notice, credits must be requested on demand to prevent this
// kind of abuse and protect the integrity of the Console.
pub const NO_CREDITS: Tokens = Tokens::from_e8s(0);

pub const RELEASES_METADATA_JSON: &str = "/releases/metadata.json";

// Default freezing threshold to create Satellites and Mission Controls
Expand Down
Loading