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
  • Ticket caluclation
  • Multisig
  1. Using Lotto SDK
  2. For Developers
  3. Smart Contracts

Security Considerations

Last updated 1 year ago

Ticket caluclation

NOTE! Be aware that the calculation of raffle tickets is based on the tradeAmount parameter in the router's execute function. Although tradeAmount is validated against msg.value, this validation can be bypassed if the target protocol returns ether to the user. If your smart contract includes ether refunds, additional validation measures are necessary to ensure accurate ticket calculation.

Multisig

Given the critical functions dependent on the owner role, we advise securing your RPSRaffle owner account with a multisig to mitigate the risk of private key loss. The is a reliable option for this purpose.

✌️
📃
Safe protocol