$CRE8 is launching on May 22nd. Beware of fake launches.
CRE8 Finance
CRE8 Finance
  • Introduction
  • Getting Started
    • The $8+ Trillion Service Economy
    • Tokenized Gigs: Turning Services into SPL Tokens
  • Smart Contract Architecture
    • Token Minting and Management
    • Escrow and Service Contract Logic
  • Gig Flow: From Listing to Escrow to Settlement
    • 1. Service Listing & Tokenization
    • 2. Buyer Purchases the Service (Escrow Initiation)
    • 3. Service Delivery Off-Chain
    • 4. Verification & Escrow Settlement
    • 5. Ratings and Reputation
    • Summary of the Flow with an Example
  • Platform Features, Applications and User Tools
    • Web App and Mobile Apps
      • Integrated Chat and Communication
      • Reviews and Ratings System
      • User Dashboard and Analytics
      • Wallet Integration (Non-Custodial)
      • Notifications and Real-Time Updates
      • Additional Features
  • $CRE8 Token
    • Utility Overview
      • Medium of Exchange
      • Platform Fee Currency
      • Staking and Rewards
      • Governance
      • Incentives and Rewards
      • Collateral / DeFi Utility
  • Fee Discounts
  • Tokenomics and Distribution
  • Staking Mechanism
  • Governance Rights
  • Summary of $CRE8 Benefits
  • APIs & SDK
    • Integrating with CRE8
    • API Overview
    • SDKs for Different Environments
    • Detailed API Endpoints (Examples)
    • Example Use Cases for APIs/SDKs
    • API/SDK Security and Rate Limiting
    • Developer Portal and Documentation
  • Developer Section
    • Examples, Formulas, and Integration Flows
    • Creating a Tokenized Service (via SDK)
    • Calculating Fees and Discounts
    • Escrow Milestone Release Calculation
    • Integration Flow: Web App Using CRE8 APIs
    • Architectural Diagram
    • Querying On-Chain Data
    • Developer Tips
  • Other Products
    • CRE8 Wallet
      • Wallet Architecture and Key Management
      • Integrated Features
      • Security Measures
      • Interaction with the Platform
      • Supported Assets
      • Non-Custodial Philosophy
  • The CRE8 Card
    • Concept Overview
    • How it works
    • Integration with Platform
    • Compliance for Card
    • Timeline and Status
    • Potential Impact of CRE8 Card
  • Community & FAQ
    • Glossary
    • FAQ
    • Legal
    • Privacy Policy
    • CRE8 Socials
Powered by GitBook

@CRE8 Technologies LLC

On this page
  1. Developer Section

Escrow Milestone Release Calculation

PreviousCalculating Fees and DiscountsNextIntegration Flow: Web App Using CRE8 APIs

Last updated 3 days ago

If a project is large and divided into milestones (say 3 milestones with 50%, 30%, 20% payment split):

  • Total agreed payment = P.

  • Milestone percentages: m1 = 0.5, m2 = 0.3, m3 = 0.2 (which sum to 1.0 or 100%).

  • When milestone 1 is completed, the contract should release m1 * P to the seller.

For example, if P = $1000:

  • After milestone 1: release 0.5 * 1000 = $500.

  • After milestone 2: release 0.3 * 1000 = $300.

  • After final milestone: release 0.2 * 1000 = $200.

The escrow contract would either use separate escrow accounts for each milestone or keep track of how much has been released so far. A pseudo-formula for remaining escrow balance after each release i:

Remaining Escrow=P×(1−j=1∑i​mj​).Remaining Escrow=P×(1− j=1 ∑ i ​ m j ​ ).Remaining Escrow=P×(1−j=1∑i​mj​).

After milestone 1 (i=1), remaining = 1000 * (1 - 0.5) = $500. After all done, remaining = 0.

Page cover image