Primary Lottery Mechanics
Last updated
Last updated
Entry Requirements: Users must have 10 USDC to participate.
Approval Process: Users need to approve the lottery contract to access their USDC.
Lottery Entry: After approval, users click the "Enter with 10 USDC" button. This sends 10 USDC to the lottery contract, increasing the number of participants in the lottery.
ChainLink VRF Integration: Once the final participant enters the lottery, the ChainLink VRF (Verifiable Random Function) is triggered to select the winner randomly.
Settlement: The settleLottery()
function is automatically called by an in-house bot. This function finalizes the lottery and transfers the winnings to the winner's wallet.
- Manual Settlement: If the bot fails to execute the settlement, any user can manually settle the lottery by invoking the settleLottery()
function through the smart contract interface on PolygonScan.
Winners: The selected winner receives the total prize in USDC.
Losers: Participants who do not win are minted loserUSDC tokens, which are non-transferable and can only be used for entry into the Second Chance Lottery.