From e9664f45d4b710a9b83e862a0264f52082072416 Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Tue, 30 Jul 2024 14:29:09 +0200 Subject: [PATCH] stake-contract: remove `MINIMUM_STAKE` --- contracts/stake/src/lib.rs | 5 +---- contracts/stake/src/state.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/contracts/stake/src/lib.rs b/contracts/stake/src/lib.rs index dba88e1d8..1237da317 100644 --- a/contracts/stake/src/lib.rs +++ b/contracts/stake/src/lib.rs @@ -10,14 +10,11 @@ extern crate alloc; -use execution_core::{dusk, transfer::TRANSFER_CONTRACT, Dusk}; +use execution_core::transfer::TRANSFER_CONTRACT; mod state; use state::StakeState; -/// The minimum amount of Dusk one can stake. -pub const MINIMUM_STAKE: Dusk = dusk(1_000.0); - static mut STATE: StakeState = StakeState::new(); // Transactions diff --git a/contracts/stake/src/state.rs b/contracts/stake/src/state.rs index 84cb602df..62c61f4a3 100644 --- a/contracts/stake/src/state.rs +++ b/contracts/stake/src/state.rs @@ -13,7 +13,7 @@ use execution_core::{ signatures::bls::PublicKey as BlsPublicKey, stake::{ next_epoch, Stake, StakeAmount, StakeData, StakeEvent, Withdraw, EPOCH, - STAKE_CONTRACT, STAKE_WARNINGS, + MINIMUM_STAKE, STAKE_CONTRACT, STAKE_WARNINGS, }, transfer::TRANSFER_CONTRACT, };