Powered by Smartsupp

Win $8000 USDC From CodeHawks Audit Contest on Starknet

The CodeHawks project holds the implementation of Starknet's staking mechanism v2. 

Table of Contents

The CodeHawks Audit Contest, starting on 4th April, 2025 and ending on 24th April, 2025, is an opportunity for cyber security enthusiasts to help strengthen the STRK staking contracts and win a share of the $80k USDC prize pool.

CodeHawks, helps companies secure smart contracts and rewards auditors. Starknet, is an L2 network pushing a new narrative in the web 3 ecosystem by scaling bitcoin and ethereum together on a single layer.

As a unifying layer, Starknet offers exclusive features to its users. It is also the go-to chain for the community to benefit from the innovations brought by both ecosystems. Resulting to more users and liquidity while, attracting more developers and projects.

What the Project is About

The CodeHawks project holds the implementation of Starknet’s staking mechanism v2. 

The following are the key changes in the staking v2 mechanism.

1. Validator Block Attestation: Validators must attest to randomly selected blocks to demonstrate active network participation. 

2. Commission Model Update: Validators will be able to set a maximum commission rate, ensuring transparency while allowing for economic adjustments.

;

Key Players in the Project Includes;

Delegator: 

  • delegates their stake to a Validator and shares rewards.
  • can move between Validators with an epoch delay.

Validator (Previously called Staker):

  • runs a full node and attests to blocks.
  • receives rewards based on successful attestations.
  • Can set a maximum commission rate for delegators.

Security Roles:

  • Security Admin: Unpauses contracts and can replace the security agent.
  • Security Agent: Can pause staking contracts in case of issues.

L1 Mint Manager:

  • Handles minting of STRK as allowed by governance.

AllowanceGovernor: Can authorize minting.

StopGovernor: Can restrict minting.

Key Features of Staking v2

Staking on Starknet involves locking STRK tokens in the staking protocol, contributing to network security and performance. Anyone holding STRK in their wallets can stake their tokens on Starknet either directly or by delegating their tokens to others, with rewards based on their level of participation and contribution. 

The key features includes:

  1. Epochs and Reward Mechanism:

–  Staking v2 introduces epochs to define staking power updates.

–  Validators must successfully attest to assigned blocks within an epoch to earn rewards.

–  Rewards follow an “all or nothing” model per epoch.

  1. Block Attestation:

–   Each Validator is assigned a block per epoch to attest.

–   The attestation must be submitted within a defined block window.

–  Validators who fail to attest receive no rewards for that epoch.

  1. Commission Model Updates:

–   Validators commit to a maximum commission (M) and its validity period.

 –  They cannot increase commission beyond M before the commitment expires.

 –  The commitment period cannot exceed one year.

  1. Backward Compatibility:

–  Rewards accumulated before the upgrade remain claimable.

–  The reward structure is updated to depend on attestation success.

–  Delegators switching Validators face an epoch delay to prevent rapid changes.

To Participate:

Register here and stand a chance to win $8000 USDC.

Leave Your Comment