Smart Contract Integration
Overview

Smart Contract Integration

Welcome to the Smart Contract Integration documentation for Digifi.

Overview

This section provides comprehensive guides for integrating blockchain functionality into your applications, including token creation, liquidity management, and rewards distribution on Base Mainnet.

Network Details

Core Features

Token Rewards System

Learn how to integrate a blockchain token rewards system that allows users to view token information, check pending rewards, and claim their rewards.

View Token Rewards Documentation →

Token Creation & Deployment

Build a token deployment interface that allows users to create their own ERC20 tokens with automatic Uniswap V4 liquidity pools.

View Token Deployment Documentation →

Contract Addresses

TokenFactory (ETH-based)

Creates token pairs with native ETH as the base currency.

TokenFactoryUD (DIGI-based)

Creates token pairs with $DIGI token as the base currency instead of ETH.

Key Differences

FeatureTokenFactory (ETH)TokenFactoryUD (DIGI)
Base CurrencyNative ETH$DIGI Token
Pool PairsETH/TokenDIGI/Token
Use CaseGeneral token launchesDIGI ecosystem integration
Starting PriceFixed (very low)Custom (sqrtPriceX96)
Approval NeededNo (ETH is native)Yes (must approve DIGI spending)
Contract0xeF6ce237F69D238Fe3CfAB801f24b4cfd3A54B9D0xcdAB147bC10F4eCc32Fc0bc96c2D739C6F21FAa5

Getting Started

  1. Choose the integration that fits your needs
  2. Follow the step-by-step implementation guides
  3. Test on Base Mainnet with small amounts
  4. Implement proper error handling and validation

Security Best Practices

  • ✓ Always validate user inputs
  • ✓ Verify network (Chain ID 8453)
  • ✓ Check user balance before transactions
  • ✓ Handle transaction rejections gracefully
  • ✓ Never store private keys
  • ✓ Use HTTPS only
  • ✓ Display all costs upfront