RPS Labs
  • 👋Welcome to RPS Labs
  • 📋Table of Contents
  • Overview
    • 💡What we do
  • ✌️Using Lotto SDK
    • For Users
      • Case Studies
    • For Developers
      • 💸Pricing
      • 🧰SDK Docs
        • Getting Started
        • UI Components
        • Hooks
      • 💻API Docs
        • Raffle info
        • Users
        • Pot
      • 📃Smart Contracts
        • RPS Raffle
        • RPS Router
        • Configurable Raffle Parameters
        • Fund Management
        • Deployment Guide
        • Security Considerations
      • ⛓️Supported Chains
  • RESOURCES
    • 🙋‍♂️Contact & Social Links
    • ❓FAQ
    • 🖌️Brand Assets
  • COMING SOON
    • DailyGM!
    • Hypercluster
Powered by GitBook
On this page
  1. Using Lotto SDK
  2. For Developers
  3. Smart Contracts

Deployment Guide

Last updated 1 year ago

Follow the instructions in the SDK-contracts github repository: .

RPSRaffle deployment parameters

  • potLimit - Specifies the funds threshold at which the raffle is automatically drawn. The draw is triggered when the raffle pool reaches this amount.

  • raffleTicketCost - Defines the cost of a single raffle ticket in wei. It's important to note that the number of tickets issued is calculated based on the _amountInWei parameter, rather than the actual funds received by the raffle.

  • claimWindow - Sets the duration, in seconds, within which winners must claim their prizes post-raffle draw.

  • protocolFeeInBps - Indicates the portion of the raffle proceeds that is kept as a fee by the protocol, denoted in basis points (bps). For reference, 1% is equivalent to 100 bps. This fee is modifiable by the raffle owner.

  • tradeFeeInBps - Represents the percentage of each transaction fee contributed to the raffle pot, also expressed in basis points.

  • callbackGasLimit - The maximum gas allotted for the Chainlink VRF callback function. This limit directly affects the VRF cost. For precise cost estimations, consult the .

  • router - The contract address of the RPS Router that interacts with the RPS Raffle.

  • owner - Designates the owner's address of the RPS Raffle contract, responsible for managing and configuring the contract post-deployment.

✌️
📃
https://github.com/RPS-Labs/sdk-contracts
Chainlink VRF documentation