Orbit Documentation
  • Github
  • Protocol Overview
    • What is Orbit Protocol
    • Ecosystem Participants
    • Smart Contracts
    • Whitepaper
    • Litepaper
  • Technical Documentation
    • Treasury
    • Bridge Oracle
    • PegKeeper
    • DAO
    • System Diagram
Powered by GitBook
On this page
  • Soroban Governor Integration
  • Contract Functions
  • Creating New Stablecoins
  • Managing Supply
  1. Technical Documentation

DAO

PreviousPegKeeperNextSystem Diagram

Last updated 18 days ago

The DAO Utils contract serves as a utility layer that enables the DAO to execute complex operations in a single transaction. It does not hold any administrative privileges itself but provides convenience functions for the DAO to interact with multiple protocol contracts efficiently.

Soroban Governor Integration

The Orbit Protocol is governed by , which serves as the DAO for the protocol. The DAO Utils contract enhances this integration by providing simplified methods for the DAO to execute common administrative actions that involve multiple contracts.

Contract Functions

Creating New Stablecoins

The DAO can deploy new stablecoins through the new_stablecoin() function:

fn new_stablecoin(
    e: Env,
    admin: Address,
    treasury: Address,
    oracle: Address,
    token: Address,
    asset: Asset,
    blend_pool: Address,
    initial_supply: i128
)

This function orchestrates all the steps required to deploy a new stablecoin:

  1. Maps the stablecoin token to its reference asset in the Bridge Oracle

  2. Registers the stablecoin with its Blend pool in the Treasury

  3. Mints the initial supply of the stablecoin through the Treasury

For this operation, the admin (DAO) must authorize the transaction.

Managing Supply

The DAO can adjust stablecoin supply using the update_supply() function:

fn update_supply(e: Env, admin: Address, treasury: Address, token: Address, amount: i128)

This function:

  • Allows increasing supply by providing a positive amount

  • Allows decreasing supply by providing a negative amount

  • Automatically calls the appropriate Treasury function based on the sign of the amount

  • Requires admin (DAO) authorization

Soroban Governor