Skip to main content

Liquidity Pools

Introduction​

MCAP's Liquidity Cache system provides a robust foundation for managing liquidity in gaming environments. Built on the ERC-4626 tokenized vault standard, our liquidity pools enable providers and users to participate in the gaming economy through staking and yield generation.

What is a Liquidity Pool?​

A liquidity pool is a smart contract that holds funds (tokens) to facilitate various operations within the MCAP ecosystem. Our LiquidityCache contract serves as both a liquidity pool and a vault for:

  • Game Profits: Accumulated winnings that flow back to stakers
  • Staking Rewards: Yield generation for token holders
  • Platform Liquidity: Ensuring sufficient funds for payouts
  • Risk Management: Distributing risk across multiple participants

Key Features​

ERC-4626 Compliance​

Our liquidity pools follow the ERC-4626 tokenized vault standard, providing:

  • Standardized Interface: Compatible with existing DeFi tools and wallets
  • Share-based System: Users receive shares representing their portion of the pool
  • Automatic Yield Calculation: Shares appreciate in value as profits are added
  • Composability: Can be integrated with other DeFi primitives and protocols

Security Features​

  • Access Control: Role-based permissions for different operations
  • Pausability: Emergency stop functionality with multi-sig admin control
  • Reentrancy Protection: Guards against attack vectors
  • Safe Token Transfers: Built-in protection against malicious tokens

Flexible Asset Management​

  • Asset Addition: Game profits automatically flow into the pool
  • Controlled Withdrawals: Only authorized parties can remove assets for payouts
  • Real-time Tracking: All operations are tracked with detailed events

How It Works​

For Stakers (Liquidity Providers)​

  1. Deposit: Users deposit tokens into the liquidity pool
  2. Receive Shares: Get LCS (Liquidity Cache Shares) tokens representing ownership
  3. Earn Yield: Share value increases as game profits are added to the pool
  4. Withdraw: Redeem shares for underlying assets plus accumulated rewards

For Games/Providers​

  1. Asset Addition: Game profits are automatically added to the pool
  2. Payout Requests: Authorized parties can request withdrawals for user payouts
  3. Risk Sharing: Large payouts are distributed across the entire liquidity pool
  4. Sustainability: Pool grows over time as more games contribute profits

Benefits​

For Liquidity Providers​

  • Passive Income: Earn yield from gaming platform profits
  • Diversified Exposure: Benefit from the success of multiple games
  • Liquidity: Can withdraw funds at any time (subject to availability)
  • Transparency: All operations are immutably recorded on-chain and verifiable

For Gaming Platforms​

  • Risk Management: Distribute large payout risks across the pool
  • Capital Efficiency: Access to larger liquidity pools than individual reserves
  • Sustainable Growth: Pool growth creates positive feedback loop
  • Reduced Volatility: Smoother cash flow management

For the Ecosystem​

  • Network Effects: Larger pools attract more participants
  • Stability: Distributed risk creates a more stable gaming environment
  • Innovation: Enables new game types with larger potential payouts
  • Decentralization: Reduces reliance on centralized liquidity sources

Pool Mechanics​

Share Valuation​

The value of shares is calculated based on the underlying assets in the pool:

Share Value = Total Assets in Pool / Total Shares Outstanding

As game profits are added to the pool without minting new shares, the value per share increases, providing yield to stakers.

Deposit Process​

  1. User approves the liquidity pool smart contract to spend their tokens
  2. User calls deposit() with the amount and receiver address
  3. Smart contract calculates shares to mint based on current exchange rate
  4. Shares are minted to the user's address
  5. Assets are transferred to the pool

Withdrawal Process​

  1. User calls withdraw() or redeem() with desired amount
  2. Smart contract calculates asset amount based on current share value
  3. Shares are burned from user's balance
  4. Assets are transferred to the user

Risk Considerations​

Smart Contract Risk​

  • The contract has been designed with security best practices
  • Multiple layers of protection against common attack vectors
  • Role-based access control limits potential damage

Liquidity Risk​

  • Large withdrawals may temporarily reduce available liquidity
  • Pool may not always have sufficient assets for immediate withdrawals
  • Platform performance affects pool value

Market Risk​

  • Token price volatility affects the value of pooled assets
  • Gaming platform performance impacts profit generation
  • Regulatory changes could affect operations

Getting Started​

Ready to participate in MCAP's liquidity pools? Check out our detailed guides:

Next Steps​