<!-- canonical: https://0xsimao.com/reports/wenwin -->

# Wenwin audit contest

Code4rena · On-chain lottery · 6th March 2023 · #13

A public audit contest on Code4rena (on-chain lottery), completed on 6th March 2023. 0xSimao placed #13. 1 of his findings is published: 1 medium.

## What Wenwin is

Wenwin is a decentralised gaming protocol for chance-based games on-chain. Its Lottery implements ticket sales, prize pools and randomness-driven draws entirely in smart contracts.

## Scope

The Lottery contracts: ticket minting, draws and randomness, prize claims and the staking of protocol fees.

## Medium severity findings

- [Possibility to steal jackpot bypassing restrictions in the `executeDraw()`](https://0xsimao.com/findings/wenwin-possibility-steal-jackpot-bypassing)

## The contest

[View the contest page](https://code4rena.com/audits/2023-03-wenwin-contest)
