Skip to content

Commit 8a904cd

Browse files
committed
fix: Reuse contract interface MINIMUM_NODE_MANAGEMENT_DEPOSIT_YOCTONEAR
1 parent 0a6475f commit 8a904cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/contract/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ use errors::{
6363
DomainError, InvalidParameters, InvalidState, PublicKeyError, RespondError, TeeError,
6464
};
6565
use k256::elliptic_curve::PrimeField;
66+
use near_mpc_contract_interface::deposits::MINIMUM_NODE_MANAGEMENT_DEPOSIT_YOCTONEAR;
6667
use near_mpc_contract_interface::types::Ed25519PublicKey;
6768
use near_mpc_contract_interface::types::kdf::derive_tweak;
6869
use near_mpc_contract_interface::types::{
@@ -115,7 +116,8 @@ const MINIMUM_CKD_REQUEST_DEPOSIT: NearToken = NearToken::from_yoctonear(1);
115116
/// A non-zero deposit forces the call to be signed by a full-access key: the node's own key
116117
/// is registered as a function-call access key, which cannot attach a deposit, so a leaked
117118
/// node key cannot invoke these methods.
118-
pub const MINIMUM_NODE_MANAGEMENT_DEPOSIT: NearToken = NearToken::from_yoctonear(1);
119+
pub const MINIMUM_NODE_MANAGEMENT_DEPOSIT: NearToken =
120+
NearToken::from_yoctonear(MINIMUM_NODE_MANAGEMENT_DEPOSIT_YOCTONEAR);
119121

120122
/// Entries to scan in the post-reshare `clean_invalid_attestations` sweep. External
121123
/// callers may pick a different value; this only governs the automatic invocation.

0 commit comments

Comments
 (0)