Skip to content

Commit

Permalink
feat: increase satellite and orbiter fees (#775)
Browse files Browse the repository at this point in the history
* feat: increase satellite and orbiter fees

Signed-off-by: David Dal Busco <[email protected]>

* docs: executed proposal

Signed-off-by: David Dal Busco <[email protected]>

---------

Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker authored Nov 11, 2024
1 parent 72c20b3 commit 3d73925
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/console.fees.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env node

import { consoleActorLocal } from './actor.mjs';
import { consoleActor } from './actor.mjs';
import { segmentType } from './console.utils.mjs';

const setFee = async ({ actor, type }) => {
await actor.set_fee(segmentType(type), { e8s: 30_000_000n });
await actor.set_fee(segmentType(type), { e8s: 40_000_000n });

console.log(`Fee set for ${type}.`);
};

const actor = await consoleActorLocal();
const actor = await consoleActor();

await Promise.all([setFee({ actor, type: 'satellite' }), setFee({ actor, type: 'orbiter' })]);
5 changes: 4 additions & 1 deletion src/libs/shared/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ pub const IC_TRANSACTION_FEE_ICP: Tokens = Tokens::from_e8s(10_000);

// Creating a canister require cycles. Those vary according to the subnet size (number of nodes).
// Check [Gas and cycles cost](https://internetcomputer.org/docs/current/developer-docs/gas-cost) for more details.
pub const CREATE_CANISTER_CYCLES: u128 = 100_000_000_000u128;
// Cost for creating a canister have been increased by 400% in November 2024:
// - https://forum.dfinity.org/t/evaluating-compute-pricing-in-response-to-increased-demand-on-the-internet-computer-protocol/36565
// - https://nns.ic0.app/proposal/?u=qoctq-giaaa-aaaaa-aaaea-cai&proposal=134032
pub const CREATE_CANISTER_CYCLES: u128 = 500_000_000_000u128;

// Additional cycles allocated for creating different types of canisters to ensure operation beyond the minimum requirement.
pub const CREATE_SATELLITE_CYCLES: u128 = 1_000_000_000_000;
Expand Down

0 comments on commit 3d73925

Please sign in to comment.