Skip to content

Commit

Permalink
Increase the CyclesDispenser's minimum ICP balance (#6728)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Nov 6, 2024
1 parent 98433b3 commit 0618793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions backend/canisters/neuron_controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Serialize large integers as strings when using MessagePack ([#6315](https://github.com/open-chat-labs/open-chat/pull/6315))
- Increase max stable memory read / write buffer size ([#6440](https://github.com/open-chat-labs/open-chat/pull/6440))
- Increase the CyclesDispenser's minimum ICP balance ([#6728](https://github.com/open-chat-labs/open-chat/pull/6728))

## [[2.0.1303](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1303-neuron_controller)] - 2024-08-22

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async fn disburse_neurons(neuron_ids: Vec<u64>) {
let (nns_ledger_canister_id, cycles_dispenser_canister_id) =
read_state(|state| (state.data.nns_ledger_canister_id, state.data.cycles_dispenser_canister_id));

// If the CyclesDispenser has less than 2000 ICP, top it up, otherwise send the ICP to the treasury
// If the CyclesDispenser has less than 5000 ICP, top it up, otherwise send the ICP to the treasury
let mut top_up_cycles_dispenser = is_cycles_dispenser_balance_low(nns_ledger_canister_id, cycles_dispenser_canister_id)
.await
.unwrap_or(true);
Expand Down Expand Up @@ -169,5 +169,5 @@ async fn is_cycles_dispenser_balance_low(
) -> CallResult<bool> {
icrc_ledger_canister_c2c_client::icrc1_balance_of(nns_ledger_canister_id, &Account::from(cycles_dispenser_canister_id))
.await
.map(|balance| balance < 2000 * E8S_PER_ICP)
.map(|balance| balance < 5000 * E8S_PER_ICP)
}

0 comments on commit 0618793

Please sign in to comment.