Skip to content
Merged
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 docs/docs/the_aztec_network/guides/run_nodes/cli_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ If two subsystems can contain the same configuration option, only one needs to b
--archiver.aztecProofSubmissionEpochs <value> (default: 1) ($AZTEC_PROOF_SUBMISSION_EPOCHS)
The number of epochs after an epoch ends that proofs are still accepted.

--archiver.depositAmount <value> (default: 100000000000000000000) ($AZTEC_DEPOSIT_AMOUNT)
--archiver.activationThreshold <value> (default: 100000000000000000000) ($AZTEC_ACTIVATION_THRESHOLD)
The deposit amount for a validator

--archiver.minimumStake <value> (default: 50000000000000000000) ($AZTEC_MINIMUM_STAKE)
--archiver.ejectionThreshold <value> (default: 50000000000000000000) ($AZTEC_EJECTION_THRESHOLD)
The minimum stake for a validator.

--archiver.slashingQuorum <value> (default: 101) ($AZTEC_SLASHING_QUORUM)
Expand Down
4 changes: 3 additions & 1 deletion l1-contracts/script/InternalGov.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ contract GovScript is Test {
emit log_named_uint(
"\tNumber of attestors ", IStaking(address(rollup)).getActiveAttesterCount()
);
emit log_named_decimal_uint("\tMinimum stake", IStaking(address(rollup)).getDepositAmount(), 18);
emit log_named_decimal_uint(
"\tMinimum stake", IStaking(address(rollup)).getActivationThreshold(), 18
);

emit log_named_address("# Governance", address(governance));
Configuration memory config = governance.getConfiguration();
Expand Down
8 changes: 4 additions & 4 deletions l1-contracts/src/core/Rollup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ contract Rollup is IStaking, IValidatorSelection, IRollup, RollupCore {
return StakingLib.getStorage().stakingAsset;
}

function getMinimumStake() external view override(IStaking) returns (uint256) {
return StakingLib.getStorage().gse.MINIMUM_STAKE();
function getEjectionThreshold() external view override(IStaking) returns (uint256) {
return StakingLib.getStorage().gse.EJECTION_THRESHOLD();
}

function getDepositAmount() external view override(IStaking) returns (uint256) {
return StakingLib.getStorage().gse.DEPOSIT_AMOUNT();
function getActivationThreshold() external view override(IStaking) returns (uint256) {
return StakingLib.getStorage().gse.ACTIVATION_THRESHOLD();
}

function getExitDelay() external view override(IStaking) returns (Timestamp) {
Expand Down
4 changes: 2 additions & 2 deletions l1-contracts/src/core/interfaces/IStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ interface IStaking is IStakingCore {
function getAttesterAtIndex(uint256 _index) external view returns (address);
function getSlasher() external view returns (address);
function getStakingAsset() external view returns (IERC20);
function getDepositAmount() external view returns (uint256);
function getMinimumStake() external view returns (uint256);
function getActivationThreshold() external view returns (uint256);
function getEjectionThreshold() external view returns (uint256);
function getExitDelay() external view returns (Timestamp);
function getGSE() external view returns (GSE);
function getAttesterView(address _attester) external view returns (AttesterView memory);
Expand Down
6 changes: 3 additions & 3 deletions l1-contracts/src/core/libraries/rollup/StakingLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ library StakingLib {

delete store.exits[_attester];

store.gse.finaliseHelper(exit.withdrawalId);
store.gse.finaliseWithdraw(exit.withdrawalId);
store.stakingAsset.transfer(exit.recipientOrWithdrawer, exit.amount);

emit IStakingCore.WithdrawFinalised(_attester, exit.recipientOrWithdrawer, exit.amount);
Expand Down Expand Up @@ -225,7 +225,7 @@ library StakingLib {
StakingStorage storage store = getStorage();
// We don't allow deposits, if we are currently exiting.
require(!store.exits[_attester].exists, Errors.Staking__AlreadyExiting(_attester));
uint256 amount = store.gse.DEPOSIT_AMOUNT();
uint256 amount = store.gse.ACTIVATION_THRESHOLD();

store.stakingAsset.transferFrom(msg.sender, address(this), amount);
store.entryQueue.enqueue(_attester, _withdrawer, _moveWithLatestRollup);
Expand All @@ -243,7 +243,7 @@ library StakingLib {
store.nextFlushableEpoch <= currentEpoch, Errors.Staking__QueueAlreadyFlushed(currentEpoch)
);
store.nextFlushableEpoch = currentEpoch + Epoch.wrap(1);
uint256 amount = store.gse.DEPOSIT_AMOUNT();
uint256 amount = store.gse.ACTIVATION_THRESHOLD();

uint256 queueLength = store.entryQueue.length();
uint256 numToDequeue = Math.min(_maxAddableValidators, queueLength);
Expand Down
Loading
Loading