Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Awesomwasm 2023 CTF

Challenge 02: Gungnir

Staking contract for users to lock their deposits for a fixed amount of time to generate voting power.

Execute entry points:

pub enum ExecuteMsg {
    Deposit {},
    Withdraw { amount: Uint128 },
    Stake { lock_amount: u128 },
    Unstake { unlock_amount: u128 },
}

Please check the challenge's integration_tests for expected usage examples. You can use these tests as a base to create your exploit Proof of Concept.

🏠 Base scenario:

  • The contract is newly instantiated with zero funds.

⭐ Goal for the challenge:

  • Demonstrate how an unprivileged user can achieve an unfair amount of voting power.