Smart Contract Based
The entire raffle logic – including ticket sales, fee collection, burning, PP tracking, VIP status, gating, and winner selection triggers – is handled by the PollyPrize smart contract deployed publicly on the Abstract blockchain.
- Transparency: Anyone can view the contract’s code and transaction history on Abscan.
- Immutability (Mostly): While the contract uses a UUPS proxy for upgradability (allowing the team to fix bugs or add features securely), the core rules of a specific raffle (like pricing, prize, caps set at creation) are generally immutable once deployed. Changes to mutable parts (like end dates or listing status) require authorized admin actions, which are also visible on-chain.
Verifiable Randomness
Winner selection isn’t done off-chain behind closed doors. PollyPrize uses Pyth Entropy, a decentralized oracle network, to provide cryptographically secure and verifiable random numbers directly on the blockchain.
- Fairness: Eliminates the possibility of the organizers manipulating the outcome.
- Auditability: The request for randomness and the delivery of the random number by Pyth are public on-chain events. Read more about Randomness & Fairness.
Token Approvals & User Control
When paying with ERC20 tokens, the contract uses the standard
approve and transferFrom pattern.- Your Control: The contract cannot take tokens from your wallet without your explicit permission granted via an
approvetransaction. - Transparency: You confirm all transactions, including approvals and purchases, directly in your own wallet. Learn more about Approving Tokens.
Audits & Best Practices
- Audits: The PollyPrize smart contract has been audited by Sub7.
- Standard Libraries: The contract leverages battle-tested, community-audited libraries from OpenZeppelin for core functionalities like access control, pausing, reentrancy guards, and upgradeability.
- Role-Based Access: Administrative functions (like creating raffles, managing VIPs, withdrawing fees) are restricted to specific roles managed through secure multi-signature wallets or planned DAO governance, minimizing single points of failure.
