JuicyPerp - Gamified Options Trading
  • 🍇What is JuicyPerp?
  • 🚀Quick Start
    • Prerequisites
    • Step-by-step Guide
  • 🌟Rewards
  • ⚔️Protocol Design
    • Mechanic
    • Pool Creation & Liquidation
    • Payouts & Multipliers
    • Fees
    • Claiming
    • Oracle Data
    • Contracts
    • Risks and Disclaimers
  • ⁉️FAQs
    • 🤝Troubleshooting
  • 🔒Audit
  • Legal
    • 📓Terms of Service
    • 🔍Privacy Policy
Powered by GitBook
On this page
  • Contract Addresses (Arbitrum One)
  • Important Pool contract interactions
  1. Protocol Design

Contracts

PreviousOracle DataNextRisks and Disclaimers

Last updated 10 months ago

Contract Addresses (Arbitrum One)

Contract name
Contract address (Arbitrum One)

Pool.sol

Battle.sol

PriceRouter.sol

PythService.sol

Important Pool contract interactions

Function name
Description

liquidatePool()

Liquidates the battle pool and sets the end price. Input: poolId (Unique identifier of the battle pool) priceUpdateData (Price update date for the pyth pricing, obtained from )

claimPayout()

Claims the payout of a battle position. Input: battleIds[] (Unique identifiers of the battle positions to claim)

enterBattleForCollection()

Mints a battle position that belongs to a battle pool. If the battle pool does not exist yet it creates the battle pool. Input: collection (The address of the underlying trading pair of the battle pool) amount (The amount in WEI entered into the battle pool) direction (The side of the battle, 0 is UP, 1 is DOWN)

validUntil (Timestamp in seconds until when the sent transaction should be valid) priceUpdateData (Price update date for the pyth pricing, obtained from )

enterBattle()

Mints a battle position that belongs to an existing battle pool. Input: poolId (Unique identifier of the battle pool) amount (The amount in WEI entered into the battle pool) direction (The side of the battle, 0 is UP, 1 is DOWN) priceUpdateData (Price update date for the pyth pricing, obtained from )

⚔️
0x8fd83636CeeE519765164964bE61f50fB2dd54E1
0xCfC9eCe1fB9042F1bCB28BA0993579d85BaB673c
0xb77e60BAdB6104E803a8061d25D3d68a8D96a62b
0xA7BC0B26ceD18cf221C9793849D2Ec2eDeAAa732
https://hermes.pyth.network
https://hermes.pyth.network
https://hermes.pyth.network