LogoLogo
Join Built By DAO
  • Built By DAO
  • Tech Dev
  • 🏗️Build. Real. Start. Here.
  • 👋Welcome & Getting Started
    • Overview of Built By DAO
    • How Built By DAO Works
    • F.A.Q.
  • 🚀Mission & Governance
  • & Vision
  • Governance Structure
  • Voting & Decision-Making
  • Compliance & Legal Overview
  • Ethics & Transparency
  • 💪Membership & Community
    • Member Onboarding Process
  • Member Roles & Responsibilities
    • Member Levels System
    • List of Roles
      • Construction & Property Division
        • Land Acquisition Specialist
        • Architect/Urban Planner
        • Permit & Regulatory Specialist
        • Pre-Construction Project Manager
        • Surveyor
        • Construction Project Manager
        • Site Supervisor
        • Quality Control Inspector
        • Construction Scheduler
        • Cost Estimator
        • General Contractor
        • Skilled Tradespeople
        • Site Safety Officer
        • Environmental Specialist
        • Inspection & Compliance Officer
        • Property Manager
        • Sustainability Officer
        • Chief Construction Officer (CCO)
        • Director of Pre-Construction & Planning
        • Director of Construction Operations
        • Director of Post-Construction & Property Management
        • Regional Construction Manager
      • Membership & Community Engagement Division
        • Membership Outreach Specialist
        • Community Events Coordinator
        • Onboarding Specialist
        • Membership Support Representative
        • Member Retention Specialist
        • Engagement & Communications Manager
        • Chief Membership & Community Officer (CMCO)
        • Director of Membership Recruitment
        • Director of Community Engagement & Retention
        • Head of Member Support & Communications
      • Governance Division
        • Governance Manager
        • Community Voting Coordinator
        • Legal & Compliance Officer
        • Ethics & Transparency Officer
        • Governance Analyst
        • Data Collection Specialist
        • Chief Governance Officer (CGO)
        • Director of Governance Operations
        • Director of Legal & Compliance
        • Head of Governance Analytics & Insights
        • Regional Governance Manager
      • Analytics & Research Division
      • Priority Roles Q2 2025 Phase I
  • Guilds
  • Community Engagement & Events
  • Contribution Opportunities
  • ⚙️DAO Operations & Contributions
    • Equity Programs & Earning Credits
    • Funding & Treasury Management
  • Working Groups & Task Assignments
  • ⛓️Smart Contracts & Tokenomics
    • Basic Tokenomics
      • Disincentivize Institutional Investment
      • List of All Tokens in the DAO
      • Token Economic Model Outline
      • List of Contracts in Built By DAO System
        • BLTBY Token Contract
        • Treasury Reserve Contract
        • Migration Upgrade Contract
        • Leadership Council Nft Contract
        • Framer NFT Contract
        • Angel NFT Contract
        • Venture One NFT Contract
        • Trust NFT Contract
        • General Membership NFT Contract
        • Governace Contract
        • Access Token Umbrella Contract
        • Contract Interconnectivity Plan and Deployment Order
      • Contracts & Addresses
  • 🧱Real Estate & Property Development
    • Property Development Process
    • Strategic Land Acquisition
  • Equity-Building Leases
  • Sustainable Construction Principles
  • Adaptive Reuse & Innovation
  • 🌳Sustainability & Environmental Stewardship
    • Commitment to Sustainability
    • Innovating Sustainable Building & Energy Systems
    • Circular Economy & Waste Reduction
  • 📚Training & Resource Centers
    • Workshops & Skill-Building Programs
    • Learning Hub: Skills Development & Certifications
  • DAO Governance & Leadership Training
  • Construction & Technical Training Programs
  • Built By DAO: Empowering Real Estate Investment through Real World Assets (RWAs)
Powered by GitBook
LogoLogo

© Built By DAO Holdings LLC

On this page
  1. Smart Contracts & Tokenomics
  2. Basic Tokenomics
  3. List of Contracts in Built By DAO System

Treasury Reserve Contract

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Mintable.sol";

contract TreasuryAndReserve is Ownable {
    // Token contracts for minting and burning
    IERC20 public BLTBYToken;
    IERC20 public USDC;
    IERC20 public USDT;
    IERC20 public PYUSD;

    // Events for minting, burning, and buybacks
    event Minted(address indexed to, uint256 amount);
    event Burned(address indexed from, uint256 amount);
    event BuybackExecuted(address indexed from, uint256 amount);

    constructor(address _BLTBYToken, address _USDC, address _USDT, address _PYUSD) {
        BLTBYToken = IERC20(_BLTBYToken);
        USDC = IERC20(_USDC);
        USDT = IERC20(_USDT);
        PYUSD = IERC20(_PYUSD);
    }

    /**
     * @dev Mint BLTBY tokens to a specific address.
     * Can be called by other contracts with mint permissions.
     * @param to The address that will receive the minted tokens.
     * @param amount The amount of tokens to mint.
     */
    function mintBLTBY(address to, uint256 amount) external onlyOwner {
        ERC20Mintable(address(BLTBYToken)).mint(to, amount);
        emit Minted(to, amount);
    }

    /**
     * @dev Burn BLTBY tokens from a specific address.
     * Can be executed by administrators to control supply.
     * @param from The address whose tokens will be burned.
     * @param amount The amount of tokens to burn.
     */
    function burnBLTBY(address from, uint256 amount) external onlyOwner {
        ERC20Burnable(address(BLTBYToken)).burnFrom(from, amount);
        emit Burned(from, amount);
    }

    /**
     * @dev Perform a manual buyback of BLTBY tokens using USDC, USDT, or PYUSD.
     * @param token The address of the stablecoin being used for buyback (USDC, USDT, PYUSD).
     * @param amount The amount of stablecoin to use for the buyback.
     */
    function executeBuyback(address token, uint256 amount) external onlyOwner {
        require(
            token == address(USDC) || token == address(USDT) || token == address(PYUSD),
            "Invalid stablecoin address"
        );
        require(IERC20(token).balanceOf(msg.sender) >= amount, "Insufficient stablecoin balance");
        require(IERC20(token).transferFrom(msg.sender, address(this), amount), "Buyback transfer failed");
        emit BuybackExecuted(msg.sender, amount);
    }

    /**
     * @dev Allows DAO governance to eventually take over admin roles.
     * Transfers ownership to the DAO's governance address.
     * @param newAdmin The address of the new DAO governance admin.
     */
    function transferToDAO(address newAdmin) external onlyOwner {
        transferOwnership(newAdmin);
    }

    /**
     * @dev Fallback function to receive stablecoins.
     */
    receive() external payable {}
}

/*
 Key Features:
 - Manual minting and burning of BLTBY tokens, with no cap on minting.
 - Integration with stablecoins (USDC, USDT, PYUSD) for buybacks, managed manually by administrators.
 - Initially admin-controlled, with a mechanism to transition to DAO governance in the future.
 - Other contracts can call minting functions, subject to permissions.
*/
PreviousBLTBY Token ContractNextMigration Upgrade Contract

Last updated 6 months ago

⛓️