Magic Carpet Ride
WebsitedAppsSocialsYouTube
  • πŸ–οΈWelcome to Magic Carpet Ride
  • 🌎dApps on Main Net
    • πŸ₯©STAKEHOUSE ON PULSECHAIN
    • πŸ₯©STAKEHOUSE ON ETHEREUM
    • πŸ₯˜MCR BUFFET ON PULSECHAIN
    • πŸ₯˜MCR BUFFET ON ETHEREUM
    • Bistro - OTC - PULSECHAIN & ETHEREUM
    • β˜•Barista
  • πŸ€·β€β™‚οΈdApp Documents
    • πŸ₯©STAKEHOUSE
      • dApp Sneak Peek
      • STAKEHOUSE Technical Information
      • Contracts
      • AUDIT
    • πŸ”₯MCR369 Buffet
      • πŸͺ™MCR369 TOKEN
      • πŸ“–Audit
    • 🍻Bistro
      • 🍺Bistro - Take A Tour
      • Bistro Audit
    • β˜•Barista
      • FAQ's
      • 🎬Video Tutorials
      • πŸ‘₯Barista User Guide
      • β˜•Barista Deeper Dive:
        • Understanding The Liquid Loans Stability Pool
        • πŸͺ„Barista Stability Pool Integration with Liquid Loans
        • Liquid Loans Explainer Videos
      • Barista Audit
      • BEAN Tokenomics & Dex's/LP's
        • Piteas Dex Aggregator
        • 9x.9mm Pro
      • πŸ“œContracts
      • Golden #BEAN NFT
  • πŸ“ΊStreams
    • Team dApps
    • Other Protocols
  • πŸ”Security
    • Ledger
      • Ledger Academy
      • Ledger YouTube
    • Trezor
      • Trezor Learn
      • Trezor YouTube
    • Other
  • CONNECT
    • PulseChain Bridge Official
    • PulseChain Safe
    • Piteas - Dex Aggregator
    • PulseX
    • 9mm Pro - V3 Dex
    • PulseLN
    • 2PHUX
    • PHUX
    • Phatty
    • Internet Money Wallet
    • Pulse Domains
    • GoPulseChain
    • PulseCoinList
    • HEX.com
    • PumpHEX.com
    • HEXDIRECT.com
    • HEXFIRE.IO
    • HEX Staking Deep Dive
    • Liquid Loans - Knowledge Base
Powered by GitBook
On this page
  1. dApp Documents
  2. STAKEHOUSE

STAKEHOUSE Technical Information

πŸ›  How STAKEHOUSE Smart Contract Works

1️⃣ Create a Pool

A user initiates a HEX staking pool by setting the following parameters:

  • Stake Duration: 1 to 5,555 days

  • Enrollment Period: 1 to 369 hours

  • Creator Fee: 0% to 1% (paid in HEX at maturity from principal + yield)

  • Minting: A unique pool token (e.g., SH<PoolID>) is created.

  • Fee: Pool creation costs 3,690 gwei.

This pool becomes visible for others to join during the enrollment window.


2️⃣ Enter a Pool

  • Participants deposit HEX into the pool.

  • In return, they receive a 1:1 ratio of pool tokens (e.g., 1 HEX = 1 SH<PoolID> token).

  • Deposits and withdrawals are permitted anytime during the enrollment period.

  • Each action costs 3,690 gwei.

  • Users can withdraw HEX if they change their mind before the stake begins.


3️⃣ Start the Stake

  • After enrollment ends, any user can initiate the HEX stake.

  • Starting the stake:

    • Sends collected pool creation fees to Buffet.

    • Distributes the Creator Fee to the pool creator (if set).

    • Locks all HEX into a single stake for the configured duration.

    • Automatically claims Hedron to the pool.

  • This function is open to all, even if Creator Fee = 0.


4️⃣ End the Stake

  • Once the HEX stake matures, anyone can trigger the end-stake function.

  • The caller pays the full gas fee and is reimbursed as other users claim their rewards.

  • Ending the stake:

    • Claims HEX from the official HEX contract.

    • Collects earned Hedron into the pool.


5️⃣ Withdraw from Pool

When a participant withdraws their HEX after the stake ends:

  • They pay:

    • Their proportional share of the end-stake gas fee.

    • 1/20 of the total gas fee to Buffet.

  • They receive:

    • HEX minus any Creator Fee.

    • 80% of the Hedron earned.

    • Creator Fee is distributed if applicable.

    • 20% of Hedron goes to Buffet.


6️⃣ Bleed Functions (Post-Maturity Penalties)

To encourage timely action, the protocol includes Bleed mechanics starting 7 days after maturity:

πŸ’§ Hedron Bleed:

  • Can be called by anyone.

  • 50% of bled Hedron goes to the caller (Ender).

  • 50% goes to Buffet for MCR369 stakers.

πŸ’§ HEX Bleed

  • Can be called by anyone, starting 7 days after the stake matures.

  • HEX bleeds at 1% per day.

  • The "Bleed" button becomes active once per day, in sync with the HEX contract’s daily cycle.

  • Creator Fee is paid out from the bled HEX if applicable.

  • Remaining bled HEX is transferred to Buffet for MCR369 stakers.

  • Bleed accumulates if not called dailyβ€”missed days result in lost yield for the Creator and Buffet.

  • If a user claims before the bleed is called, the Creator and Buffet forfeit their share for that user’s claim.


πŸ” Pool Flexibility

Users can enter or exit a pool freely during the enrollment period:

  • Easily switch to a pool with better terms (e.g., lower Creator Fee or higher BPB bonus).

  • No need to wait or lock into a suboptimal configuration.

PreviousdApp Sneak PeekNextContracts

Last updated 1 month ago

πŸ€·β€β™‚οΈ
πŸ₯©