Pharo
  • 🟢Getting Started
  • 🤝Meet Pharo
    • ❔Why Pharo
    • 🌪️Use Cases
    • 📐Architecture
  • ✨Protocol
    • 🎨Product Design
    • 💰Pricing Models
    • 🏛️Capitol Provision
    • 📊Risk Assessment
  • 🛣️Roadmap
  • ⁉️FAQs
  • Market Manager
    • 💹Creating a Pharo Market
    • 👩‍💼Managing a Market
  • Liquidity Provider
    • 🎯Selecting a Market
    • 💵Provide Liquidity
  • Cover Buyer
    • 🤔What it means to buy cover
    • 🔅Buy Cover
  • Governance
    • Overview
    • Process
      • 📄Writing A Proposal
    • Glossary
    • Adversarial Circumstances
    • Governance Reference
  • PHRO Token
    • Overview
    • 🪙Tokenomics
    • Staking
    • 📄Contracts
    • 🐪PHRO Distribution Speed
  • Guides
  • Beginners Guide to Voting
  • Setting Up Your Local Environment
    • Hardhat
    • Foundry
  • API Reference
    • Start Here Developer
  • Technical Reference
    • Litepaper
    • Smart Contracts Overview
    • Pharo SDK
    • Anubis
    • Obelisk
Powered by GitBook
On this page
  • Pharo Phactory Contract
  • Pool Contracts
  • Chainlink Adapters
  • Periphery Contracts
  • Periphery Libraries

Was this helpful?

  1. Technical Reference

Smart Contracts Overview

Pharo v1 is made up of a smart contract system comprised of many libraries, which together make the core and periphery.

Core contracts provide the fundamental principles for all parties interacting with Pharo protocol. They define the logic of pool generation, the pools themselves, and the interactions involving the respective assets therein.

Periphery contracts interact with one or more Core contracts but are not part of the core. They are designed to provide methods of interacting with the core that increase clarity and user safety.

External calls will primarily call the periphery interfaces. Externally available functions are all viewable in the reference documentation. Internal functions are viewable on the Pharo v1 Github repo.

Pharo Phactory Contract

0x...

import pharoPhactoryAbi from "@pharo/contracts/build/pharoPhactory.json"

Pool Contracts

Risk Pool: 0x...

import riskPoolAbi from "@pharo/contracts/build/riskPool.json"

Stake Pool: 0x...

import stakePoolAbi from "@pharo/contracts/build/stakePool.json"

Reserve Pool: 0x...

import reservePool from "@pharo/contracts/build/reservePool.json"

Chainlink Adapters

Periphery Contracts

Periphery Libraries

PreviousLitepaperNextPharo SDK

Last updated 1 year ago

Was this helpful?